I have installed openvpn 2.2.1 on a VM that has a bridged ethernet adapter on my server. That server is running on a wireless bridge (basically a dd-wrt flashed router configured as a wireless bridge) which is connected to the main router which goes to the internet. I have enabled port forwarding for port 1194 on the router. So right now I am able to connect a client to the OpenVPN server just fine over the internal network. However I want to be able to access the network from outside, thus the need for forwarding port 1194. Unfortunately, when I try to connect from outside, I get the following log message on the server:
Sat Dec 20 00:47:59 2014 MULTI: multi_create_instance called
Sat Dec 20 00:47:59 2014 <client ip>:53187 Re-using SSL/TLS context
Sat Dec 20 00:47:59 2014 <client ip>:53187 LZO compression initialized
Sat Dec 20 00:47:59 2014 <client ip>:53187 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Sat Dec 20 00:47:59 2014 <client ip>:53187 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Sat Dec 20 00:47:59 2014 <client ip>:53187 Local Options hash (VER=V4): '530fdded'
Sat Dec 20 00:47:59 2014 <client ip>:53187 Expected Remote Options hash (VER=V4): '41690919'
Sat Dec 20 00:47:59 2014 <client ip>:53187 TLS: Initial packet from [AF_INET]24.28.66.33:53187, sid=d89bd7b6 7617b6eb
Sat Dec 20 00:48:59 2014 <client ip>:53187 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Sat Dec 20 00:48:59 2014 <client ip>:53187 TLS Error: TLS handshake failed
Sat Dec 20 00:48:59 2014 <client ip>:53187 SIGUSR1[soft,tls-error] received, client-instance restarting
And the connection fails. I have googled this and everything I have read says that this happens when you don't forward both UDP and TCP on port 1194. I am currently doing this. Is there some other port that needs to be forwarded as well? I have looked at the iptables firewall on the openvpn server and I don't see any rules there that would block external traffic.
Thanks in advance for any help. Below is my /etc/openvpn/server.conf
port 1194
proto udp
dev tun
ca ca.crt
cert gatekeeper.crt
key gatekeeper.key # This file should be kept secret
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 192.168.1.1"
keepalive 10 120
tls-auth ta.key 0 # This file is secret
cipher AES-256-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
log-append /var/log/openvpn.log
verb 3