TUNTAP
TUN/TAP are virtual network kernel devices that provide user-space programs with access to the kernel’s network stack. TUN stands for network TUNnel device and TAP stands for Ethernet TAP. A TUN device operates at the IP layer (layer 3), delivering IP packets to and from user space, while a TAP device emulates an Ethernet device and passes raw Ethernet frames (layer 2). This separation allows software to perform tunneling, routing, or bridging without dedicated hardware.
In Linux and other Unix-like systems, the functionality is implemented by the tun/tap driver. The devices appear
Common uses include virtual private networks (VPNs), where a TUN device carries IP traffic between endpoints
Security and performance considerations include the need for privileged access to create devices, potential risks from