OpenVPN Reconnect Problem

How to customize and extend your OpenVPN installation.

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

Jeet Chowdhury
OpenVPN User
Posts: 26
Joined: Wed May 18, 2011 4:34 pm

OpenVPN Reconnect Problem

Post by Jeet Chowdhury » Wed May 18, 2011 4:38 pm

how can i force openvpn to reconnect (with pre batch script) if openvpn got disconnected. than it preserve previous tap stat....


as in windows 7 if my isp got disconnected openvpn reconnect using preserving previous tap setting but internet not work until i disable and reenable tap adapter and click on reconnect button. so i want to do like this when my isp reconnect it reconnect than preserving previous TAP-32 stat....

i'm using myhost_pre.bat file in config folder.... with contain:
netsh interface set interface "TAP-32" DISABLE
netsh interface set interface "TAP-32" ENABLE

Jeet Chowdhury
OpenVPN User
Posts: 26
Joined: Wed May 18, 2011 4:34 pm

Re: OpenVPN Reconnect Problem

Post by Jeet Chowdhury » Wed May 18, 2011 5:19 pm

this is my config file:
client
dev tun
proto tcp

#Change my.publicdomain.com to your public domain or IP address
remote xx.xx.xx.xx 443

remote-random

resolv-retry infinite
nobind
persist-key
persist-tun


tls-auth ta.key 1

ca ca.crt
cert client.crt
key client.key

ns-cert-type server

#DNS Options here, CHANGE THESE !!
#push "dhcp-option DNS 10.8.0.1"

comp-lzo

verb 3

ping-restart 10

Jeet Chowdhury
OpenVPN User
Posts: 26
Joined: Wed May 18, 2011 4:34 pm

Re: OpenVPN Reconnect Problem

Post by Jeet Chowdhury » Thu May 19, 2011 6:05 am

bump....

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: OpenVPN Reconnect Problem

Post by janjust » Thu May 19, 2011 8:20 am

not sure I understand the question - can you post a client log message of a failing reconnect? and of a working connect?

Jeet Chowdhury
OpenVPN User
Posts: 26
Joined: Wed May 18, 2011 4:34 pm

Re: OpenVPN Reconnect Problem

Post by Jeet Chowdhury » Thu May 19, 2011 10:04 am

