Hi.
I have a working configuration for Windows 7 client and my openvpn server on Tomato router. I took the configuration files from Windows and moved it to Linux to create a new client on Ubuntu.
I'm able to create a VPN tunel from the new Linux client but after a couple of minutes client wants to restart due to "Inactivity timeout (--ping-restart)" and this restart fails - and I completely lose the internet connection on the client.
I have two question:
1) Why there's an inactivity timeout in the first place? I thought that's what "keepalive" parameter is for
2) Why the client loses the internet connection and therefore is unable to restart the connection?
Thanks in advance, guys.
client log:
Wed Aug 6 14:21:04 2014 us=896109 Initialization Sequence Completed
Wed Aug 6 14:22:40 2014 us=32329 [js] Inactivity timeout (--ping-restart), restarting
Wed Aug 6 14:22:40 2014 us=33352 TCP/UDP: Closing socket
Wed Aug 6 14:22:40 2014 us=33700 SIGUSR1[soft,ping-restart] received, process restarting
Wed Aug 6 14:22:40 2014 us=33869 Restart pause, 5 second(s)
Wed Aug 6 14:22:45 2014 us=34276 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Wed Aug 6 14:22:45 2014 us=34500 Re-using SSL/TLS context
Wed Aug 6 14:22:45 2014 us=35039 LZO compression initialized
Wed Aug 6 14:22:45 2014 us=35376 Control Channel MTU parms [ L:1576 D:140 EF:40 EB:0 ET:0 EL:0 ]
Wed Aug 6 14:22:45 2014 us=35604 Socket Buffers: R=[87380->131072] S=[16384->131072]
Wed Aug 6 14:22:45 2014 us=35755 Data Channel MTU parms [ L:1576 D:1450 EF:44 EB:135 ET:32 EL:0 AF:3/1 ]
Wed Aug 6 14:22:45 2014 us=35921 Local Options String: 'V4,dev-type tap,link-mtu 1576,tun-mtu 1532,proto TCPv4_CLIENT,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Wed Aug 6 14:22:45 2014 us=36033 Expected Remote Options String: 'V4,dev-type tap,link-mtu 1576,tun-mtu 1532,proto TCPv4_SERVER,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Wed Aug 6 14:22:45 2014 us=36199 Local Options hash (VER=V4): '31fdf004'
Wed Aug 6 14:22:45 2014 us=36361 Expected Remote Options hash (VER=V4): '3e6d1056'
Wed Aug 6 14:22:45 2014 us=36499 Attempting to establish TCP connection with [AF_INET]89.176.108.22:1194 [nonblock]
Wed Aug 6 14:22:55 2014 us=40688 TCP: connect to [AF_INET]89.176.108.22:1194 failed, will try again in 5 seconds: Connection timed out
Wed Aug 6 14:23:10 2014 us=44137 TCP: connect to [AF_INET]89.176.108.22:1194 failed, will try again in 5 seconds: Connection timed out
Wed Aug 6 14:23:25 2014 us=47662 TCP: connect to [AF_INET]89.176.108.22:1194 failed, will try again in 5 seconds: Connection timed out
Wed Aug 6 14:23:40 2014 us=52430 TCP: connect to [AF_INET]89.176.108.22:1194 failed, will try again in 5 seconds: Connection timed out
Wed Aug 6 14:23:55 2014 us=57115 TCP: connect to [AF_INET]89.176.108.22:1194 failed, will try again in 5 seconds: Connection timed out
Wed Aug 6 14:24:10 2014 us=61056 TCP: connect to [AF_INET]89.176.108.22:1194 failed, will try again in 5 seconds: Connection timed out
Wed Aug 6 14:24:25 2014 us=64992 TCP: connect to [AF_INET]89.176.108.22:1194 failed, will try again in 5 seconds: Connection timed out
Wed Aug 6 14:24:40 2014 us=69314 TCP: connect to [AF_INET]89.176.108.22:1194 failed, will try again in 5 seconds: Connection timed out
Wed Aug 6 14:24:55 2014 us=73245 TCP: connect to [AF_INET]89.176.108.22:1194 failed, will try again in 5 seconds: Connection timed out
Wed Aug 6 14:25:10 2014 us=77206 TCP: connect to [AF_INET]89.176.108.22:1194 failed, will try again in 5 seconds: Connection timed out
Wed Aug 6 14:25:23 2014 us=258828 TCP/UDP: Closing socket
Wed Aug 6 14:25:23 2014 us=259026 Closing TUN/TAP interface
Wed Aug 6 14:25:23 2014 us=259129 /sbin/ip addr del dev tap0 192.168.1.50/24
Wed Aug 6 14:25:23 2014 us=294270 SIGINT[hard,init_instance] received, process exiting
client config:
client
proto tcp-client
dev tap
ca /etc/openvpn/ca.crt
cert /etc/openvpn/say.crt
key /etc/openvpn/say.key
#remote ***.no-ip.org 1194
remote internet.ip 1194
cipher BF-CBC
comp-lzo
verb 4
log /etc/openvpn/vpn.log
mute 20
persist-key
persist-tun
float
resolv-retry infinite
nobind
server config
# Automatically generated configuration
daemon
server-bridge 192.168.1.5 255.255.255.0 192.168.1.50 192.168.1.55
proto tcp-server
port 1194
dev tap22
cipher BF-CBC
comp-lzo adaptive
keepalive 15 60
verb 3
push "dhcp-option DNS 192.168.1.5"
ca ca.crt
dh dh.pem
cert server.crt
key server.key
status-version 2
status status