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

[Openvpn-users] Windows XP SP2: TAP-Win32 non-functional after boot


  • Subject: [Openvpn-users] Windows XP SP2: TAP-Win32 non-functional after boot
  • From: Richard Atterer <richard@xxxxxxxxxxxxxxxxxx>
  • Date: Mon, 1 Nov 2004 13:15:19 +0100
  • Mail-copies-to: nobody

Hello,

thanks for OpenVPN, it is very nice compared to IPSec!

I have one problem: On my Windows XP SP2 client, OpenVPN does *not* work
unless I explicitly deactivate, then re-activate the TAP-Win32 adapter
before starting OpenVPN. If I do this, everything works fine, I can connect
(and reconnect many times) without problems.

If I try to start OpenVPN without restarting the TAP-Win32 adapter, the
following happens: OpenVPN correctly connects to the VPN server and then
loops:

  ... TEST ROUTES: 0/0 succeeded len=1 ret=0 a=0 u/d=down
  ... Route: Waiting for TUN/TAP interface to come up...

At the same time, the TAP-Win32 adapter is stuck in the "Netzwerkadresse
beziehen" state. (German for "getting network address", i.e. it's sending
out DHCP requests.)

Everything remains stuck in this state until Windows decides there is no
DHCP server and auto-assigns a 169.254.x.x address to the interface. :-(

My setup:

My WLAN is secured with OpenVPN 2.0, using a Linux server/router with the
Debian 2.0beta14 package. There are also some Linux clients which work just
fine.

On the Windows client, I have used 2.0beta11+beta15 with identical results. 
I've also tried both "dev tun" and "dev tap", and tried "ip-win32 netsh"
and "ip-win32 ipapi" - no difference! Disabling the personal firewall and
virus checker did not help either. I've verified that "obtain IP address
automatically" is selected in the TAP-Win32 adapter's configuration. The
client config is appended below.

Cheers,

  Richard

PS: "ip-win32 netsh" is broken in beta15 - the netsh command complains that
interface "tun" is invalid. Beta11 works fine in this respect.
-- 
  __   _
  |_) /|  Richard Atterer     |  GnuPG key:
  | \/¯|  http://atterer.net  |  0x888354F7
  ¯ '` ¯

client
dev tun
tun-ipv6
proto udp
remote 192.168.0.1 5000
resolv-retry infinite
nobind
mute-replay-warnings
ca ca.crt
cert client.crt
key client.key
comp-lzo
verb 4
ifconfig 10.10.0.0 255.255.255.0
redirect-gateway local def1


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