working:
Thu May 19 14:48:17 2011 OpenVPN 2.2.0 Win32-MSVC++ [SSL] [LZO2] built on Apr 26 2011
Thu May 19 14:48:17 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu May 19 14:48:17 2011 Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Thu May 19 14:48:17 2011 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu May 19 14:48:17 2011 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu May 19 14:48:17 2011 LZO compression initialized
Thu May 19 14:48:17 2011 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
Thu May 19 14:48:17 2011 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu May 19 14:48:17 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Thu May 19 14:48:17 2011 Local Options hash (VER=V4): '504e774e'
Thu May 19 14:48:17 2011 Expected Remote Options hash (VER=V4): '14168603'
Thu May 19 14:48:17 2011 UDPv4 link local: [undef]
Thu May 19 14:48:17 2011 UDPv4 link remote: 76.10.222.65:53
Thu May 19 14:48:27 2011 [UNDEF] Inactivity timeout (--ping-restart), restarting
Thu May 19 14:48:27 2011 TCP/UDP: Closing socket
Thu May 19 14:48:27 2011 SIGUSR1[soft,ping-restart] received, process restarting
Thu May 19 14:48:27 2011 Restart pause, 2 second(s)
Thu May 19 14:48:29 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu May 19 14:48:29 2011 Re-using SSL/TLS context
Thu May 19 14:48:29 2011 LZO compression initialized
Thu May 19 14:48:29 2011 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
Thu May 19 14:48:29 2011 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu May 19 14:48:29 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Thu May 19 14:48:29 2011 Local Options hash (VER=V4): '504e774e'
Thu May 19 14:48:29 2011 Expected Remote Options hash (VER=V4): '14168603'
Thu May 19 14:48:29 2011 UDPv4 link local: [undef]
Thu May 19 14:48:29 2011 UDPv4 link remote: 76.10.222.65:53
Thu May 19 14:48:39 2011 [UNDEF] Inactivity timeout (--ping-restart), restarting
Thu May 19 14:48:39 2011 TCP/UDP: Closing socket
Thu May 19 14:48:39 2011 SIGUSR1[soft,ping-restart] received, process restarting
Thu May 19 14:48:39 2011 Restart pause, 2 second(s)
Thu May 19 14:48:41 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu May 19 14:48:41 2011 Re-using SSL/TLS context
Thu May 19 14:48:41 2011 LZO compression initialized
Thu May 19 14:48:41 2011 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
Thu May 19 14:48:41 2011 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu May 19 14:48:41 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Thu May 19 14:48:41 2011 Local Options hash (VER=V4): '504e774e'
Thu May 19 14:48:41 2011 Expected Remote Options hash (VER=V4): '14168603'
Thu May 19 14:48:41 2011 UDPv4 link local: [undef]
Thu May 19 14:48:41 2011 UDPv4 link remote: 76.10.222.65:53
Thu May 19 14:48:41 2011 TLS: Initial packet from 76.10.222.65:53, sid=49c337f7 87f357f1
Thu May 19 14:48:43 2011 VERIFY OK: depth=1, /C=US/ST=OH/L=Columbus/O=Hostizzle/CN=Hostizzle_CA/emailAddress=hostizzle@gmail.com
Thu May 19 14:48:43 2011 VERIFY OK: nsCertType=SERVER
Thu May 19 14:48:43 2011 VERIFY OK: depth=0, /C=US/ST=OH/L=Columbus/O=Hostizzle/CN=server/emailAddress=hostizzle@gmail.com
Thu May 19 14:49:03 2011 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu May 19 14:49:03 2011 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu May 19 14:49:03 2011 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu May 19 14:49:03 2011 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu May 19 14:49:04 2011 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Thu May 19 14:49:04 2011 [server] Peer Connection Initiated with 76.10.222.65:53
Thu May 19 14:49:06 2011 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu May 19 14:49:07 2011 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway,dhcp-option DNS 8.8.8.8,ping 10,ping-restart 60,route 10.30.0.1,topology net30,ifconfig 10.30.3.54 10.30.3.53'
Thu May 19 14:49:07 2011 OPTIONS IMPORT: timers and/or timeouts modified
Thu May 19 14:49:07 2011 OPTIONS IMPORT: --ifconfig/up options modified
Thu May 19 14:49:07 2011 OPTIONS IMPORT: route options modified
Thu May 19 14:49:07 2011 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Thu May 19 14:49:07 2011 ROUTE default_gateway=49.136.154.22
Thu May 19 14:49:07 2011 TAP-WIN32 device [TAP-32] opened: \\.\Global\{FDB21102-33AB-42D6-8DD5-240594864F24}.tap
Thu May 19 14:49:07 2011 TAP-Win32 Driver Version 9.8
Thu May 19 14:49:07 2011 TAP-Win32 MTU=1500
Thu May 19 14:49:07 2011 Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.30.3.54/255.255.255.252 on interface {FDB21102-33AB-42D6-8DD5-240594864F24} [DHCP-serv: 10.30.3.53, lease-time: 31536000]
Thu May 19 14:49:07 2011 Successful ARP Flush on interface [23] {FDB21102-33AB-42D6-8DD5-240594864F24}
Thu May 19 14:49:12 2011 TEST ROUTES: 2/2 succeeded len=1 ret=1 a=0 u/d=up
Thu May 19 14:49:12 2011 C:\WINDOWS\system32\route.exe ADD 76.10.222.65 MASK 255.255.255.255 49.136.154.22
Thu May 19 14:49:12 2011 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Thu May 19 14:49:12 2011 Route addition via IPAPI succeeded [adaptive]
Thu May 19 14:49:12 2011 C:\WINDOWS\system32\route.exe DELETE 0.0.0.0 MASK 0.0.0.0 49.136.154.22
Thu May 19 14:49:12 2011 Route deletion via IPAPI succeeded [adaptive]
Thu May 19 14:49:12 2011 C:\WINDOWS\system32\route.exe ADD 0.0.0.0 MASK 0.0.0.0 10.30.3.53
Thu May 19 14:49:12 2011 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Thu May 19 14:49:12 2011 Route addition via IPAPI succeeded [adaptive]
Thu May 19 14:49:12 2011 C:\WINDOWS\system32\route.exe ADD 10.30.0.1 MASK 255.255.255.255 10.30.3.53
Thu May 19 14:49:12 2011 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Thu May 19 14:49:12 2011 Route addition via IPAPI succeeded [adaptive]
Thu May 19 14:49:12 2011 Initialization Sequence Completed
Thu May 19 14:49:15 2011 Replay-window backtrack occurred [1]
Thu May 19 14:49:20 2011 Replay-window backtrack occurred [2]
Thu May 19 14:49:23 2011 Replay-window backtrack occurred [7]
Thu May 19 14:49:36 2011 Replay-window backtrack occurred [10]
Thu May 19 14:50:03 2011 Replay-window backtrack occurred [12]
Thu May 19 14:50:05 2011 Replay-window backtrack occurred [14]
Thu May 19 14:50:05 2011 Replay-window backtrack occurred [15]
Thu May 19 14:50:05 2011 Replay-window backtrack occurred [16]
Thu May 19 14:50:27 2011 Replay-window backtrack occurred [20]
Thu May 19 14:50:56 2011 Replay-window backtrack occurred [31]
Thu May 19 15:08:19 2011 Replay-window backtrack occurred [34]


