OpenVPN / openvpn-build

OpenVPN Build
325 stars 238 forks source link

TAP & wintun adapters are "unknown" #197

Open TinCanTech opened 3 years ago

TinCanTech commented 3 years ago

Using 2.5-rc2-I601-2-x86.msi, the install all works for me (I know there are some things going on under the hood but I have not investigated those).

But just for the record, the network adapters are "unknown".

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Windows\system32>ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : IEWIN7
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : Yes
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : NetScreen-NS5GT-WLAN

Unknown adapter OpenVPN TAP-Windows6:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : TAP-Windows Adapter V9
   Physical Address. . . . . . . . . : 00-FF-9B-6C-10-19
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Unknown adapter OpenVPN Wintun:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Wintun Userspace Tunnel
   Physical Address. . . . . . . . . :
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::c867:c8e8:58bb:f9da%21(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.127.121.10(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.252
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 366773536
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-21-DD-E8-33-08-00-27-10-B8-D0

   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . : NetScreen-NS5GT-WLAN
   Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Desktop Adapter
   Physical Address. . . . . . . . . : 08-00-27-10-B8-D0
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::80ac:4126:fa58:1b81%10(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.10.201.107(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : 11 October 2020 14:47:04
   Lease Expires . . . . . . . . . . : 17 November 2156 21:35:36
   Default Gateway . . . . . . . . . : 10.10.201.1
   DHCP Server . . . . . . . . . . . : 10.10.101.1
   DHCPv6 IAID . . . . . . . . . . . : 235405351
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-21-DD-E8-33-08-00-27-10-B8-D0

   DNS Servers . . . . . . . . . . . : 10.10.201.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter isatap.NetScreen-NS5GT-WLAN:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : NetScreen-NS5GT-WLAN
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{0745738E-555C-4453-B64E-57CE5454158C}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{9B6C1019-DD72-457B-A76B-0EB3BB852A3E}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

C:\Windows\system32>
cron2 commented 3 years ago

Hi,

On Sun, Oct 11, 2020 at 08:42:46AM -0700, TinCanTech wrote:

Using 2.5-rc2-I601-2-x86.msi, the install all works for me (I know there are some things going on under the hood but I have not investigated those).

But just for the record, the network adapters are "unknown".

Do I understand you correctly, if you do a fresh install of RC1, this does not happen, but with RC2 it does?

There have been a few changes in the tap and msm and openvpnmsica side of things, but I had assumed that nothing would affect "what windows thinks the resulting adapter is like" (and, if I read the commit log right, only the "MAC address" stuff is in RC1 -> RC2).

@selvanair: could this be related to the (new) absence of "MAC"?

gert -- "If was one thing all people took for granted, was conviction that if you feed honest figures into a computer, honest figures come out. Never doubted it myself till I met a computer with a sense of humor." Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany gert@greenie.muc.de

selvanair commented 3 years ago

I think this must have started when we tagged the adapter as virtual (not ethernet) around release 2.4.8. It used to show up as an "Ethernet adapter" before then. The device manager will list it a "Tap-Windows Adapter v9" device.

TinCanTech commented 3 years ago

@cron2 - I rolled back to OpenVPN-2.5-beta3-I602-x86.msi, the status was also unknown.

2.4.9 - status unknown

2.4.7

C:\Users\IEUser\Desktop>ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : IEWIN7
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : Yes
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : NetScreen-NS5GT-WLAN

Ethernet adapter Local Area Connection 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : TAP-Windows Adapter V9
   Physical Address. . . . . . . . . : 00-FF-3B-3D-28-F3
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . : NetScreen-NS5GT-WLAN
   Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Desktop Adapter
   Physical Address. . . . . . . . . : 08-00-27-10-B8-D0
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::80ac:4126:fa58:1b81%10(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.10.201.107(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : 11 October 2020 21:16:03
   Lease Expires . . . . . . . . . . : 18 November 2156 04:02:07
   Default Gateway . . . . . . . . . : 10.10.201.1
   DHCP Server . . . . . . . . . . . : 10.10.101.1
   DHCPv6 IAID . . . . . . . . . . . : 235405351
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-21-DD-E8-33-08-00-27-10-B8-D0

   DNS Servers . . . . . . . . . . . : 10.10.201.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter isatap.NetScreen-NS5GT-WLAN:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : NetScreen-NS5GT-WLAN
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{3B3D28F3-EB89-4168-AC49-E8BE9618A115}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

@selvanair probably

:+1:

cron2 commented 3 years ago

Hi,

On Sun, Oct 11, 2020 at 01:36:20PM -0700, TinCanTech wrote:

2.4.9 - status unknown

So, what Selva said - we changed the adapter type from "Ethernet" to "virtual" quite a while back (2.4.8).

I can't seem to find the relevant PR, but here's the commit

https://github.com/OpenVPN/tap-windows6/commit/c869bc91c2537868d012af6cf833889420350387

gert

-- "If was one thing all people took for granted, was conviction that if you feed honest figures into a computer, honest figures come out. Never doubted it myself till I met a computer with a sense of humor." Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany gert@greenie.muc.de

TinCanTech commented 3 years ago

2.4.8 may have been neglected ...

TinCanTech commented 3 years ago

I just built 2.6_git for Windows and this is still the same; Unknown adapter Local Area Connection 2: for TAP and wintun.

flichtenheld commented 1 year ago

@TinCanTech is this issue still relevant or has it been fixed in the mean time?

TinCanTech commented 1 year ago

@flichtenheld With 2.6_beta1, still Unknown:

Unknown adapter OpenVPN Wintun:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Wintun Userspace Tunnel
   Physical Address. . . . . . . . . :
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Unknown adapter OpenVPN TAP-Windows6:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : TAP-Windows Adapter V9
   Physical Address. . . . . . . . . : 00-FF-BC-F5-84-F4
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Unknown adapter OpenVPN Data Channel Offload:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : OpenVPN Data Channel Offload
   Physical Address. . . . . . . . . :
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 12fc:1918::10:126:66:3(Preferred)
   Link-local IPv6 Address . . . . . : fe80::be11:391c:d248:6231%13(Preferred)
   IPv4 Address. . . . . . . . . . . : 10.126.66.150(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.252
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 688415334
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-07-26-75-4C-B6-58-2C-80-13-92-63
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Note: DCO in topology NET30 ..

selvanair commented 1 year ago

As discussed earlier, this appears to have started since we changed IfType in the tap driver from ETHERNET to IF_TYPE_PROP_VIRTUAL (== Proprietary Virtual/Internal). In retrospect, not surprising as it used to show up as an Ethernet adapter but is now "Proprietary" which is arguably same as "Unknown".

We have not touched it since, so no change is expected in 2.6.

I would say just read "Unknown" to mean "Proprietary", and let it be. The description says what it is.

lstipakov commented 1 year ago

<offtopic> @selvanair did you have a chance to try dco-win driver? have you noticed any difference? </offtopic>

selvanair commented 1 year ago
@selvanair did you have a chance to try dco-win driver? have you noticed any difference?

difference in performance? As dco is the default now, my connection(s) have been using it, but my usage of VPN on Windows is only for some routine remote access, nothing performance critical. I heard some good feedback from others though.

As for this "Unknown adapter" thingie, dco-win could probably set the IfType as IF_TYPE_TUNNEL (131) instead of IF_TYPE_PROP_VIRTUAL (53)?