I've recently tried installing openvpn on a ubuntu server and ran into a few problems but i seem to have fix most of them myself.
One that i cant seem to fix is:
Code: Select all
Thu Sep 15 17:18:06 2011 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Thu Sep 15 17:18:06 2011 TLS Error: TLS handshake failed
Thu Sep 15 17:18:06 2011 TCP/UDP: Closing socket
Thu Sep 15 17:18:06 2011 SIGUSR1[soft,tls-error] received, process restarting
Thu Sep 15 17:18:06 2011 Restart pause, 2 second(s)
I have webmin installed and under "Linux Firewall" I have allowed UDP port 1194. Is there anywhere else i need to set this?
Here is my server.conf:
Code: Select all
port 1194
proto udp
dev tun
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
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 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 10 120
tls-auth ta.key 0
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
Code: Select all
client
dev tun
proto udp
remote 188.72.215.167 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert server.crt
key server.key
tls-auth ta.key 1
comp-lzo
verb 3
Code: Select all
Thu Sep 15 17:17:06 2011 OpenVPN 2.0.9 Win32-MinGW [SSL] [LZO] built on Oct 1 2006
Thu Sep 15 17:17:06 2011 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
Thu Sep 15 17:17:06 2011 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Thu Sep 15 17:17:06 2011 Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Thu Sep 15 17:17:06 2011 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Sep 15 17:17:06 2011 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Sep 15 17:17:06 2011 LZO compression initialized
Thu Sep 15 17:17:06 2011 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
Thu Sep 15 17:17:06 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Thu Sep 15 17:17:06 2011 Local Options hash (VER=V4): '504e774e'
Thu Sep 15 17:17:06 2011 Expected Remote Options hash (VER=V4): '14168603'
Thu Sep 15 17:17:06 2011 UDPv4 link local: [undef]
Thu Sep 15 17:17:06 2011 UDPv4 link remote: 188.72.215.167:1194
Thu Sep 15 17:18:06 2011 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Thu Sep 15 17:18:06 2011 TLS Error: TLS handshake failed
Thu Sep 15 17:18:06 2011 TCP/UDP: Closing socket
Thu Sep 15 17:18:06 2011 SIGUSR1[soft,tls-error] received, process restarting
Thu Sep 15 17:18:06 2011 Restart pause, 2 second(s)
Thu Sep 15 17:18:08 2011 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
Thu Sep 15 17:18:08 2011 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Thu Sep 15 17:18:08 2011 Re-using SSL/TLS context
Thu Sep 15 17:18:08 2011 LZO compression initialized
Thu Sep 15 17:18:08 2011 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
Thu Sep 15 17:18:08 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Thu Sep 15 17:18:08 2011 Local Options hash (VER=V4): '504e774e'
Thu Sep 15 17:18:08 2011 Expected Remote Options hash (VER=V4): '14168603'
Thu Sep 15 17:18:08 2011 UDPv4 link local: [undef]
Thu Sep 15 17:18:08 2011 UDPv4 link remote: 188.72.215.167:1194
Thu Sep 15 17:18:25 2011 TCP/UDP: Closing socket
Thu Sep 15 17:18:25 2011 SIGTERM[hard,] received, process exiting
Can anyone shed some light on my problem?
Thanks