posted in Selfhosted

Walkthrough for Self-Hosted Headscale on "Free-Tier" Cloud VM (GCI) [AIP]

AI Disclosure:

  • Implementation - Hint. Syntax was reviewed and polished by AI.
  • Testing - Assisted. AI was used to troubleshoot whenever I got stuck
  • Documentation - Generated

I spent the last three months slowly tinkering with Headscale and trying to get it to run on one of Google’s “free-tier” cloud instances, while also learning about GCI’s strange setup. During that time I used Claude Sonnet to keep track of my progress and help me troubleshoot whenever I got stuck. I finally got it going and before I closed the project, I asked Claude to document my work along with all pertinent information and create and admin cheatsheet, just in case I forget. I liked the output, so I asked the LLM to sanitize my data and recreate my project as a step-by-step walktrhough in a single HTML page.

PROVIDED AS-IS!!! Do not copy and paste code blindly. Use this as a walkthough/guide and NOT as a recipe book. You WILL need to correct code.

EDIT: It looks like for this document, Claude also took it upon itself to further clean my configs, scripts, etc., and add a lot of comments to make it all easier to understand. I DO NOT work this cleanly. It looks correct though.

smoores.neocities.org/headscale.html
smoores.neocities.orgSelf-Hosted Headscale on a Small Cloud VMStep-by-step guide: install Headscale 0.29 behind nginx on a small cloud VM, back it up, and connect Linux, Windows, macOS, iOS, Android, Synology, JetKVM and TinyPilot devices. Accessible version with light, dark, low-light and e-ink viewing modes.

Replying to @⁨BadJojo@communick.news⁩

I appreciate the effort you’ve put into this (and I’ve upvoted your post). For me, though, the point of self-hosting is to remove reliance on anything cloud-based, including VPSs.

Moving from Tailscale to Google VPS-hosted Headscale is jumping from the frying pan into the fire, IMHO.

Better to opt out of CGNAT or pay your ISP an extra $10 a month (if necessary) for a static public IPv4 address. Host your own WireGuard VPN at home and establish direct connections without a third-party coordination service or relay.

I’m not saying this to deride your effort or score updoots, just stating my preference. YMMV.

Edited ⁨⁨Nov⁩ ⁨15⁩, ⁨2026⁩, ⁨07:54⁩⁩en