Skip to contentSkip to conversation

TAP adapter detection

Openvpn-devel David Woodhouse 3 participants 4 messages Apr 24, 2014 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]...

A message that is not in the archive (sent off-list or not yet received): [email protected]...

#2 lore raw
Quoted 11 lines · Greg Toombs

Found the problem. tun-win32.c:45 -
#define TAP_COMPONENT_ID "tap0901"

This is only valid for the most recent version of the TAP adapter. For other versions, this should actually be "tapoas". So openconnect saying that there are no TAP adapters is incorrect. Instead, it should check all known component IDs, and then check for the version, so that instead of reporting no TAP adapters, it detects the following:

Error: TAP-Windows driver v9.9 or greater is required (found 9.7) Set up tun device failed

Hm, really "tapoas"? Where did that driver come from?

As far as I can tell from the OpenVPN revision history, they've used 'tap0901' since February 2007¹ and it was 'tap0801' before that.

Adding the openvon-devel list to Cc since the clue we seek is probably there...

Signature · 3 lines
dwmw2

¹ https://github.com/OpenVPN/tap-windows/commit/ee313a978f7aa9
#3 lore raw

Hi,

Quoted 10 lines · David Woodhouse
Quoted 9 lines · Greg Toombs

Found the problem. tun-win32.c:45 -
#define TAP_COMPONENT_ID "tap0901"

This is only valid for the most recent version of the TAP adapter. For other versions, this should actually be "tapoas". So openconnect saying that there are no TAP adapters is incorrect. Instead, it should check all known component IDs, and then check for the version, so that instead of reporting no TAP adapters, it detects the following:

Quoted 7 lines
Quoted 2 lines

Error: TAP-Windows driver v9.9 or greater is required (found 9.7) Set up tun device failed

Hm, really "tapoas"? Where did that driver come from?

As far as I can tell from the OpenVPN revision history, they've used 'tap0901' since February 2007¹ and it was 'tap0801' before that.

Yep.

There is a new one, a NDIS 6 driver, as the old one was NDIS 5 and that is eventually going to be discontinued (plus, performance is worse). But the new one is still in "early testing", so I wouldn't expect people to unknowingly use it...

https://github.com/OpenVPN/tap-windows6
http://comments.gmane.org/gmane.network.openvpn.devel/8342

OTOH, the src/ tree mentions "TapOas" a few times, so it could very well be... but that one's version.h identifies itself as "tap0901".

Dunno, have no machine with the new tap driver that I could check right now. Just providing references.

gert

Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             [email protected]...
fax: +49-89-35655025                        [email protected]...
#4 lore raw
In reply to David Woodhouse

Hi,

Quoted 1 line · David Woodhouse

Hm, really "tapoas"? Where did that driver come from?

Looking more closely, I see

if self.opt.oas:
kv['PRODUCT_NAME'] = "OpenVPNAS" kv['PRODUCT_TAP_WIN_DEVICE_DESCRIPTION'] = "TAP-Win32 Adapter OAS (NDIS 6.0)" kv['PRODUCT_TAP_WIN_PROVIDER'] = "TAP-Win32 Provider OAS" kv['PRODUCT_TAP_WIN_COMPONENT_ID'] = "tapoas"

in the tap-windows6 build script... so I'd assume that there is a
commercial OpenVPN client (Connect or PrivateTunnel) on that machine, and it brought the new driver with it.

But that's pure guesswork.

gert

Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             [email protected]...
fax: +49-89-35655025                        [email protected]...
#5 lore raw
Quoted 13 lines

Hi,

Quoted 1 line · David Woodhouse

Hm, really "tapoas"? Where did that driver come from?

Looking more closely, I see

if self.opt.oas:
kv['PRODUCT_NAME'] = "OpenVPNAS" kv['PRODUCT_TAP_WIN_DEVICE_DESCRIPTION'] = "TAP-Win32 Adapter OAS (NDIS 6.0)" kv['PRODUCT_TAP_WIN_PROVIDER'] = "TAP-Win32 Provider OAS" kv['PRODUCT_TAP_WIN_COMPONENT_ID'] = "tapoas"

Quoted 7 lines

in the tap-windows6 build script... so I'd assume that there is a
commercial OpenVPN client (Connect or PrivateTunnel) on that machine, and it brought the new driver with it.

But that's pure guesswork.

gert

I think you guessed it exactly right. I suspect "tapoas" means "TAP OpenVPN Access Server", which is understandable as OpenVPN Connect clients are bundled with the Access Server.

Signature · 5 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock