Skip to contentSkip to conversation

Windows tun driver

Openvpn-devel James Yonan 2 participants 4 messages Sep 15, 2003 – Sep 16, 2003 2 messages not in the archive

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive
Quoted 4 lines · Inode

Hi all,
I'm looking on the net for a tunnel driver for windows. Anyone found a good working driver? I have to user OpenVPN from an OpenBSD and a Windows, and OpenBSD (native) doesn't support TAP device...

Yes, this is a problem. For OpenBSD to talk to Windows over OpenVPN, we need either a tun driver for Windows or a tap driver for OpenBSD.

My guess is that the easier and better solution would be to solve the tap on OpenBSD problem, rather than the tun on Windows problem.

My understanding is that a tap driver exists for OpenBSD that was ported from FreeBSD, but that it's still in an experimental, somewhat unfinished state and needs a good kernel hacker to bring it up to the standard of the rest of the OpenBSD networking subsystem.

I think that Windows users are going to prefer a tap interface anyways, because it carries the kind of traffic and protocols which Windows applications generate, such as broadcast traffic and non-IP protocols.

James

#3 lore raw
Quoted 5 lines · James Yonan

Yes, this is a problem. For OpenBSD to talk to Windows over OpenVPN, we need either a tun driver for Windows or a tap driver for OpenBSD.

My guess is that the easier and better solution would be to solve the tap on OpenBSD problem, rather than the tun on Windows problem.

I'd like to challenge the "better" claim:

The tap driver gives full ethernet tunnelling, so the Windows box gets to choose the IP, gets ARP traffic tunnelled and all that. That's pretty much power IMO.

The tun driver, in contrast, only works for a specific IP, if the Windows box chooses another one, it's not getting any traffic back.

I consider this a security relevant choice, if I have "half-trusted" users, tap isn't really an option.

Background for the challenge is that OpenVPN might be useful as an additional security layer on top of WLAN-WEP, but tap somewhat defeats the purpose.

Quoted 3 lines

I think that Windows users are going to prefer a tap interface anyways, because it carries the kind of traffic and protocols which Windows applications generate, such as broadcast traffic and non-IP protocols.

I for one don't need Windoze broadcast traffic gated, and "my" Windows boxes hardly generate non-IP traffic. IPX or NetBEUI drivers aren't installed on the Windows machines I maintain. ARP isn't needed. Granted, if you need IGMP, you'll want tap, but I'd guess that the SMB browsing can deal with most of the "problems".

Signature · 3 lines
Matthias Andree

Encrypt your mail: my GnuPG key ID is 0x052E7D95
#4 lore raw
Quoted 9 lines · Matthias Andree
Quoted 5 lines · James Yonan

Yes, this is a problem. For OpenBSD to talk to Windows over OpenVPN, we need either a tun driver for Windows or a tap driver for OpenBSD.

My guess is that the easier and better solution would be to solve the tap on OpenBSD problem, rather than the tun on Windows problem.

I'd like to challenge the "better" claim:

I mean "better" only in the sense of simpler configuration -- i.e. not needing to set up a WINS server to make cross-subnet browsing work. I agree that tun is more scalable, secure, etc.

Quoted 9 lines

The tap driver gives full ethernet tunnelling, so the Windows box gets to choose the IP, gets ARP traffic tunnelled and all that. That's pretty much power IMO.

The tun driver, in contrast, only works for a specific IP, if the Windows box chooses another one, it's not getting any traffic back.

I consider this a security relevant choice, if I have "half-trusted" users, tap isn't really an option.

I would agree that tun is a better choice for less than fully-trusted users.

Quoted 8 lines

Background for the challenge is that OpenVPN might be useful as an additional security layer on top of WLAN-WEP, but tap somewhat defeats the purpose.

Quoted 3 lines

I think that Windows users are going to prefer a tap interface anyways, because it carries the kind of traffic and protocols which Windows applications generate, such as broadcast traffic and non-IP protocols.

Quoted 5 lines

I for one don't need Windoze broadcast traffic gated, and "my" Windows boxes hardly generate non-IP traffic. IPX or NetBEUI drivers aren't installed on the Windows machines I maintain. ARP isn't needed. Granted, if you need IGMP, you'll want tap, but I'd guess that the SMB browsing can deal with most of the "problems".

I totally agree that a tun driver for Windows would be nice to have. In fact I would guess that the TAP-Win32 driver might even be close to the task, if you could figure out the right DDK magic to export a point-to-point WAN interface that binds to IPv4 instead of 802.3. Interested in doing some driver development?

James

#5 lore raw
Quoted 5 lines · James Yonan
Quoted 1 line

I'd like to challenge the "better" claim:

I mean "better" only in the sense of simpler configuration -- i.e. not needing to set up a WINS server to make cross-subnet browsing work. I agree that tun is more scalable, secure, etc.

After being through setting up a tap for a particular configuration (pure ethernet with fallback to OpenVPN-on-WLAN), tap isn't easier to configure than tun either. --ifconfig is one reason, although it's going to get competition, getting routing right if you "tap" one IP into an existing eth subnet is non-trivial and requires like 4 lines of --up scripting.

My Linux distro also defaults to ethertap rather than tun, so if you're running SuSE, better make sure you load the "tun" module early. ethertap won't work with tun at the other end of the pipe -- different framing apparently.

Signature · 3 lines
Matthias Andree

Encrypt your mail: my GnuPG key ID is 0x052E7D95