On Wed, Dec 16, 2009 at 10:48:30AM +0200, Pasi Kärkkäinen wrote: > On Thu, Dec 10, 2009 at 02:15:01PM +0200, Pasi Kärkkäinen wrote: > > 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 > > > 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 5 > > > > Default 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 5 > > > > Which 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 5 > > > > > > So 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? > > > > So it was not this, since I have the same problems with version 2.1.1. > > -- Pasi > > > 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 > > > > > > > ------------------------------------------------------------------------------ > 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 > Openvpn-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openvpn-devel