Not working:
Thu May 19 15:32:50 2011 [server] Inactivity timeout (--ping-restart), restarting
Thu May 19 15:32:50 2011 TCP/UDP: Closing socket
Thu May 19 15:32:50 2011 SIGUSR1[soft,ping-restart] received, process restarting
Thu May 19 15:32:50 2011 Restart pause, 2 second(s)
Thu May 19 15:32:52 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu May 19 15:32:52 2011 Re-using SSL/TLS context
Thu May 19 15:32:52 2011 LZO compression initialized
Thu May 19 15:32:52 2011 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
Thu May 19 15:32:52 2011 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu May 19 15:32:52 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Thu May 19 15:32:52 2011 Local Options hash (VER=V4): '504e774e'
Thu May 19 15:32:52 2011 Expected Remote Options hash (VER=V4): '14168603'
Thu May 19 15:32:52 2011 UDPv4 link local: [undef]
Thu May 19 15:32:52 2011 UDPv4 link remote: 76.10.222.65:53
Thu May 19 15:32:52 2011 TLS: Initial packet from 76.10.222.65:53, sid=90fe6fff 5469d396
Thu May 19 15:32:54 2011 VERIFY OK: depth=1, /C=US/ST=OH/L=Columbus/O=Hostizzle/CN=Hostizzle_CA/emailAddress=hostizzle@gmail.com
Thu May 19 15:32:54 2011 VERIFY OK: nsCertType=SERVER
Thu May 19 15:32:54 2011 VERIFY OK: depth=0, /C=US/ST=OH/L=Columbus/O=Hostizzle/CN=server/emailAddress=hostizzle@gmail.com
Thu May 19 15:32:57 2011 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu May 19 15:32:57 2011 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu May 19 15:32:57 2011 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu May 19 15:32:57 2011 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu May 19 15:32:57 2011 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Thu May 19 15:32:57 2011 [server] Peer Connection Initiated with 76.10.222.65:53
Thu May 19 15:32:59 2011 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu May 19 15:32:59 2011 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway,dhcp-option DNS 8.8.8.8,ping 10,ping-restart 60,route 10.30.0.1,topology net30,ifconfig 10.30.3.54 10.30.3.53'
Thu May 19 15:32:59 2011 OPTIONS IMPORT: timers and/or timeouts modified
Thu May 19 15:32:59 2011 OPTIONS IMPORT: --ifconfig/up options modified
Thu May 19 15:32:59 2011 OPTIONS IMPORT: route options modified
Thu May 19 15:32:59 2011 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Thu May 19 15:32:59 2011 Preserving previous TUN/TAP instance: TAP-32
Thu May 19 15:32:59 2011 Initialization Sequence Completed

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: OpenVPN Reconnect Problem

