Concepts / VPNs

VPNs

VPN

Also called virtual private network, tunnel, WireGuard, split tunnel, full tunnel

Packets wrapped, encrypted, in UDP to a VPN server, which unwraps them on the far side.

The real packet rides, encrypted, inside a UDP packet
The real packet rides, encrypted, inside a UDP packet

The laptop's packet to 10.0.5.20 is encrypted whole and put inside a UDP packet to the VPN server, 203.0.113.5. The local network and the internet see only that outer packet. The VPN server takes the original packet out and sends it on.

A VPN wraps each packet, encrypted, inside a UDP packet to a VPN server, which unwraps it. A split tunnel carries only some networks (the office); a full tunnel carries everything except the tunnel's own packets. The local network sees only encrypted UDP to one address, but still learns that you use a VPN, when and how much. A full tunnel should fail closed and carry DNS too.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab