DumpAny

TUN Virtual Device — L3 IP Tunnel

Speed:
Ready — Click play to start the demo
TUN Virtual Device — L3 IP Tunnel
TUN is the foundation of VPN and tunneling technologies. It creates a virtual IP packet channel between the OS kernel and userspace — the kernel hands IP packets matching the routing table to a userspace program, which can encrypt, encapsulate, or modify them before sending them out.
TUN = L3 虚拟网卡 — 内核 ↔ 用户态 IP 包管道 | VPN、代理、隧道的基础组件
──── 用户态──── 内核态💻Appsend()📡tun0/dev/tun⚙️User Programread/write fd🌐eth0真实网卡IP 包 (路由命中)