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
-P PREROUTING ACCEPT
-P INPUT ACCEPT
-P OUTPUT ACCEPT
-P POSTROUTING ACCEPT
-A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
-A POSTROUTING -s 10.9.0.0/24 -o ens3 -j MASQUERADE
/etc/openvpn/server2.conf
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