OpenVPN default gateway problems on Windows after resume from hibernation
Hello,
I'm having some problems with OpenVPN (2.1rc20) on Windows Vista. Yeah I know, vista is crap, but I had to play with it a bit.
I've seen a couple of different problems:
1) I start the openvpn connection, and it works OK. Default gateway is through the openvpn connection. Then I suspend (hibernate) the laptop, and after a while when I resume from hibernation, openvpn re-connects the vpn successfully (openvpn gui icon goes green), but sometimes the default gateway is wrong, making the connection non-functional.
OpenVPN related parts of "route print" when the openvpn connection works properly:
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.0.0.5 10.0.0.6 5
10.0.0.1 255.255.255.255 10.0.0.5 10.0.0.6 5Default route points to the OpenVPN interface correctly and the connections works OK.
Now, after hibernate+resume, _sometimes_ (not always) the routing table looks like this, and the connection doesn't work:
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.0.0.5 18 5
10.0.0.1 255.255.255.255 10.0.0.5 18 5Which is a bit weird.. Interface is just a number? anyway, the next variation happens more often:
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.0.0.5 169.254.108.226 5
10.0.0.1 255.255.255.255 10.0.0.5 169.254.108.226 5So that looks like it fails to get an IP with DHCP. "ipconfig /all" show this:
Ethernet adapter Local Area Connection 3:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : TAP-Win32 Adapter V9 Physical Address. . . . . . . . . : 00-FF-82-51-06-E2 DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes Autoconfiguration IPv4 Address. . : 169.254.108.226(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.0.0 Default Gateway . . . . . . . . . : 10.0.0.5
NetBIOS over Tcpip. . . . . . . . : Enabled
So yeah.. it failed to obtain an IP with DHCP.
I saw some DHCP related fixes in the latest rc versions.. related possibly?
Weird that the OpenVPN gui icon is still green, when obviously the openvpn connection is broken.
2) OpenVPN and other nics/connections. I had to change the OpenVPN Windows TAP network adapter interface metric to 5 manually, to make it be the preferred connection always. Otherwise for example the WLAN took over the default gateway sometimes.
Is there some way to specify the interface metric in openvpn configuration?
Thanks!
-- Pasi
Quoted 5 lines · Pasi Kärkkäinen
Hello,
I'm having some problems with OpenVPN (2.1rc20) on Windows Vista. Yeah I know, vista is crap, but I had to play with it a bit.
I upgraded to OpenVPN 2.1.1 and the problem still happens..
Quoted 55 lines
I've seen a couple of different problems:
1) I start the openvpn connection, and it works OK. Default gateway is through the openvpn connection. Then I suspend (hibernate) the laptop, and after a while when I resume from hibernation, openvpn re-connects the vpn successfully (openvpn gui icon goes green), but sometimes the default gateway is wrong, making the connection non-functional.
OpenVPN related parts of "route print" when the openvpn connection works properly:
IPv4 Route Table
===========================================================================
Active Routes:Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 10.0.0.5 10.0.0.6 5 10.0.0.1 255.255.255.255 10.0.0.5 10.0.0.6 5Default route points to the OpenVPN interface correctly and the connections works OK.
Now, after hibernate+resume, _sometimes_ (not always) the routing table looks like this, and the connection doesn't work:
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric0.0.0.0 0.0.0.0 10.0.0.5 18 5 10.0.0.1 255.255.255.255 10.0.0.5 18 5Which is a bit weird.. Interface is just a number? anyway, the next variation happens more often:
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric0.0.0.0 0.0.0.0 10.0.0.5 169.254.108.226 5 10.0.0.1 255.255.255.255 10.0.0.5 169.254.108.226 5So that looks like it fails to get an IP with DHCP. "ipconfig /all" show this:
Ethernet adapter Local Area Connection 3:
Connection-specific DNS Suffix . : Description . . . . . . . . . . . : TAP-Win32 Adapter V9 Physical Address. . . . . . . . . : 00-FF-82-51-06-E2 DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes Autoconfiguration IPv4 Address. . : 169.254.108.226(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.0.0 Default Gateway . . . . . . . . . : 10.0.0.5 NetBIOS over Tcpip. . . . . . . . : Enabled
Quoted 3 lines
So yeah.. it failed to obtain an IP with DHCP.
I saw some DHCP related fixes in the latest rc versions.. related possibly?
So it was not this, since I have the same problems with version 2.1.1.
-- Pasi
Quoted 17 lines
Weird that the OpenVPN gui icon is still green, when obviously the openvpn connection is broken.
2) OpenVPN and other nics/connections. I had to change the OpenVPN Windows TAP network adapter interface metric to 5 manually, to make it be the preferred connection always. Otherwise for example the WLAN took over the default gateway sometimes.
Is there some way to specify the interface metric in openvpn configuration?
Thanks!
-- Pasi
Quoted 9 lines · Pasi Kärkkäinen
Quoted 5 lines · Pasi Kärkkäinen
Hello,
I'm having some problems with OpenVPN (2.1rc20) on Windows Vista. Yeah I know, vista is crap, but I had to play with it a bit.
I upgraded to OpenVPN 2.1.1 and the problem still happens..
This problem seems to also happen on Windows 7, not just Windows Vista.
-- Pasi
Quoted 93 lines
Quoted 56 lines
I've seen a couple of different problems:
1) I start the openvpn connection, and it works OK. Default gateway is through the openvpn connection. Then I suspend (hibernate) the laptop, and after a while when I resume from hibernation, openvpn re-connects the vpn successfully (openvpn gui icon goes green), but sometimes the default gateway is wrong, making the connection non-functional.
OpenVPN related parts of "route print" when the openvpn connection works properly:
IPv4 Route Table
===========================================================================
Active Routes:Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 10.0.0.5 10.0.0.6 5 10.0.0.1 255.255.255.255 10.0.0.5 10.0.0.6 5Default route points to the OpenVPN interface correctly and the connections works OK.
Now, after hibernate+resume, _sometimes_ (not always) the routing table looks like this, and the connection doesn't work:
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric0.0.0.0 0.0.0.0 10.0.0.5 18 5 10.0.0.1 255.255.255.255 10.0.0.5 18 5Which is a bit weird.. Interface is just a number? anyway, the next variation happens more often:
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric0.0.0.0 0.0.0.0 10.0.0.5 169.254.108.226 5 10.0.0.1 255.255.255.255 10.0.0.5 169.254.108.226 5So that looks like it fails to get an IP with DHCP. "ipconfig /all" show this:
Ethernet adapter Local Area Connection 3:
Connection-specific DNS Suffix . : Description . . . . . . . . . . . : TAP-Win32 Adapter V9 Physical Address. . . . . . . . . : 00-FF-82-51-06-E2 DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes Autoconfiguration IPv4 Address. . : 169.254.108.226(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.0.0 Default Gateway . . . . . . . . . : 10.0.0.5 NetBIOS over Tcpip. . . . . . . . : EnabledQuoted 3 lines
So yeah.. it failed to obtain an IP with DHCP.
I saw some DHCP related fixes in the latest rc versions.. related possibly?So it was not this, since I have the same problems with version 2.1.1.
-- Pasi
Quoted 9 lines
Weird that the OpenVPN gui icon is still green, when obviously the openvpn connection is broken.
2) OpenVPN and other nics/connections. I had to change the OpenVPN Windows TAP network adapter interface metric to 5 manually, to make it be the preferred connection always. Otherwise for example the WLAN took over the default gateway sometimes.
Quoted 8 lines
Is there some way to specify the interface metric in openvpn configuration?
Thanks!
-- Pasi
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel
Quoted 4 lines · Pasi Kärkkäinen
Quoted 3 lines · Pasi Kärkkäinen
Quoted 2 lines · Pasi Kärkkäinen
Hello,
Quoted 9 lines
Quoted 6 lines
Quoted 3 lines
I'm having some problems with OpenVPN (2.1rc20) on Windows Vista. Yeah I know, vista is crap, but I had to play with it a bit.
I upgraded to OpenVPN 2.1.1 and the problem still happens..
This problem seems to also happen on Windows 7, not just Windows Vista.
Any ideas? Some workaround to try?
-- Pasi
Quoted 105 lines
Quoted 84 lines
Quoted 57 lines
I've seen a couple of different problems:
1) I start the openvpn connection, and it works OK. Default gateway is through the openvpn connection. Then I suspend (hibernate) the laptop, and after a while when I resume from hibernation, openvpn re-connects the vpn successfully (openvpn gui icon goes green), but sometimes the default gateway is wrong, making the connection non-functional.
OpenVPN related parts of "route print" when the openvpn connection works properly:
IPv4 Route Table
===========================================================================
Active Routes:Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 10.0.0.5 10.0.0.6 5 10.0.0.1 255.255.255.255 10.0.0.5 10.0.0.6 5Default route points to the OpenVPN interface correctly and the connections works OK.
Now, after hibernate+resume, _sometimes_ (not always) the routing table looks like this, and the connection doesn't work:
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric0.0.0.0 0.0.0.0 10.0.0.5 18 5 10.0.0.1 255.255.255.255 10.0.0.5 18 5Which is a bit weird.. Interface is just a number? anyway, the next variation happens more often:
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric0.0.0.0 0.0.0.0 10.0.0.5 169.254.108.226 5 10.0.0.1 255.255.255.255 10.0.0.5 169.254.108.226 5So that looks like it fails to get an IP with DHCP. "ipconfig /all" show this:
Ethernet adapter Local Area Connection 3:
Connection-specific DNS Suffix . : Description . . . . . . . . . . . : TAP-Win32 Adapter V9 Physical Address. . . . . . . . . : 00-FF-82-51-06-E2 DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes Autoconfiguration IPv4 Address. . : 169.254.108.226(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.0.0 Default Gateway . . . . . . . . . : 10.0.0.5 NetBIOS over Tcpip. . . . . . . . : EnabledQuoted 3 lines
So yeah.. it failed to obtain an IP with DHCP.
I saw some DHCP related fixes in the latest rc versions.. related possibly?So it was not this, since I have the same problems with version 2.1.1.
-- Pasi
Quoted 9 lines
Weird that the OpenVPN gui icon is still green, when obviously the openvpn connection is broken.
2) OpenVPN and other nics/connections. I had to change the OpenVPN Windows TAP network adapter interface metric to 5 manually, to make it be the preferred connection always. Otherwise for example the WLAN took over the default gateway sometimes.
Quoted 8 lines
Is there some way to specify the interface metric in openvpn configuration?
Thanks!
-- Pasi
Quoted 10 lines
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel