Skills von blackbook: network/headscale-vpn

This commit is contained in:
2026-11-26 01:28:28 +01:00
parent 9888cb5a08
commit c44bee309d
@@ -24,8 +24,10 @@ values. Device docs: `~/Wodanio/tailnet/GERAETE.md`, ACL: `~/Wodanio/tailnet/pol
`HEADSCALE_DNS_NAMESERVERS_GLOBAL=1.1.1.1 1.0.0.1` (space-separated list), `HEADSCALE_POLICY_MODE=database`.
- "Backup the config" = save the full `GET /v1/container/{id}` JSON locally (e.g.
`~/Wodanio/headscale-container.bak-<date>.json`, chmod 600) before any PATCH; restore by PATCHing envs back.
- Map-valued settings (`dns.nameservers.split`) have no obvious env form; a JSON string in
`HEADSCALE_DNS_NAMESERVERS_SPLIT` is unverified. After any change, verify with `headscale configtest` via exec
- Map-valued settings work as a JSON string: `HEADSCALE_DNS_NAMESERVERS_SPLIT={"lan":["192.168.178.35"]}`
(verified 2026-11 — clients showed `lan -> 192.168.178.35` in `tailscale dns status` ~1 min after PATCH;
this is now LIVE). On macOS at home, `--accept-routes` keeps the local LAN on en0 (no detour via rpi).
PATCH body = `{"envs": [full list]}`; exec calls may 504 — use /health + client dns status to verify. After any change, verify with `headscale configtest` via exec
and check a node actually receives it; roll back from the backup if not. Mounting a real config.yaml into the
`/var/lib/headscale` volume is the alternative (changes how the service is configured -> ask first).