Skip to content

The Pipes

Servers, networks, names and the doors to your app. Everything between "I bought a VPS" and "I can debug the site at 2 a.m. without panicking", explained from first principles, with diagrams you can draw on a whiteboard.

You’ve deployed apps to a VPS by following tutorials. They worked. You’re not entirely sure why. This book is the “why”.

This is Book 2. Book 1, The Glue, covered everything between your code and the user’s eyes: build tools, CI/CD, the network at a glance, the browser and performance. The Pipes goes underneath: the server you rent, the network it sits on, the names that point at it, and every door, guard and tunnel between a visitor and your app.

It’s written for a frontend engineer and designer who has shipped Next.js apps to her own Oracle Cloud VPS, bought domains, and touched nginx, SSH and Cloudflare, mostly by copying commands. By the end she can reason about any server setup layer by layer, choose between open ports, the Cloudflare proxy, tunnels and Tailscale, and explain all of it on a whiteboard.

The whole book uses one metaphor, lightly. The internet is a city. IP addresses are street addresses. Ports are numbered doors on a building. Firewalls are guards with clipboards. DNS is the city directory. A reverse proxy is the receptionist who sends each visitor to the right office. NAT is your gated society, where the gate guard logs who went out so the replies can come back in. Tailscale is a set of private tunnels between your buildings. Cloudflare is a doorman stationed far away who screens every visitor before they reach your street. And port scanners are people walking every street, rattling every doorknob, all day, forever.

When something breaks, you’ll ask one question at a time, in order:

Name → Address → Route → Door → Guard → Receptionist → App

Most outages live at exactly one of those layers. This book teaches you to find which one.

Part I — The Network You're Standing On

Addresses, NAT and CGNAT, CIDR; packets, routes, TCP/UDP/QUIC handshakes and latency from Pune; ports, sockets, binding, and the refused/timed-out/reset trio.

Part II — The Server

What a VPS really is, Linux survival for owners, SSH from host keys to port forwarding, and running apps in production with systemd and Docker (including the Docker-bypasses-UFW trap).

Parts III–IV — The Front Door and Names

Reverse proxies and nginx/Caddy, certificates and ACME, DNS for operators, who really owns a domain, subdomains and many apps on one box, and email that doesn’t land in spam.

Parts V–VI — Lock Down, Reach In, Stay Alive

Layered firewalls, the hostile internet and scanning yourself, Tailscale and WireGuard, Cloudflare’s proxy and Tunnels, choosing an architecture, operating without fear, and the 2 a.m. drill.

Every chapter opens with a scene, then walks the same arc for each big idea: what it is, why it exists, the world without it, how it works (with hand-drawn SVG diagrams that work in light and dark mode), the best way to use it on a small production VPS, where it goes wrong in real life, and a 🧑‍🏫 Whiteboard Version you could draw for a colleague. Then a self-quiz and exercises in three tiers: warm-ups, hands-on labs on a throwaway lab VPS that grows chapter by chapter, and staff-level design challenges, all with collapsible solutions.

Seven interactive demos load only when you scroll to them, and each has a plain-text fallback: a CIDR visualiser, a TCP handshake with adjustable latency, an SSH host-key walkthrough, an nginx matching playground, DNS resolution with TTL countdowns, a “which guard stopped me?” firewall simulator, and NAT traversal.

This edition was written as a conceptual explainer from the author’s knowledge, without live web lookups. Mechanisms are stated with care; incident stories are told for their lessons, with approximate figures and years, and labelled as composites where needed; provider details (prices, free tiers, limits) change often, so check the provider’s current docs before relying on a number. See the Colophon for how the book was made.

Book 2 of a series. Book 1: The Glue.