Episode 20: NetBird vs Headscale mesh VPN measurements
This commit is contained in:
parent
145d318452
commit
4c75f859d6
35 changed files with 5056 additions and 0 deletions
261
mesh/measurements/10-netbird-install.txt
Normal file
261
mesh/measurements/10-netbird-install.txt
Normal file
|
|
@ -0,0 +1,261 @@
|
|||
# 10 NetBird self-hosted: Installation mit dem offiziellen Skript (UTC)
|
||||
# Kontrollserver nb-server: Hetzner cpx22 (2 vCPU, 4 GB), Debian 13, Docker 29.9.2
|
||||
|
||||
$ cat /root/nb/times.txt
|
||||
T_START 2026-10-24T10:59:52.095Z
|
||||
T_SCRIPT_END 2026-10-24T11:00:01.739Z
|
||||
|
||||
$ curl -fsSL -o getting-started.sh https://github.com/netbirdio/netbird/releases/latest/download/getting-started.sh && sha256sum getting-started.sh
|
||||
0aee21c20f9731293bec6b0d1fc73cbbca29f03ef626636ed9d0c7d8261c92fc getting-started.sh
|
||||
1808 getting-started.sh
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# NetBird Getting Started with Embedded IdP (Dex)
|
||||
# This script sets up NetBird with the embedded Dex identity provider
|
||||
# No separate Dex container or reverse proxy needed - IdP is built into management server
|
||||
|
||||
|
||||
$ time NETBIRD_NON_INTERACTIVE=true NETBIRD_DOMAIN=198-51-100-20.sslip.io NETBIRD_LETSENCRYPT_EMAIL=lab@selfhostedops.com bash getting-started.sh
|
||||
Rendering initial files...
|
||||
|
||||
Starting NetBird services
|
||||
|
||||
Image netbirdio/netbird-server:latest Pulling
|
||||
Image traefik:v3.7.14 Pulling
|
||||
Image netbirdio/dashboard:latest Pulling
|
||||
180b1d300e74 Pulling fs layer 0B
|
||||
e2de96513ba9 Pulling fs layer 0B
|
||||
4fd8a8e2424e Pulling fs layer 0B
|
||||
0636b0e13742 Pulling fs layer 0B
|
||||
628c6b7f0b7b Pulling fs layer 0B
|
||||
e2de96513ba9 Pulling fs layer 0B
|
||||
b02a9a9be3a3 Pulling fs layer 0B
|
||||
c88f288cd085 Pulling fs layer 0B
|
||||
f4562d052fb8 Pulling fs layer 0B
|
||||
8fe25c71aeb1 Pulling fs layer 0B
|
||||
8413d1fb0f4c Pulling fs layer 0B
|
||||
772421166c97 Pulling fs layer 0B
|
||||
efd19dc56a8e Pulling fs layer 0B
|
||||
7e16f1451509 Pulling fs layer 0B
|
||||
803799b677e8 Pulling fs layer 0B
|
||||
52a4b2531778 Pulling fs layer 0B
|
||||
f2b4ef06ff01 Pulling fs layer 0B
|
||||
fb1a17b59656 Pulling fs layer 0B
|
||||
180b1d300e74 Download complete 0B
|
||||
0636b0e13742 Downloading 4.194MB
|
||||
e2de96513ba9 Download complete 0B
|
||||
e2de96513ba9 Extracting 1B
|
||||
4fd8a8e2424e Download complete 0B
|
||||
0636b0e13742 Downloading 9.437MB
|
||||
e2de96513ba9 Download complete 0B
|
||||
e2de96513ba9 Extracting 1B
|
||||
0636b0e13742 Downloading 38.27MB
|
||||
c88f288cd085 Download complete 0B
|
||||
e2de96513ba9 Extracting 1B
|
||||
e2de96513ba9 Extracting 1B
|
||||
0636b0e13742 Download complete 0B
|
||||
628c6b7f0b7b Downloading 8.939MB
|
||||
e2de96513ba9 Extracting 1B
|
||||
e2de96513ba9 Extracting 1B
|
||||
803799b677e8 Download complete 0B
|
||||
f4562d052fb8 Download complete 0B
|
||||
e2de96513ba9 Extracting 1B
|
||||
628c6b7f0b7b Download complete 0B
|
||||
e2de96513ba9 Extracting 1B
|
||||
8fe25c71aeb1 Download complete 0B
|
||||
772421166c97 Download complete 0B
|
||||
e2de96513ba9 Extracting 1B
|
||||
8413d1fb0f4c Download complete 0B
|
||||
e2de96513ba9 Extracting 1B
|
||||
b02a9a9be3a3 Downloading 5.243MB
|
||||
efd19dc56a8e Download complete 0B
|
||||
7e16f1451509 Download complete 0B
|
||||
e2de96513ba9 Extracting 1B
|
||||
e2de96513ba9 Extracting 1B
|
||||
52a4b2531778 Downloading 2.097MB
|
||||
b02a9a9be3a3 Downloading 23.07MB
|
||||
e2de96513ba9 Extracting 1B
|
||||
e2de96513ba9 Extracting 1B
|
||||
52a4b2531778 Downloading 7.34MB
|
||||
f2b4ef06ff01 Downloading 3.146MB
|
||||
b02a9a9be3a3 Downloading 37.08MB
|
||||
e2de96513ba9 Extracting 1B
|
||||
e2de96513ba9 Pull complete 0B
|
||||
52a4b2531778 Downloading 16.78MB
|
||||
f2b4ef06ff01 Downloading 18.87MB
|
||||
b02a9a9be3a3 Download complete 0B
|
||||
4fd8a8e2424e Extracting 1B
|
||||
e2de96513ba9 Extracting 1B
|
||||
f2b4ef06ff01 Downloading 29.77MB
|
||||
fb1a17b59656 Downloading 13.63MB
|
||||
e2de96513ba9 Extracting 1B
|
||||
4fd8a8e2424e Pull complete 0B
|
||||
0636b0e13742 Extracting 1B
|
||||
f2b4ef06ff01 Download complete 0B
|
||||
fb1a17b59656 Downloading 39.54MB
|
||||
e2de96513ba9 Extracting 2B
|
||||
52a4b2531778 Download complete 0B
|
||||
0636b0e13742 Extracting 1B
|
||||
f2b4ef06ff01 Extracting 1B
|
||||
ab42dc032dbc Downloading 12.89kB
|
||||
4ae4fef5ab2e Downloading 831.6kB
|
||||
fb1a17b59656 Download complete 0B
|
||||
f2b4ef06ff01 Extracting 1B
|
||||
0636b0e13742 Extracting 1B
|
||||
4ae4fef5ab2e Download complete 0B
|
||||
ab42dc032dbc Download complete 0B
|
||||
b02a9a9be3a3 Extracting 1B
|
||||
44136fa355b3 Downloading 2B
|
||||
44136fa355b3 Downloading 2B
|
||||
f2b4ef06ff01 Extracting 1B
|
||||
0636b0e13742 Extracting 1B
|
||||
0636b0e13742 Extracting 1B
|
||||
0e6b3aaf548f Downloading 14.5kB
|
||||
44136fa355b3 Download complete 0B
|
||||
f2b4ef06ff01 Extracting 1B
|
||||
0636b0e13742 Extracting 1B
|
||||
0e6b3aaf548f Download complete 0B
|
||||
ce204602597f Downloading 2.163MB
|
||||
f2b4ef06ff01 Extracting 1B
|
||||
b02a9a9be3a3 Extracting 1B
|
||||
0636b0e13742 Extracting 1B
|
||||
44136fa355b3 Download complete 0B
|
||||
0636b0e13742 Extracting 1B
|
||||
5f28400a498c Download complete 0B
|
||||
ce204602597f Download complete 0B
|
||||
f2b4ef06ff01 Extracting 1B
|
||||
0636b0e13742 Extracting 1B
|
||||
f2b4ef06ff01 Extracting 1B
|
||||
0636b0e13742 Extracting 2B
|
||||
0636b0e13742 Extracting 2B
|
||||
f2b4ef06ff01 Extracting 1B
|
||||
b02a9a9be3a3 Extracting 1B
|
||||
b02a9a9be3a3 Extracting 1B
|
||||
f2b4ef06ff01 Extracting 1B
|
||||
0636b0e13742 Extracting 2B
|
||||
b02a9a9be3a3 Extracting 1B
|
||||
f2b4ef06ff01 Pull complete 0B
|
||||
180b1d300e74 Extracting 1B
|
||||
0636b0e13742 Pull complete 0B
|
||||
fb1a17b59656 Extracting 1B
|
||||
180b1d300e74 Pull complete 0B
|
||||
fb1a17b59656 Extracting 1B
|
||||
b02a9a9be3a3 Extracting 1B
|
||||
b02a9a9be3a3 Extracting 1B
|
||||
fb1a17b59656 Extracting 1B
|
||||
fb1a17b59656 Extracting 1B
|
||||
fb1a17b59656 Extracting 1B
|
||||
b02a9a9be3a3 Extracting 2B
|
||||
b02a9a9be3a3 Extracting 2B
|
||||
Image traefik:v3.7.14 Pulled
|
||||
52a4b2531778 Extracting 1B
|
||||
fb1a17b59656 Pull complete 0B
|
||||
c88f288cd085 Pull complete 0B
|
||||
f4562d052fb8 Pull complete 0B
|
||||
8fe25c71aeb1 Extracting 1B
|
||||
b02a9a9be3a3 Pull complete 0B
|
||||
52a4b2531778 Extracting 1B
|
||||
803799b677e8 Pull complete 0B
|
||||
628c6b7f0b7b Extracting 1B
|
||||
8fe25c71aeb1 Pull complete 0B
|
||||
772421166c97 Pull complete 0B
|
||||
8413d1fb0f4c Pull complete 0B
|
||||
efd19dc56a8e Pull complete 0B
|
||||
52a4b2531778 Extracting 1B
|
||||
7e16f1451509 Pull complete 0B
|
||||
628c6b7f0b7b Extracting 1B
|
||||
52a4b2531778 Extracting 1B
|
||||
628c6b7f0b7b Pull complete 0B
|
||||
Image netbirdio/dashboard:latest Pulled
|
||||
52a4b2531778 Extracting 1B
|
||||
52a4b2531778 Pull complete 0B
|
||||
Image netbirdio/netbird-server:latest Pulled
|
||||
Network nb_netbird Creating
|
||||
Network nb_netbird Creating
|
||||
Volume nb_netbird_data Creating
|
||||
Volume nb_netbird_data Creating
|
||||
Volume nb_netbird_traefik_letsencrypt Creating
|
||||
Volume nb_netbird_traefik_letsencrypt Creating
|
||||
Volume nb_netbird_traefik_letsencrypt Created
|
||||
Volume nb_netbird_traefik_letsencrypt Created
|
||||
Volume nb_netbird_data Created
|
||||
Volume nb_netbird_data Created
|
||||
Network nb_netbird Created
|
||||
Network nb_netbird Created
|
||||
Container netbird-traefik Creating
|
||||
Container netbird-server Creating
|
||||
Container netbird-dashboard Creating
|
||||
Container netbird-dashboard Created
|
||||
Container netbird-server Created
|
||||
Container netbird-traefik Created
|
||||
Container netbird-server Starting
|
||||
Container netbird-traefik Starting
|
||||
Container netbird-dashboard Starting
|
||||
Container netbird-server Started
|
||||
Container netbird-traefik Started
|
||||
Container netbird-dashboard Started
|
||||
Waiting for NetBird server to become ready done
|
||||
|
||||
Done!
|
||||
|
||||
|
||||
==========================================
|
||||
NETBIRD SETUP COMPLETE
|
||||
==========================================
|
||||
|
||||
You can access the NetBird dashboard at:
|
||||
https://198-51-100-20.sslip.io
|
||||
|
||||
Follow the onboarding steps to set up your NetBird instance.
|
||||
|
||||
Traefik is handling TLS certificates automatically via Let's Encrypt.
|
||||
If you see certificate warnings, wait a moment for certificate issuance to complete.
|
||||
|
||||
Open ports:
|
||||
- 443/tcp (HTTPS - all NetBird services)
|
||||
- 80/tcp (HTTP - redirects to HTTPS)
|
||||
- 3478/udp (STUN - required for NAT traversal)
|
||||
|
||||
This setup is ideal for homelabs and smaller organization deployments.
|
||||
For enterprise environments requiring high availability and advanced integrations,
|
||||
consider a commercial on-prem license or scaling your open source deployment:
|
||||
|
||||
Commercial license: https://netbird.io/pricing#on-prem
|
||||
Scaling guide: https://docs.netbird.io/scaling-your-self-hosted-deployment
|
||||
|
||||
|
||||
real 0m9.139s
|
||||
user 0m0.189s
|
||||
sys 0m0.128s
|
||||
|
||||
# Ersteinrichtung: Besitzerkonto
|
||||
$ curl -s https://198-51-100-20.sslip.io/api/instance # von aussen, ohne Anmeldung, 11:00 UTC
|
||||
{"setup_required":true}
|
||||
# Dashboard leitet auf /setup: 'Create the first admin account to get started' (Name, Email, Password). Kein Token, kein Code aus dem Log.
|
||||
# Bundle des Dashboards v2.95.0: async function a(e){return r("POST","/setup",e)}
|
||||
# Besitzer per Einrichtungsseite angelegt (Playwright, admin@example.com), fertig 11:01:19 UTC, Rolle owner
|
||||
|
||||
$ curl -s https://198-51-100-20.sslip.io/api/instance # danach
|
||||
{"setup_required":false}
|
||||
|
||||
|
||||
# Versionen
|
||||
netbird-traefik traefik:v3.7.14
|
||||
netbird-dashboard netbirdio/dashboard:latest
|
||||
netbird-server netbirdio/netbird-server:latest
|
||||
2026-10-24T11:00:01.667Z INFO management/internals/server/server.go:245: management server version 0.81.3
|
||||
netbirdio/dashboard:latest v2.95.0 netbirdio/dashboard@sha256:3d6adfee19dd8d34d795af51daee69d27d2081d2076a5a304cfdd14acc67d6f4
|
||||
netbirdio/netbird-server:latest 24.04 netbirdio/netbird-server@sha256:541ecef7e98a66b17411d44e9d4dcfdb65913415f39b3b944b8e7e748f997f1d
|
||||
traefik:v3.7.14 v3.7.14 traefik@sha256:575fa15b135078fe5e50aa847987d96dbddd7b093c172429618404df73f3fa7c
|
||||
|
||||
## Zweite Installation für den Browser-Take N0 (12:40 UTC): docker compose down -v, Skript erneut
|
||||
Volume nb_netbird_traefik_letsencrypt Removed
|
||||
Network nb_netbird Removed
|
||||
rc=0 Dauer 4045 ms
|
||||
2026-10-24T12:40:58.075Z INFO management/internals/server/server.go:245: management server version 0.81.3
|
||||
# Images lagen lokal als :latest vor, daher kein Pull und weiter 0.81.3 (obwohl 0.81.4 seit 11:24 veröffentlicht).
|
||||
$ curl -s https://198-51-100-20.sslip.io/api/instance (nach Zertifikat)
|
||||
{"setup_required":true}
|
||||
# Seite / leitet wieder auf /setup: 'Create the first admin account to get started' (Take N0, nichts abgeschickt)
|
||||
Loading…
Add table
Add a link
Reference in a new issue