Axel Verne → Junk Drawer kit → Chapter 10

Chapter 10 — Fortress I: Reach It From Anywhere Without Opening a Port (Tailscale)

9 blocks to copy, in the order they appear in the chapter. Nothing here is required to be typed by hand.

This page has the commands. The book has the rest. Chapter 10 in the book adds the drawer check (will your hardware do it?), checkpoints, "When it breaks" and an honest upgrade check.

Read two full chapters free (PDF): Chapter 1 and the Pi-hole chapter, straight from the book.

Get the next build by email. What I ran, on what hardware, and commands that paste. Free, unsubscribe any time.

Step 1 — Install Tailscale on the host

10.1 · bash
curl -fsSL https://tailscale.com/install.sh | sh
10.2 · bash
tailscale up
10.3 · bash
tailscale status

Step 2 — Enable MagicDNS and IP forwarding

10.4 · bash
sudo tailscale set --advertise-routes=192.168.1.0/24 --accept-dns=false
10.5 · bash
echo 'net.ipv4.ip_forward = 1' | sudo tee /etc/sysctl.d/99-tailscale.conf
sudo sysctl -p /etc/sysctl.d/99-tailscale.conf

Step 3 — Exit node (optional, one Pi can be it)

10.6 · bash
sudo tailscale set --advertise-exit-node

Step 4 — Tailscale Serve and Funnel: HTTPS without port forwarding

10.7 · bash
tailscale serve https / http://127.0.0.1:8000       # Vaultwarden
tailscale serve https /immich http://127.0.0.1:2283 # Immich (if running)
10.8 · yaml
environment:
  DOMAIN: "https://drawer-pi.pango-lin.ts.net"  # no more vault.local
10.9 · bash
tailscale funnel https / http://127.0.0.1:8000

← Chapter 9Chapter 11 →

Get the next build in your inbox

An email when a new build write-up goes up: what I ran, on what hardware, and the commands that paste. Free, unsubscribe any time. The kit stays free either way.