Episode 20: NetBird vs Headscale mesh VPN measurements

This commit is contained in:
Maximilian Grimm 2026-10-25 10:33:27 +01:00
parent 145d318452
commit 4c75f859d6
35 changed files with 5056 additions and 0 deletions

View file

@ -0,0 +1,57 @@
# 20 Headscale: Installation mit dem offiziellen DEB-Paket (UTC)
# Kontrollserver hs-server: Hetzner cpx22 (2 vCPU, 4 GB), Debian 13
# Warum Paket statt Container: docs/setup/install/container.md v0.29.6 beginnt mit
# !!! warning "Community documentation" This page is not actively maintained by the headscale authors ... It is _not_ verified by headscale developers.
# official.md: "Using packages for Debian/Ubuntu (recommended)"
$ cat /root/hs/times.txt
T_START 2026-10-24T11:05:07.098Z
T_SERVICE_UP 2026-10-24T11:05:12.180Z
$ wget headscale_0.29.6_linux_amd64.deb && sha256sum && apt-get install ./headscale.deb
a3b49916a16418c704cef89818d734bc8af0528aac965a2dd5ca4bfa4cef48e2 headscale.deb
Setting up headscale (0.29.6) ...
$ diff config.yaml.orig /etc/headscale/config.yaml # die einzigen vier Änderungen
13c13
< server_url: http://127.0.0.1:8080
---
> server_url: https://198-51-100-30.sslip.io
19c19
< listen_addr: 127.0.0.1:8080
---
> listen_addr: 0.0.0.0:443
262c262
< tls_letsencrypt_hostname: ""
---
> tls_letsencrypt_hostname: "198-51-100-30.sslip.io"
330c330
< base_domain: example.com
---
> base_domain: mesh.internal
$ systemctl restart headscale; headscale version
headscale version v0.29.6+dirty
commit: a2b1d7863926834e94479dcdd91ab344a9356bd0
build time: 2026-10-24T09:21:24Z
built with: go1.27.3 linux/amd64
Oct 24 11:05:09 hs-server headscale[8259]: 2026-10-24T11:05:09Z INF listening and serving debug and metrics on: 127.0.0.1:9090
Oct 24 11:05:09 hs-server headscale[8278]: 2026-10-24T11:05:09Z INF starting headscale commit=a2b1d7863926834e94479dcdd91ab344a9356bd0 version=v0.29.6+dirty
Oct 24 11:05:09 hs-server headscale[8278]: 2026-10-24T11:05:09Z INF Clients with a lower minimum version will be rejected minimum_version=v1.80
Oct 24 11:05:09 hs-server headscale[8278]: 2026-10-24T11:05:09Z INF listening and serving gRPC on: 127.0.0.1:50443
Oct 24 11:05:09 hs-server headscale[8278]: 2026-10-24T11:05:09Z INF listening and serving HTTP on: 0.0.0.0:443
Oct 24 11:05:09 hs-server headscale[8278]: 2026-10-24T11:05:09Z INF listening and serving debug and metrics on: 127.0.0.1:9090
$ curl https://198-51-100-30.sslip.io/health # von aussen, Let's-Encrypt-Zertifikat eingebaut (HTTP-01)
{"status":"pass"}
HTTP 200 ssl_verify 0
$ headscale users create lab; headscale preauthkeys create --user 1 --reusable --expiration 24h
hskey-auth-<REDACTED> (88 Zeichen)
# Ersteinrichtung: kein Admin-Konto, keine Weboberfläche. Verwaltung nur per CLI auf dem Server (bzw. gRPC mit API-Key).
$ curl -s -o /dev/null -w "%{http_code}" https://198-51-100-30.sslip.io/ ; /admin ; /web
/ -> 200
/admin -> 404
/web -> 404
/api/v1/user -> 401