Hi janjust,
I am also having the same set-up as Jeet Chowdhury.
-> Windows7 -> Openvpn2.2 -RC2 -> Hostizzle (vpn service provider)
I am also in need to reconnection after ping-restart.
What I have found was its something with the route table the problem occurs.
I am having dynamic IP, so after each disconnect, we get a new ip and thus the route is getting not proper(via -ping-restart, after connection drop/rconnect
occurs). I think this is the problem. But once we disable and and enable the Tap device, the problem will be solved since route table are cleared (via
_pre.bat or _down.bat), I think so...
Note: the dns & ping-restart is being pulled from the hostizzle server
My nslookup at several intances of connection is as below :
After connecting to ISP - nslookup (not connected to Hostizzle via openvpn)
C:\Users\admin>nslookup
Default Server: dns-ntcl-p.tatacommunications.com
Address: 121.242.190.210
=================================
This was the settings pushed by Hostizzle
Mon May 23 14:07:28 2011 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Mon May 23 14:07:29 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.7.166 10.30.7.165'
===================================
After connecting to Hostizzle server - nslookup
C:\Users\admin>nslookup
Default Server: google-public-dns-a.google.com
Address: 8.8.8.8
==================================
When the internet connection was disconnected/dropped - nslookup (before Hostizzle ping-restart occurs)
C:\Users\admin>nslookup
DNS request timed out.
timeout was 2 seconds.
Default Server: UnKnown
Address: 8.8.8.8
====================================
After the internet link was again reconnectd and the Hostizzle connection was been made via soft-reset - nslookup
C:\Users\admin>nslookup
Default Server: dns-ntcl-p.tatacommunications.com
Address: 121.242.190.210
===============================
So after the line has been dropped and connected, the route is not being properly updating for dns via openvpn(sigusr1)
Do we have any way to make the route again populated with 8.8.8.8 ?
Or can you please give a cmd command to issue signal for "re-connect(SIGUSR1)" the already started OpenGUI ?
so that I could utilize the _down.bat via this option
"remap-usr1 SIGTERM", in my .conf file.
So that the whole _down.bat will be like
netsh interface set interface "TAP-32" DISABLE
netsh interface set interface "TAP-32" ENABLE
<reconnect command to OpenvpnGUI>
Or anyother better solution you have..
By the way,
It will reconnect to the Hostizzle server, after the line is being dropped, but the domainnames wont get resolved..Thats the main problem..
Thanks