Continue where you left off ×
A private road through a public street: VPNs and tunnels
The Parcel's Journey · Open board
: a parcel crossing the internet, passed from router to router until it reaches the house. This lesson puts one parcel inside another, so that the routers on the way see only the outer one.
Before you start. From How a parcel finds any house on earth you have the packet, a small block of data with a source address and a destination address, and the routers that pass it along by reading only the destination. From Inside your building (your router's life) you have private addresses such as 10.0.5.20: they work inside one network and the internet will not route them. From The whisper code (how a call goes private) you have the split lock, a public half anyone may see and a private half the owner keeps, and from The key at the door (SSH: keys, known hosts, the agent and tunnels) the list of public keys a server accepts. Nothing else is assumed.
The idea in 30 seconds
A tunnel hides one packet inside another, so routers on the way read only the outer address.
WireGuard adds 60 bytes over IPv4, plus padding to a multiple of 16.
A VPN is a tunnel whose two ends are tied to each other’s public keys, so any other packet is dropped.
A split tunnel sends only chosen address ranges through the tunnel. A full tunnel sends everything.
A tunnel’s own packets must leave outside the tunnel, or they loop.
Zero trust checks each request for who and what, even inside the tunnel.
Read the story
Lesson 34 of 44 in Networking
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year .
See plans Already a member? Sign in
Or start free : a free account opens lessons 2 and 3 of every track.
In this lesson The payroll database that the internet cannot reach A tunnel: one packet carried inside another A VPN: a tunnel whose two ends know each other A split tunnel: only office addresses use the tunnel Zero trust: a private road is not a safe building The program, in full The size limit: MTU What WireGuard does, and what it chooses not to IPsec: the older and larger road Trade-offs Terms it explains: tunnelling, VPN, WireGuard, split tunnel, full tunnel, Zero trust, MTU, Tunnel mode, Transport mode.
Review Networking
Mark as read Saved in this browser, and to your account when you sign in.