Skills von blackbook: network/headscale-vpn
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
# headscale Config Template
|
||||
|
||||
## Required Configuration Fields
|
||||
|
||||
```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
|
||||
```
|
||||
|
||||
## Field Descriptions
|
||||
|
||||
- **listen_addr**: Network address the server listens on
|
||||
- **server_url**: URL base for the headscale API
|
||||
- **backend.type**: Storage backend (sqlite recommended for local setups)
|
||||
- **backend.sqlite.path**: Path to the SQLite database file
|
||||
- **noise.private_key_path**: Path to noise private key (Tailscale v2 protocol required)
|
||||
- **dns.nameservers.global**: DNS nameservers for DNS-over-HTTPS
|
||||
- **dns.override_local_dns**: Whether to override local DNS
|
||||
- **auth.method**: Authentication method (file recommended for local setups)
|
||||
- **auth.file.prefix**: IPv4/IPv6 subnet prefix (REQUIRED - minimum one prefix required)
|
||||
|
||||
## Pitfalls
|
||||
|
||||
- Missing `noise.private_key_path` causes: `Fatal config error: headscale now requires a new noise.private_key_path field`
|
||||
- Missing `auth.file.prefix` causes: `Fatal config error: no IPv4 or IPv6 prefix configured, minimum one prefix is required`
|
||||
- Server socket path mismatch between config and CLI expectation causes connection timeouts
|
||||
- pip/brew installation unavailable; use manual binary download from GitHub releases
|
||||
```
|
||||
",
|
||||
Reference in New Issue
Block a user