01Chapter 1: Refresher: how packets find their wayThis chapter assumes you know basic IP addressing and subnets, the difference between TCP and UDP, and how to use a Linux command line. It reviews the routing ideas that every later chapter on tunnels and VPNs builds on. If you can read a routing table and explain what a default route does, you can 3 min read
02Chapter 2: Tunnelling: packets inside packetsThis chapter assumes you know IP addressing and subnets, how a routing table and default route work, the difference between TCP and UDP, and basic Linux command-line use.3 min read
03Chapter 3: What a VPN adds to a tunnelThis chapter assumes you know IP addressing and routing tables, the difference between TCP and UDP, and the idea from the previous chapter that a tunnel puts one packet inside another.2 min read
04Chapter 4: Overhead, MTU and fragmentationThis chapter assumes you know IP addressing and subnets, how a routing table and default route work, the difference between TCP and UDP, and basic Linux command-line use. It covers why tunnels shrink the usable packet size and how that breaks traffic in confusing ways.3 min read
05Chapter 5: GRE: a simple tunnel with no protectionThis chapter assumes you know basic IP addressing and subnets, how a routing table and default route work, and the difference between TCP and UDP. You should also be comfortable at a Linux command line. It builds on the previous chapters on encapsulation and MTU.3 min read
06Chapter 6: Confidentiality, integrity and authenticationThis chapter assumes you know basic IP addressing, the difference between TCP and UDP, and how encapsulation wraps one packet inside another. A plain tunnel such as GRE moves packets across a network, but it gives no protection. A VPN adds three properties to that tunnel. This chapter defines them a3 min read
07Chapter 7: How two peers agree on keysThis chapter assumes you know the basics of confidentiality, integrity and authentication from the previous chapter. It also assumes you are comfortable with IP addressing and the Linux command line.3 min read
08Chapter 8: IPsec: ESP, IKE and the two modesThis chapter assumes you know how encapsulation works, how a routing table selects a route, and the basics of keys and certificates from the earlier chapters. It covers how IPsec protects traffic at the IP layer, which parts do what, and which mistakes come up most often.3 min read
09Chapter 9: Tunnels through NATThis chapter assumes you know IP addressing, how a routing table works, the difference between TCP and UDP, and the basics of tunnelling and IPsec's ESP and IKE. It covers why NAT breaks some tunnels and how the common fixes work.3 min read
10Chapter 10: TLS-based VPNsThis chapter assumes you know what a tunnel and a VPN are, how encapsulation adds outer headers, and the difference between TCP and UDP. It also assumes you know what certificates and key exchange do. A TLS-based VPN uses the same handshake that protects HTTPS to set up the keys for a tunnel. OpenVP2 min read
11Chapter 11: WireGuard: a minimal modern VPNThis chapter assumes you know IP subnets, routing tables, the difference between TCP and UDP, and basic Linux command-line use. It also assumes you have read the chapters on encapsulation and key exchange.3 min read
12Chapter 12: SSH tunnels for single servicesThis chapter assumes you know basic IP addressing, the difference between TCP and UDP, and how to use a Linux command line. It also assumes you have read the earlier chapters on encapsulation and key exchange.3 min read
13Chapter 13: Split tunnelling, full tunnelling and DNSThis chapter assumes you know what a routing table and a default route are, how WireGuard peers are configured, and how a tunnel appears as an ordinary network interface. It covers which traffic goes into a tunnel and which name server answers the queries.2 min read
14Chapter 14: What a VPN does and does not protectThis chapter assumes you know what a tunnel is, how split and full tunnelling change the routing table, and the basics of encryption and authentication. It covers the threats a VPN addresses and the ones it leaves alone.2 min read
15Chapter 15: Troubleshooting a tunnel that will not pass trafficThis chapter assumes you know IP addressing and subnets, the idea of a routing table and default route, and the difference between TCP and UDP. It also assumes you can use a Linux command line. A tunnel that is "up" but passes no traffic usually fails in one of three places: routing, NAT, or MTU. Wo3 min read