Privacy & Networking

Self-Hosting Headscale on a VPS (2026): Private Zero-Trust Mesh (<60 MB RAM)

Headscale is an ultra-light Go implementation of the Tailscale coordination server (~45 MB RAM). Host it on KVM 1 (~$5.19/mo with XF3PLUTARXVF) to build a zero-trust private mesh across every VPS, home NAS, and developer laptop.

Self-Hosting Headscale on a VPS (2026): Private Zero-Trust Mesh (<60 MB RAM)
RATE SHEET

Hardware Spec & Verified Rate Sheet: Headscale

November 22, 2026
Hardware Spec & Verified Rate Sheet: Headscale
Provider / TierHardware & ArchitectureListNet BenefitCodeLink
Hostinger KVM 1
Recommended for Headscale
1 vCPU AMD EPYC · 4 GB DDR5 · 50 GB NVMe · 4 TB$6.49/mo~$5.19/mo (-20%)Claim -20%
Proton (VPN & Privacy)
WireGuard + VPS Privacy
Gluetun WireGuard + NAT-PMP · Swiss No-Logs · Mail/Drive/PassSubscription$20 USD creditClaim $20
01 Open the link to bind XF3PLUTARXVF (-20%) or 5AA9X0DA ($20 USD).02 Pick 12/24-mo KVM VPS or Proton Plus/Unlimited.03 Deploy Ubuntu 24.04 + Docker + WireGuard tunnel.
01 / HARDWARE TELEMETRY

Measured RAM, vCPU & NVMe Profile for Headscale

Min → Rec RAM
1 GB → 2 GB
Idle 45 MB · Peak 120 MB
Min → Rec vCPU
1 → 1 vCPU
AMD EPYC / High-Clock
Min → Rec NVMe
10 → 25 GB
PCIe Gen4 NVMe SSD
Primary Bottleneck

Negligible — peer traffic flows directly P2P over WireGuard unless DERP relay is needed

Projected Memory Footprint on Hostinger KVM 1 (4 GB RAM)Idle 4% · Peak 9% · Headroom 91%
02 / DOCKER COMPOSE & SHELL

Production Deployment Stack (Headscale)

Docker Stack Sizer
docker-compose.ymlyaml
services:
  headscale:
    image: headscale/headscale:0.23
    container_name: headscale
    restart: unless-stopped
    command: serve
    ports:
      - "127.0.0.1:8080:8080"
      - "127.0.0.1:9090:9090"
    volumes:
      - ./config:/etc/headscale
      - ./data:/var/lib/headscale
    deploy:
      resources:
        limits:
          memory: 256M
deploy-and-verify.shbash
mkdir -p /opt/headscale/{config,data} && cd /opt/headscale
curl -fsSL https://raw.githubusercontent.com/juanfont/headscale/main/config-example.yaml -o config/config.yaml
docker compose up -d
docker compose exec headscale headscale users create ops
03 / PRODUCTION FIELD NOTES

Critical Operational Insights

Once your VPS joins your Headscale mesh, you can lock SSH (`ufw allow in on tailscale0 to any port 22`) so port 22 is invisible to the public internet.
04 / SECURITY & PRIVACY

UFW Firewall, TLS & WireGuard / ProtonVPN Hardening

Terminate HTTPS with Caddy/Traefik in front of port 8080 and keep gRPC metrics port 9090 strictly on loopback.

Isolate container egress with ProtonVPN WireGuard + Proton Suite (US$20 in credits · code 5AA9X0DA).Claim US$20 on Proton
05 / VERIFIED DEPLOYMENT STACK

Deploy on Verified Infrastructure

KVM COMPUTE · EXTRA −20%

Hostinger KVM 1

~$5.19/mo
$6.49/mo
vCPU
1 EPYC
RAM
4 GB
NVMe
50 GB
24m Save
~$31
Renew: $9.99/mo · Free backups
SWISS PRIVACY · ACCOUNT CREDIT

Proton VPN & Unlimited

US$20
in credits
Tunnel
WireGuard
Docker
Gluetun + NAT
Suite
VPN·Mail·Drive
pr.tn/ref/5AA9X0DA

Frequently Asked Questions

Does Headscale work with official Tailscale clients?

Yes — Linux, macOS, Windows, iOS, and Android official Tailscale apps connect using `--login-server https://hs.yourdomain.com`.

More blueprints in this category

All guides