Reusable bits I keep handing people. by Lucas Martinic
Hand this to a coding agent on a fresh box. The levelsio setup: only two ways in, me over Tailscale and Cloudflare for web, everything else denied.
Harden this fresh VPS the levelsio way, only two ways in: 1) install Tailscale, SSH only over the tailnet (verify it works before touching the firewall, don't lock me out). 2) serve the web through a Cloudflare Tunnel (outbound, so no inbound web port is needed). 3) ufw default-deny inbound, allow 22 only on tailscale0, and block ALL other inbound at the Hetzner firewall, so only Tailscale and Cloudflare can reach the box.
The stack I use and recommend, levelsio-style: free where it can be, cheap where it can't, vanilla everywhere. The whole thing runs on one small VPS.