2.9 KiB
2.9 KiB
name, description, version, author, license, metadata
| name | description | version | author | license | metadata | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| headscale-vpn | Use when managing Robbi's headscale tailnet. Prod+local. | 2.0.0 | robertrapp | MIT |
|
headscale-vpn
Class: anything about Robbi's headscale/Tailscale tailnet — node registration, routes, DNS, ACL, config changes on the production server, or a local test deployment.
Always-on rules
- Credentials: never print or store real keys/tokens; show them as
[REDACTED]. Load~/Wodanio/.envinside scripts instead of echoing values. - Find out where headscale actually runs before planning edits. Production (
vpn.robbis.space) is a container service on Wodanio DSPS, configured purely byHEADSCALE_*env vars — no config file, no SSH. Details and API calls:references/wodanio-production.md. - Consent gate: if the real setup differs from what the requester assumed (env vars instead of a file, platform-managed config, untested setting syntax, restart side effects), stop and ask with concrete options and a recommendation. Read-only inspection and a local backup are fine to do first.
- Don't guess the user for registrations — list users first.
Procedure: change production config (DNS, routes, etc.)
GET /v1/container-> headscale id;GET /v1/container/{id}-> current envs + podId.- Back up the full service JSON locally (chmod 600) — this is the "config backup".
- Read-only state via exec (
headscale nodes list,nodes list-routes) or the REST API. - Ask if anything is non-obvious (see consent gate); then
PATCH /v1/container/{id}with the changed envs (this redeploys = restart). - Verify: pod state
running,headscale configtest/versionvia exec,nodes liststill shows all nodes, and the change is visible on a client (e.g.tailscale dns status). Roll back from the backup on failure.
DNS decision rules
.lannames need a split nameserverlan -> 192.168.178.35(Pi-hole); global Cloudflare can't resolve them.- Global DNS = a LAN IP only works for nodes that accept the subnet route. An approved
192.168.178.0/24route is necessary but not sufficient: checktailscale statushealth on clients ("--accept-routes is false") — such nodes would lose all DNS away from home. Offer: split-only / global+enable accept-routes / Pi-hole via its tailnet IP (needs Pi-hole to permit all origins). - Test resolvers directly before proposing them:
dig +short +time=3 +tries=1 @<ip> jellyfin.lan.
References
references/wodanio-production.md— DSPS API, exec/podId, env-var config model, backup/rollback, network facts.references/local-macos-deploy.md— standalone test server on arm64 macOS (binary, config, socket pitfalls).references/headscale-config.md— full config template.scripts/headscale-probe.sh— server/socket probe for local deployments.