[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] Gateway IP of win-tap disappeared


  • Subject: Re: [Openvpn-users] Gateway IP of win-tap disappeared
  • From: sam wun <sam.wun@xxxxxxxxxxx>
  • Date: Mon, 01 Nov 2004 18:19:51 +0800

Mathias Sundman wrote:

On Mon, 1 Nov 2004, sam wun wrote:

I found the gateway IP address sometimes disappear from windows network config after the successful establishment of the openvpn connection.
I m using openvpn beta 14 with winxp as client. The connection protocol is UDP with tap.


The "push" config in the server is as follow:

push "ping 10"
push "ping-restart 30"
#push "persist-tun"
push "persist-key"
push "redirect-gateway"
push "route-gateway 172.16.0.1"
#push "route delete 192.168.9.0 255.255.255.0"
push "route 192.168.9.0 255.255.255.0"
push "dhcp-option DNS 192.168.9.254"
push "dhcp-option WINS 192.168.9.254"
push "ip-win32 dynamic"
push "dhcp-option NBT 8"
push "dhcp-option DOMAIN mydomain.com"


What gateway address? The original one, or the one pushed by OpenVPN?

The original one.


With your configuration the original default gateway should be replaced with the one set by OpenVPN.

Sometimes it does, sometimes not, and sometimes both are disappeared.


I think you can run into problems when Windows DHCP client refreshes the IP address though. This could cause the old default gateway to be restored.

Yup, that's exactly the problem.


I'm using the "def1" parameter of --redirect-gateway to avoid that kind of problems...


Thanks for the hints, I just added the option to the redirect-gateway.
When the connection bought up, I found one of my old winxp machine still have the new gateway disappeared. May be I need to patch this windowsXP.
Other WinXP (with newer patches) and the Win2000 server is fine.

Thanks
sam.



____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users