I have openvpn on ubuntu 16.04 to accept connections on tcp 443 (which works), but when I setup a second config with port 1194 udp, it's giving me:
TLS Error: TLS key negotiation failed to occur within 60 seconds
(check your network connectivity)
TLS Error: TLS handshake failed
Console Output of sudo iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-A INPUT -s 10.9.0.0/24 -j ACCEPT
Console Output of sudo iptables -t nat -S
/etc/openvpn/server2.conf
[oconf=]port 1194
proto udp
dev tun
user nobody
group nogroup
persist-key
persist-tun
keepalive 10 120
topology subnet
server 10.9.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
crl-verify crl.pem
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server-name.crt
key /etc/openvpn/server-name.key
dh /etc/openvpn/dh2048.pem
auth SHA256
cipher AES-128-CBC
tls-server
tls-version-min 1.2
tls-auth /etc/openvpn/ta.key 0
status openvpn.log
verb 3[/oconf]
Client config
[oconf=]client
proto udp
remote x.xx.xx.xx
dev tun
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
verify-x509-name server_CtGfN28zX3jgjme2 name
auth SHA256
auth-nocache
cipher AES-128-CBC
tls-client
tls-version-min 1.2
tls-cipher TLS-DHE-RSA-WITH-AES-128-GCM-SHA256
setenv opt block-outside-dns
verb 3[/oconf]
client log
[oconf=]Thu May 31 12:23:58 2018 OpenVPN 2.4.6 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 26 2018
Thu May 31 12:23:58 2018 Windows version 6.1 (Windows 7) 64bit
Thu May 31 12:23:58 2018 library versions: OpenSSL 1.1.0h 27 Mar 2018, LZO 2.10
Enter Management Password:
Thu May 31 12:23:58 2018 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25341
Thu May 31 12:23:58 2018 Need hold release from management interface, waiting...
Thu May 31 12:23:59 2018 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25341
Thu May 31 12:23:59 2018 MANAGEMENT: CMD 'state on'
Thu May 31 12:23:59 2018 MANAGEMENT: CMD 'log all on'
Thu May 31 12:23:59 2018 MANAGEMENT: CMD 'echo all on'
Thu May 31 12:23:59 2018 MANAGEMENT: CMD 'bytecount 5'
Thu May 31 12:23:59 2018 MANAGEMENT: CMD 'hold off'
Thu May 31 12:23:59 2018 MANAGEMENT: CMD 'hold release'
Thu May 31 12:23:59 2018 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
Thu May 31 12:23:59 2018 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
Thu May 31 12:23:59 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]34.226.85.226:1194
Thu May 31 12:23:59 2018 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu May 31 12:23:59 2018 UDP link local: (not bound)
Thu May 31 12:23:59 2018 UDP link remote: [AF_INET]xx.xxx.xx.xx:1194
Thu May 31 12:23:59 2018 MANAGEMENT: >STATE:1527783839,WAIT,,,,,,
Thu May 31 12:24:59 2018 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Thu May 31 12:24:59 2018 TLS Error: TLS handshake failed
Thu May 31 12:24:59 2018 SIGUSR1[soft,tls-error] received, process restarting
Thu May 31 12:24:59 2018 MANAGEMENT: >STATE:1527783899,RECONNECTING,tls-error,,,,,
Thu May 31 12:24:59 2018 Restart pause, 5 second(s)
Thu May 31 12:25:04 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]xx.xxx.xx.xx:1194
Thu May 31 12:25:04 2018 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu May 31 12:25:04 2018 UDP link local: (not bound)
Thu May 31 12:25:04 2018 UDP link remote: [AF_INET]3xx.xxx.xx.xx:1194
Thu May 31 12:25:04 2018 MANAGEMENT: >STATE:1527783904,WAIT,,,,,,
Thu May 31 12:26:04 2018 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Thu May 31 12:26:04 2018 TLS Error: TLS handshake failed
Thu May 31 12:26:04 2018 SIGUSR1[soft,tls-error] received, process restarting
Thu May 31 12:26:04 2018 MANAGEMENT: >STATE:1527783964,RECONNECTING,tls-error,,,,,
Thu May 31 12:26:04 2018 Restart pause, 5 second(s)
Thu May 31 12:26:09 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]xx.xxx.xx.xx:1194
Thu May 31 12:26:09 2018 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu May 31 12:26:09 2018 UDP link local: (not bound)
Thu May 31 12:26:09 2018 UDP link remote: [AF_INET]xx.xxx.xx.xx:1194
Thu May 31 12:26:09 2018 MANAGEMENT: >STATE:1527783969,WAIT,,,,,,
Thu May 31 12:26:41 2018 SIGTERM[hard,] received, process exiting
Thu May 31 12:26:41 2018 MANAGEMENT: >STATE:1527784001,EXITING,SIGTERM,,,,,[/oconf]
Not able t get the server log, error from retrieving server log: Failed to stop openvpnas.service: Unit openvpnas.service not loaded.