[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: Mathias Sundman <mathias@xxxxxxxxxx>
  • Date: Mon, 1 Nov 2004 10:19:27 +0100 (CET)

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?

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

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.

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

--
_____________________________________________________________
Mathias Sundman                  (^)   ASCII Ribbon Campaign
OpenVPN GUI for Windows           X    NO HTML/RTF in e-mail
http://www.nilings.se/openvpn    / \   NO Word docs in e-mail

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