Post by janjust » Thu May 19, 2011 10:09 am

errr, you're using

Code: Select all

persist-tun
yet you do not want the TAP device to be persisted? comment out 'persist-tun'

also note that you can (re)run an 'up' script using

Code: Select all

up <some-script>
up-restart

Jeet Chowdhury
OpenVPN User
Posts: 26
Joined: Wed May 18, 2011 4:34 pm

Re: OpenVPN Reconnect Problem

Post by Jeet Chowdhury » Thu May 19, 2011 10:17 am

can you please explain me what i need to do in that config file. Actually im new in openvpn. Thank you for your reply.

Jeet Chowdhury
OpenVPN User
Posts: 26
Joined: Wed May 18, 2011 4:34 pm

Re: OpenVPN Reconnect Problem

Post by Jeet Chowdhury » Thu May 19, 2011 10:21 am

my isp disconnect frequentlly so after windows reconnect to the isp openvpn not work. Do i need temove line presist tun?

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: OpenVPN Reconnect Problem

Post by janjust » Thu May 19, 2011 10:23 am

in your client config, comment out the line

Code: Select all

persist-tun
reconnect the VPN client then wait for your ISP to dis- and reconnect you.

Jeet Chowdhury
OpenVPN User
Posts: 26
Joined: Wed May 18, 2011 4:34 pm

Re: OpenVPN Reconnect Problem

Post by Jeet Chowdhury » Thu May 19, 2011 10:28 am

uncomment means? Its already uncommented right?

Jeet Chowdhury
OpenVPN User
Posts: 26
Joined: Wed May 18, 2011 4:34 pm

Re: OpenVPN Reconnect Problem

Post by Jeet Chowdhury » Thu May 19, 2011 10:43 am

here is my ovpn file:

Code: Select all

client
dev tun
proto tcp

#Change my.publicdomain.com to your public domain or IP address
remote 76.10.222.65 443

remote-random

resolv-retry infinite
nobind
persist-key
persist-tun


tls-auth ta.key 1

ca ca.crt
cert client.crt
key client.key

ns-cert-type server

#DNS Options here, CHANGE THESE !!
#push "dhcp-option DNS 10.8.0.1"

comp-lzo

verb 3  

ping-restart 10   
what i need to do now?

Jeet Chowdhury
OpenVPN User
Posts: 26
Joined: Wed May 18, 2011 4:34 pm

Re: OpenVPN Reconnect Problem

Post by Jeet Chowdhury » Thu May 19, 2011 10:50 am

what i want to do is if isp disconnected then at the time when openvpn auto reconnect it will first disable tap adapter and then enable tap adapter.... the disable and enable tap command i putted in hostizzle_pre.bat file.....

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: OpenVPN Reconnect Problem

Post by janjust » Thu May 19, 2011 11:14 am

comment out means :

change

Code: Select all

persist-tun
to

Code: Select all

# persist-tun

Jeet Chowdhury
OpenVPN User
Posts: 26
Joined: Wed May 18, 2011 4:34 pm

Re: OpenVPN Reconnect Problem

Post by Jeet Chowdhury » Thu May 19, 2011 12:23 pm

