21 lines
1.2 KiB
Markdown
21 lines
1.2 KiB
Markdown
# Local/test headscale on arm64 macOS
|
|
|
|
1. Binary from GitHub releases (manual download is the reliable path):
|
|
`curl -sL https://github.com/juanfont/headscale/releases/download/v0.29.7/headscale_0.29.7_darwin_arm64 -o /tmp/headscale && chmod +x /tmp/headscale && /tmp/headscale version`
|
|
2. Config — `noise.private_key_path` and the IP prefix are required or config load fails:
|
|
```yaml
|
|
listen_addr: 0.0.0.0:8080
|
|
server_url: http://127.0.0.1:8080
|
|
backend: {type: sqlite, sqlite: {path: /tmp/headscale.db}}
|
|
noise: {private_key_path: /tmp/noise_key.pem}
|
|
dns: {nameservers: {global: [8.8.8.8]}, override_local_dns: false}
|
|
auth: {method: file, file: {prefix: 100.64.0.0/10}}
|
|
```
|
|
3. `/tmp/headscale generate private-key -o /tmp/noise_key.pem`, then run `serve -c <cfg>` in the foreground first
|
|
to see errors (or set `HEADSCALE_CONFIG`).
|
|
4. The CLI talks to the unix socket; if the config's socket path differs from the CLI default
|
|
(`/var/run/headscale/headscale.sock`), pass `-c <cfg>` so both agree — otherwise CLI calls time out.
|
|
5. Users/nodes: `users list --output json`, `nodes register --user <user> --key <key>`, `nodes list --output json`.
|
|
|
|
See also `references/headscale-config.md` and `scripts/headscale-probe.sh`.
|