TUN / TAP

from Wikipedia, the free encyclopedia

TUN and TAP are virtual network kernel drivers that simulate network devices using software. TUN stands for network tunnel and TAP for network exit (English: tap to German: water tap) but also for Terminal Access Point. While eth0a corresponding hardware in the form of a network card is normally hidden behind a network device (such as ), packets that are sent to a TUN / TAP device are forwarded to a program in userspace and vice versa. So that a user space program can also access TUN / TAP devices, in contrast to real Ethernet cards, they have a device file with the name tunNor tapNbelow /dev.

Difference between TUN and TAP

TUN simulates an end-to-end network device ( OSI layer 3) and communicates with the software via IP packets, while TAP simulates a point-to-point connection via Ethernet device (OSI layer 2) and via Ethernet Frames communicated with the software.

Examples of applications

TUN / TAP u. a. For:

Implementations

TUN / TAP drivers are available for at least the following platforms:

Web links