tun vs tap?

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
jeff.sadowski
OpenVpn Newbie
Posts: 8
Joined: Thu Sep 01, 2011 6:53 pm

tun vs tap?

Post by jeff.sadowski » Fri Feb 22, 2013 10:57 pm

I created a simple tap setup so as not to have to setup any routing rules or create a new ip scope.
It seems that tun is the preferred method from the documentation but being how easy it is to setup a tap I was wondering why? I have a decently fast server and network and maybe at most 3 people that might use the vpn at any one time.

mwandelaar
OpenVPN Super User
Posts: 219
Joined: Mon Nov 23, 2009 8:24 pm

Re: tun vs tap?

Post by mwandelaar » Sat Feb 23, 2013 8:59 am

It's pretty easy to decide which you need:

TAP is ethernet-bridging and thus sending entire ethernet-frames over the VPN. Drawback is quite a lot overhead due to bigger packets and transfering all broadcast-packets. Snippet from the forum-rules:
**You ONLY want to use dev tap if you are tunneling layer2 traffic, if you are using IP traffic you want tun. If you are using tap only for windows file sharing, look into running a WINS server instead.
That doesn't tell you ethernet-tunneling is hard to setup, but neither is routing and that really cut's down the overhead transfered through your tunnel.

Post Reply