After I successfully connect to the VPN, a TLS handshake that I believe is done for the ping (keep alive parameter) always fails, so I keep getting disconnected after the seconds set in my keepalive parameter. My connection is perfectly fine, the connection is dropped while I'm connected to a machine trough SSH running with no delays.
Logs:
Wed Oct 8 01:49:56 2014 us=440881 erico/x:47589 TLS Error: TLS handshake failed
Wed Oct 8 01:51:11 2014 us=469307 erico/x:47589 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Wed Oct 8 01:51:11 2014 us=469358 erico/x:47589 TLS Error: TLS handshake failed
Wed Oct 8 01:52:26 2014 us=638624 erico/x:47589 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Wed Oct 8 01:52:26 2014 us=638670 erico/x:47589 TLS Error: TLS handshake failed
Wed Oct 8 01:53:42 2014 us=99478 erico/x:47589 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Wed Oct 8 01:53:42 2014 us=99526 erico/x:47589 TLS Error: TLS handshake failed
Wed Oct 8 01:54:57 2014 us=104614 erico/x:47589 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Wed Oct 8 01:54:57 2014 us=104668 erico/x:47589 TLS Error: TLS handshake failed
Wed Oct 8 01:54:59 2014 us=376113 erico/x:47589 [UNDEF] Inactivity timeout (--ping-restart), restarting
My server config file:
mode server
local 10.0.0.4
port 1194
proto udp
dev tun
ca keys/ca.crt
cert keys/vpn.crt
key keys/vpn.key
plugin /usr/lib/openvpn/openvpn-plugin-auth-pam.so openvpn
username-as-common-name
dh keys/dh2048.pem
server 10.10.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 30 1800
tls-auth keys/ta.key 0
cipher AES-256-CBC
auth SHA512
comp-lzo
max-clients 30
user nobody
group nogroup
script-security 3
persist-key
persist-tun
status openvpn-status.log
log-append /var/log/openvpn.log
verb 4
mute 20
reneg-sec 0