i have done that but same problem. Its not working until i disable and then enable the tap adapter then reconnect. :(

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: OpenVPN Reconnect Problem

Post by janjust » Thu May 19, 2011 12:28 pm

What error is reported when it fails to reconnect ('Preserving blabla' is NOT the error message).

Jeet Chowdhury
OpenVPN User
Posts: 26
Joined: Wed May 18, 2011 4:34 pm

Re: OpenVPN Reconnect Problem

Post by Jeet Chowdhury » Thu May 19, 2011 12:33 pm

the openvpn gui icon shown as green but web page not opening (as my f*c*ing isp only allow selected sites :( ) and cant download anything until i disable and re-enable the tap-32 adapter and reconnect openvpn.....

Jeet Chowdhury
OpenVPN User
Posts: 26
Joined: Wed May 18, 2011 4:34 pm

Re: OpenVPN Reconnect Problem

Post by Jeet Chowdhury » Thu May 19, 2011 12:36 pm

see this post:

https://airvpn.org/index.php?option=com ... tart=6#739

i'm using this method.... but when reconnect this method not applys.... :(

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: OpenVPN Reconnect Problem

Post by janjust » Thu May 19, 2011 12:54 pm

change your config file to

Code: Select all

# persist-key
# persist-tun
verb 5
reconnect the client and then post the full openvpn client log file here.

Jeet Chowdhury
OpenVPN User
Posts: 26
Joined: Wed May 18, 2011 4:34 pm

Re: OpenVPN Reconnect Problem

Post by Jeet Chowdhury » Thu May 19, 2011 1:17 pm

here is log:

Code: Select all

Thu May 19 18:40:51 2011 OpenVPN 2.2.0 Win32-MSVC++ [SSL] [LZO2] built on Apr 26 2011
Thu May 19 18:40:51 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu May 19 18:40:51 2011 Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Thu May 19 18:40:51 2011 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu May 19 18:40:51 2011 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu May 19 18:40:51 2011 LZO compression initialized
Thu May 19 18:40:51 2011 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
Thu May 19 18:40:51 2011 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu May 19 18:40:51 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Thu May 19 18:40:51 2011 Local Options hash (VER=V4): '504e774e'
Thu May 19 18:40:51 2011 Expected Remote Options hash (VER=V4): '14168603'
Thu May 19 18:40:51 2011 UDPv4 link local: [undef]
Thu May 19 18:40:51 2011 UDPv4 link remote: 76.10.222.65:53
Thu May 19 18:40:53 2011 TLS: Initial packet from 76.10.222.65:53, sid=0eeb95e7 ec40f406
Thu May 19 18:40:54 2011 Replay-window backtrack occurred [1]
Thu May 19 18:40:57 2011 VERIFY OK: depth=1, /C=US/ST=OH/L=Columbus/O=Hostizzle/CN=Hostizzle_CA/emailAddress=hostizzle@gmail.com
Thu May 19 18:40:57 2011 VERIFY OK: nsCertType=SERVER
Thu May 19 18:40:57 2011 VERIFY OK: depth=0, /C=US/ST=OH/L=Columbus/O=Hostizzle/CN=server/emailAddress=hostizzle@gmail.com
Thu May 19 18:41:05 2011 Replay-window backtrack occurred [2]
Thu May 19 18:41:05 2011 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu May 19 18:41:05 2011 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu May 19 18:41:05 2011 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu May 19 18:41:05 2011 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu May 19 18:41:05 2011 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Thu May 19 18:41:05 2011 [server] Peer Connection Initiated with 76.10.222.65:53
Thu May 19 18:41:07 2011 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu May 19 18:41:08 2011 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway,dhcp-option DNS 8.8.8.8,ping 10,ping-restart 60,route 10.30.0.1,topology net30,ifconfig 10.30.3.54 10.30.3.53'
Thu May 19 18:41:08 2011 OPTIONS IMPORT: timers and/or timeouts modified
Thu May 19 18:41:08 2011 OPTIONS IMPORT: --ifconfig/up options modified
Thu May 19 18:41:08 2011 OPTIONS IMPORT: route options modified
Thu May 19 18:41:08 2011 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Thu May 19 18:41:08 2011 ROUTE default_gateway=49.136.113.108
Thu May 19 18:41:08 2011 TAP-WIN32 device [TAP-32] opened: \\.\Global\{FDB21102-33AB-42D6-8DD5-240594864F24}.tap
Thu May 19 18:41:08 2011 TAP-Win32 Driver Version 9.8 
Thu May 19 18:41:08 2011 TAP-Win32 MTU=1500
Thu May 19 18:41:08 2011 Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.30.3.54/255.255.255.252 on interface {FDB21102-33AB-42D6-8DD5-240594864F24} [DHCP-serv: 10.30.3.53, lease-time: 31536000]
Thu May 19 18:41:08 2011 Successful ARP Flush on interface [23] {FDB21102-33AB-42D6-8DD5-240594864F24}
Thu May 19 18:41:14 2011 TEST ROUTES: 2/2 succeeded len=1 ret=1 a=0 u/d=up
Thu May 19 18:41:14 2011 C:\WINDOWS\system32\route.exe ADD 76.10.222.65 MASK 255.255.255.255 49.136.113.108
Thu May 19 18:41:14 2011 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Thu May 19 18:41:14 2011 Route addition via IPAPI succeeded [adaptive]
Thu May 19 18:41:14 2011 C:\WINDOWS\system32\route.exe DELETE 0.0.0.0 MASK 0.0.0.0 49.136.113.108
Thu May 19 18:41:14 2011 Route deletion via IPAPI succeeded [adaptive]
Thu May 19 18:41:14 2011 C:\WINDOWS\system32\route.exe ADD 0.0.0.0 MASK 0.0.0.0 10.30.3.53
Thu May 19 18:41:14 2011 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Thu May 19 18:41:14 2011 Route addition via IPAPI succeeded [adaptive]
Thu May 19 18:41:14 2011 C:\WINDOWS\system32\route.exe ADD 10.30.0.1 MASK 255.255.255.255 10.30.3.53
Thu May 19 18:41:14 2011 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Thu May 19 18:41:14 2011 Route addition via IPAPI succeeded [adaptive]
Thu May 19 18:41:14 2011 Initialization Sequence Completed
Thu May 19 18:42:26 2011 [server] Inactivity timeout (--ping-restart), restarting
Thu May 19 18:42:26 2011 TCP/UDP: Closing socket
Thu May 19 18:42:26 2011 C:\WINDOWS\system32\route.exe DELETE 10.30.0.1 MASK 255.255.255.255 10.30.3.53
Thu May 19 18:42:26 2011 Route deletion via IPAPI succeeded [adaptive]
Thu May 19 18:42:26 2011 C:\WINDOWS\system32\route.exe DELETE 76.10.222.65 MASK 255.255.255.255 49.136.113.108
Thu May 19 18:42:26 2011 Warning: route gateway is not reachable on any active network adapters: 49.136.113.108
Thu May 19 18:42:26 2011 Route deletion via IPAPI failed [adaptive]
Thu May 19 18:42:26 2011 Route deletion fallback to route.exe
The route deletion failed: Element not found.
Thu May 19 18:42:26 2011 C:\WINDOWS\system32\route.exe DELETE 0.0.0.0 MASK 0.0.0.0 10.30.3.53
Thu May 19 18:42:26 2011 Route deletion via IPAPI succeeded [adaptive]
Thu May 19 18:42:26 2011 C:\WINDOWS\system32\route.exe ADD 0.0.0.0 MASK 0.0.0.0 49.136.113.108
Thu May 19 18:42:26 2011 Warning: route gateway is not reachable on any active network adapters: 49.136.113.108
Thu May 19 18:42:26 2011 Route addition via IPAPI failed [adaptive]
Thu May 19 18:42:26 2011 Route addition fallback to route.exe
The route addition failed: Element not found.
Thu May 19 18:42:26 2011 Closing TUN/TAP interface
Thu May 19 18:42:26 2011 SIGUSR1[soft,ping-restart] received, process restarting
Thu May 19 18:42:26 2011 Restart pause, 2 second(s)
Thu May 19 18:42:28 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu May 19 18:42:28 2011 Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Thu May 19 18:42:28 2011 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu May 19 18:42:28 2011 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu May 19 18:42:28 2011 LZO compression initialized
Thu May 19 18:42:28 2011 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
Thu May 19 18:42:28 2011 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu May 19 18:42:28 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Thu May 19 18:42:28 2011 Local Options hash (VER=V4): '504e774e'
Thu May 19 18:42:28 2011 Expected Remote Options hash (VER=V4): '14168603'
Thu May 19 18:42:28 2011 UDPv4 link local: [undef]
Thu May 19 18:42:28 2011 UDPv4 link remote: 76.10.222.65:53
Thu May 19 18:43:28 2011 [UNDEF] Inactivity timeout (--ping-restart), restarting
Thu May 19 18:43:28 2011 TCP/UDP: Closing socket
Thu May 19 18:43:28 2011 SIGUSR1[soft,ping-restart] received, process restarting
Thu May 19 18:43:28 2011 Restart pause, 2 second(s)
Thu May 19 18:43:30 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu May 19 18:43:30 2011 Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Thu May 19 18:43:30 2011 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu May 19 18:43:30 2011 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu May 19 18:43:30 2011 LZO compression initialized
Thu May 19 18:43:30 2011 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
Thu May 19 18:43:30 2011 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu May 19 18:43:30 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Thu May 19 18:43:30 2011 Local Options hash (VER=V4): '504e774e'
Thu May 19 18:43:30 2011 Expected Remote Options hash (VER=V4): '14168603'
Thu May 19 18:43:30 2011 UDPv4 link local: [undef]
Thu May 19 18:43:30 2011 UDPv4 link remote: 76.10.222.65:53
Thu May 19 18:44:30 2011 [UNDEF] Inactivity timeout (--ping-restart), restarting
Thu May 19 18:44:30 2011 TCP/UDP: Closing socket
Thu May 19 18:44:30 2011 SIGUSR1[soft,ping-restart] received, process restarting
Thu May 19 18:44:30 2011 Restart pause, 2 second(s)
Thu May 19 18:44:32 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Thu May 19 18:44:32 2011 Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Thu May 19 18:44:32 2011 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu May 19 18:44:32 2011 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu May 19 18:44:32 2011 LZO compression initialized
Thu May 19 18:44:32 2011 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
Thu May 19 18:44:32 2011 Socket Buffers: R=[8192->8192] S=[8192->8192]
Thu May 19 18:44:32 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Thu May 19 18:44:32 2011 Local Options hash (VER=V4): '504e774e'
Thu May 19 18:44:32 2011 Expected Remote Options hash (VER=V4): '14168603'
Thu May 19 18:44:32 2011 UDPv4 link local: [undef]
Thu May 19 18:44:32 2011 UDPv4 link remote: 76.10.222.65:53
Thu May 19 18:45:04 2011 TLS: Initial packet from 76.10.222.65:53, sid=224f0118 ca29c355
Thu May 19 18:45:08 2011 VERIFY OK: depth=1, /C=US/ST=OH/L=Columbus/O=Hostizzle/CN=Hostizzle_CA/emailAddress=hostizzle@gmail.com
Thu May 19 18:45:08 2011 VERIFY OK: nsCertType=SERVER
Thu May 19 18:45:08 2011 VERIFY OK: depth=0, /C=US/ST=OH/L=Columbus/O=Hostizzle/CN=server/emailAddress=hostizzle@gmail.com
Thu May 19 18:45:16 2011 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu May 19 18:45:16 2011 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu May 19 18:45:16 2011 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu May 19 18:45:16 2011 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu May 19 18:45:16 2011 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Thu May 19 18:45:16 2011 [server] Peer Connection Initiated with 76.10.222.65:53
Thu May 19 18:45:19 2011 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Thu May 19 18:45:20 2011 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway,dhcp-option DNS 8.8.8.8,ping 10,ping-restart 60,route 10.30.0.1,topology net30,ifconfig 10.30.3.54 10.30.3.53'
Thu May 19 18:45:20 2011 OPTIONS IMPORT: timers and/or timeouts modified
Thu May 19 18:45:20 2011 OPTIONS IMPORT: --ifconfig/up options modified
Thu May 19 18:45:20 2011 OPTIONS IMPORT: route options modified
Thu May 19 18:45:20 2011 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Thu May 19 18:45:20 2011 ROUTE default_gateway=49.136.83.239
Thu May 19 18:45:20 2011 TAP-WIN32 device [TAP-32] opened: \\.\Global\{FDB21102-33AB-42D6-8DD5-240594864F24}.tap
Thu May 19 18:45:20 2011 TAP-Win32 Driver Version 9.8 
Thu May 19 18:45:20 2011 TAP-Win32 MTU=1500
Thu May 19 18:45:20 2011 Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.30.3.54/255.255.255.252 on interface {FDB21102-33AB-42D6-8DD5-240594864F24} [DHCP-serv: 10.30.3.53, lease-time: 31536000]
Thu May 19 18:45:20 2011 Successful ARP Flush on interface [23] {FDB21102-33AB-42D6-8DD5-240594864F24}
Thu May 19 18:45:26 2011 TEST ROUTES: 2/2 succeeded len=1 ret=1 a=0 u/d=up
Thu May 19 18:45:26 2011 C:\WINDOWS\system32\route.exe ADD 76.10.222.65 MASK 255.255.255.255 49.136.83.239
Thu May 19 18:45:26 2011 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Thu May 19 18:45:26 2011 Route addition via IPAPI succeeded [adaptive]
Thu May 19 18:45:26 2011 C:\WINDOWS\system32\route.exe DELETE 0.0.0.0 MASK 0.0.0.0 49.136.83.239
Thu May 19 18:45:26 2011 Route deletion via IPAPI succeeded [adaptive]
Thu May 19 18:45:26 2011 C:\WINDOWS\system32\route.exe ADD 0.0.0.0 MASK 0.0.0.0 10.30.3.53
Thu May 19 18:45:26 2011 ROUTE: route addition failed using CreateIpForwardEntry: One or more arguments are not correct.   [status=160 if_index=23]
Thu May 19 18:45:26 2011 Route addition via IPAPI failed [adaptive]
Thu May 19 18:45:26 2011 Route addition fallback to route.exe
 OK!
Thu May 19 18:45:26 2011 C:\WINDOWS\system32\route.exe ADD 10.30.0.1 MASK 255.255.255.255 10.30.3.53
Thu May 19 18:45:26 2011 ROUTE: route addition failed using CreateIpForwardEntry: One or more arguments are not correct.   [status=160 if_index=23]
Thu May 19 18:45:26 2011 Route addition via IPAPI failed [adaptive]
Thu May 19 18:45:26 2011 Route addition fallback to route.exe
 OK!
Thu May 19 18:45:26 2011 Initialization Sequence Completed
still not opening pages and download after reconnect.... ;(

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: OpenVPN Reconnect Problem

Post by janjust » Thu May 19, 2011 1:29 pm

try adding

Code: Select all

route-method exe
route-delay 3
to the openvpn client config file and reconnect; just to make sure: you ARE running with elevated admin privileges, right?

Post Reply