adsl disconnected and reconnected openvpn issue

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
konseland
OpenVpn Newbie
Posts: 1
Joined: Sat Nov 16, 2013 2:26 pm

adsl disconnected and reconnected openvpn issue

Post by konseland » Sat Nov 16, 2013 6:12 pm

Hi everyone, I managed to connect via openvpn and it works.
I have a big issue with it, sometimes I lose adsl connection and in that moment the log say as expected

----------------------------------------------------------
Sat Nov 16 16:41:32 2013 OpenVPN 2.1_rc20 mipsel-oe-linux [SSL] [LZO1] [EPOLL] built on Jan 25 2011
Sat Nov 16 16:41:32 2013 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sat Nov 16 16:41:32 2013 Control Channel Authentication: using '/etc/openvpn/keys/Ivacy-tls.key' as a OpenVPN static key file
Sat Nov 16 16:41:32 2013 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Nov 16 16:41:32 2013 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Nov 16 16:41:32 2013 LZO compression initialized
Sat Nov 16 16:41:32 2013 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
Sat Nov 16 16:41:32 2013 RESOLVE: NOTE: openvpn.ivacy.com resolves to 3 addresses, choosing one by random
Sat Nov 16 16:41:32 2013 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Sat Nov 16 16:41:32 2013 Local Options hash (VER=V4): '504e774e'
Sat Nov 16 16:41:32 2013 Expected Remote Options hash (VER=V4): '14168603'
Sat Nov 16 16:41:32 2013 Socket Buffers: R=[103424->131072] S=[103424->131072]
Sat Nov 16 16:41:32 2013 UDPv4 link local: [undef]
Sat Nov 16 16:41:32 2013 UDPv4 link remote: 213.232.200.172:1194
Sat Nov 16 16:41:32 2013 TLS: Initial packet from 213.232.200.172:1194, sid=e172bb64 84e792a2
Sat Nov 16 16:41:32 2013 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sat Nov 16 16:41:37 2013 VERIFY OK: depth=1, /C=RU/ST=MR/L=Moscow/O=ivacy.com/CN=ivacy.com_CA/emailAddress=admin@ivacy.com
Sat Nov 16 16:41:37 2013 VERIFY OK: nsCertType=SERVER
Sat Nov 16 16:41:37 2013 VERIFY OK: depth=0, /C=RU/ST=MR/L=Moscow/O=ivacy.com/CN=openvpn.ivacy.com/emailAddress=admin@ivacy.com
Sat Nov 16 16:41:43 2013 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Nov 16 16:41:43 2013 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Nov 16 16:41:43 2013 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Nov 16 16:41:43 2013 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Nov 16 16:41:43 2013 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Sat Nov 16 16:41:43 2013 [openvpn.ivacy.com] Peer Connection Initiated with 213.232.200.172:1194
Sat Nov 16 16:41:46 2013 SENT CONTROL [openvpn.ivacy.com]: 'PUSH_REQUEST' (status=1)
Sat Nov 16 16:41:46 2013 PUSH: Received control message: 'PUSH_REPLY,route 1.0.0.0 255.0.0.0,dhcp-option DNS 1.254.2.2,dhcp-option DNS 1.254.2.3,dhcp-option DOMAIN vpn,explicit-exit-notify 2,route-gateway 1.2.112.1,topology subnet,ping 10,ping-restart 60,ifconfig 1.2.112.109 255.255.252.0'
Sat Nov 16 16:41:46 2013 OPTIONS IMPORT: timers and/or timeouts modified
Sat Nov 16 16:41:46 2013 OPTIONS IMPORT: explicit notify parm(s) modified
Sat Nov 16 16:41:46 2013 OPTIONS IMPORT: --ifconfig/up options modified
Sat Nov 16 16:41:46 2013 OPTIONS IMPORT: route options modified
Sat Nov 16 16:41:46 2013 OPTIONS IMPORT: route-related options modified
Sat Nov 16 16:41:46 2013 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sat Nov 16 16:41:46 2013 ROUTE default_gateway=192.168.1.1
Sat Nov 16 16:41:46 2013 TUN/TAP device tun0 opened
Sat Nov 16 16:41:46 2013 TUN/TAP TX queue length set to 100
Sat Nov 16 16:41:46 2013 /sbin/ifconfig tun0 1.2.112.109 netmask 255.255.252.0 mtu 1500 broadcast 1.2.115.255
Sat Nov 16 16:41:46 2013 /sbin/route add -net 213.232.200.172 netmask 255.255.255.255 gw 192.168.1.1
Sat Nov 16 16:41:46 2013 /sbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw 1.2.112.1
Sat Nov 16 16:41:46 2013 /sbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw 1.2.112.1
Sat Nov 16 16:41:46 2013 /sbin/route add -net 1.0.0.0 netmask 255.0.0.0 gw 1.2.112.1
Sat Nov 16 16:41:46 2013 Initialization Sequence Completed
Sat Nov 16 17:05:18 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:05:21 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:05:22 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:05:23 2013 write UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:05:27 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:05:28 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:05:33 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:05:36 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:05:38 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:05:38 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:05:43 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:05:46 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:05:48 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:05:51 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:05:53 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:05:56 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:05:58 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:06:01 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:06:02 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:06:02 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:06:03 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:06:03 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:06:06 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:06:08 2013 read UDPv4 [ENETUNREACH]: Network is unreachable (code=128)
Sat Nov 16 17:06:09 2013 [openvpn.ivacy.com] Inactivity timeout (--ping-restart), restarting
Sat Nov 16 17:06:09 2013 TCP/UDP: Closing socket
Sat Nov 16 17:06:09 2013 SIGUSR1[soft,ping-restart] received, process restarting
Sat Nov 16 17:06:09 2013 Restart pause, 2 second(s)
Sat Nov 16 17:06:11 2013 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sat Nov 16 17:06:11 2013 Re-using SSL/TLS context
Sat Nov 16 17:06:11 2013 LZO compression initialized
Sat Nov 16 17:06:11 2013 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
Sat Nov 16 17:07:31 2013 RESOLVE: Cannot resolve host address: openvpn.ivacy.com: [TRY_AGAIN] A temporary error occurred on an authoritative name server.
Sat Nov 16 17:07:31 2013 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Sat Nov 16 17:07:31 2013 Local Options hash (VER=V4): '504e774e'
Sat Nov 16 17:07:31 2013 Expected Remote Options hash (VER=V4): '14168603'
Sat Nov 16 17:08:51 2013 RESOLVE: Cannot resolve host address: openvpn.ivacy.com: [TRY_AGAIN] A temporary error occurred on an authoritative name server.
Sat Nov 16 17:10:16 2013 RESOLVE: Cannot resolve host address: openvpn.ivacy.com: [TRY_AGAIN] A temporary error occurred on an authoritative name server.
Sat Nov 16 17:11:41 2013 RESOLVE: Cannot resolve host address: openvpn.ivacy.com: [TRY_AGAIN] A temporary error occurred on an authoritative name server.
---------------------------------------------------------------------
by the log seems that the last time he tried to connect was 17.11 and than stop...

when the connection is back again openvpn doesn't reconnect again and I have to reboot the receiver to let it work.

I've tried to stop OPENVPN service and dreambox get the connection, if i try to start again openvpn it manage to connect to the server but I don't have connection the same

can I do something? I'm going crazy...

Post Reply