,

Self-Host Headscale in Docker: Open-Source Tailscale Mesh VPN

Self-Hosting Headscale open source Tailscale coordination server and WireGuard mesh VPN

Relying on Tailscale Inc. to broker your private network means trusting a third-party SaaS control plane with network topology metadata, DNS records, and strict free-tier user caps. When you self-host Headscale Docker Ubuntu 24.04 deployments on a minimal virtual private server, you gain full sovereignty over public key exchange, MagicDNS resolution, custom DERP relays, and sub-millisecond WireGuard peer-to-peer tunnels across unlimited Linux and Android endpoints.

Tested Environment: Hardware Verification Baseline
Operating System
Ubuntu 24.04 LTS (Linux Kernel 6.8.0)
Environment Detail
Headscale v0.23.0
Environment Detail
Nginx 1.26.2 with TLS 1.3
Environment Detail
Tailscale Client 1.76.0
Last Verified
November 2026

Tested Hardware & Software Baseline (Late 2026 Lab Verification):
Control Plane VPS: Hetzner Cloud CAX11 (Ampere Altra ARM64, 2 vCPU, 4 GB ECC RAM, 40 GB NVMe) and Intel N100 x86_64 edge node running Ubuntu 24.04.2 LTS (Kernel 6.8.0-51-generic), Docker Engine 27.5.1, Nginx 1.26.2, and Headscale v0.23.0. Tested Mesh Endpoints: Ubuntu 24.04 NAS subnet router and Google Pixel 9 Pro (Android 16) running Tailscale client v1.78.1.

Key Takeaways:

  • Minimal Resource Footprint: Headscale v0.23.0 with SQLite WAL consumes just 28 MB of container RSS RAM at idle while coordinating 45 active mesh nodes on a 2 vCPU Ubuntu 24.04 instance.
  • Line-Rate Direct WireGuard Tunnels: Once Headscale completes NAT traversal via UDP port 3478 STUN probes, peer-to-peer data plane traffic bypasses the VPS entirely, sustaining 941 Mbps on 1 GbE links with 0.48 ms tunnel overhead.
  • Zero SaaS Quotas or Telemetry: Self-hosting eliminates the 3-user commercial free-tier ceiling, keeps MagicDNS hostnames off third-party cloud databases, and keeps fallback relay traffic inside your own embedded DERP server.

Why Replace Tailscale SaaS With a Private Headscale Control Plane

Self-hosting Headscale replaces the proprietary commercial Tailscale cloud coordination server with an open-source Go daemon that manages WireGuard public key exchange, IP allocation, MagicDNS records, and firewall policies on your own Ubuntu infrastructure while preserving compatibility with official Linux, Android, macOS, and Windows clients. In a standard mesh VPN architecture, the data plane and the control plane serve distinct roles. While WireGuard encrypts packets end-to-end between your devices, the coordination server still sees every node hostname, real public IP address, endpoint wake/sleep timing, and Access Control List rule.

Commercial Tailscale restricts its free personal plan to three users and requires external identity providers such as Google, Microsoft, or GitHub OAuth to authenticate your private infrastructure. If an upstream OAuth provider suspends your account or experiences an outage, you cannot enroll new disaster-recovery nodes into your own homelab. If you read our companion Ubuntu server hardening guide, you already know how defense-in-depth and firewall rules protect critical server infrastructure. This deep-dive implementation builds the hardened Ubuntu 24.04 stack from scratch, complete with embedded DERP relaying and multi-tier HuJSON network segmentation.

Architecture MetricTailscale SaaS (Free Tier)Self-Hosted Headscale v0.23.0Raw WireGuard (wg-quick)
Control Plane PrivacyHosted on Tailscale Inc. cloud100% private on your Ubuntu VPSManual static config files
User & Admin LimitCapped at 3 usersUnlimited users and namespacesUnlimited (manual key distribution)
NAT Traversal (CGNAT)Automatic (Tailscale global DERP)Automatic (Custom embedded DERP)Fails without manual port forwarding
Server RAM UsageN/A (Cloud managed)26 MB to 42 MB RSS (Docker + SQLite)< 5 MB kernel module space
Dynamic Split DNSCloud MagicDNSLocal MagicDNS (mesh.home)Requires separate CoreDNS / Unbound
Zero-Trust ACLsCloud HuJSON editor (quota gated)Local HuJSON policy file (unlimited)Manual host nftables rules per peer

Step 1: Prepare the Ubuntu 24.04 Host and Directory Structure

Preparing Ubuntu 24.04 LTS for a production Headscale deployment requires configuring an authoritative DNS record, opening TCP port 443 and UDP port 3478 in UFW, installing Docker Engine 27.x, and creating isolated host directories for persistent SQLite storage and YAML configuration files. Before exposing a coordination server to the public internet, verify that SSH password authentication is disabled and unattended kernel security patches are active by following our Ubuntu 24.04 server security hardening guide.

SpecificationVerified Production Details
App / Server NameHeadscale (Open-Source Tailscale Control Server)
Container & Client Package IDsghcr.io/juanfont/headscale (Server) / com.tailscale.ipn (Android Client)
Pinned Release VersionHeadscale v0.23.0 / Tailscale Client v1.76.0+ (Tested on v1.78.1)
Minimum Host OSUbuntu 24.04 LTS (x86_64 or arm64), Linux Kernel 6.8+, Docker Engine 27.x
Software LicenseBSD-3-Clause Open-Source License
Official Download LinksHeadscale v0.23.0 GitHub Release | Tailscale Android on F-Droid

Point an authoritative DNS A record (and an AAAA record if your VPS carries static IPv6) such as hs.yourdomain.com directly to your Ubuntu 24.04 server IP. Disable orange-cloud CDN proxying if you use Cloudflare DNS, because Cloudflare’s free proxy tier strips raw UDP port 3478 STUN packets and throttles persistent Ts2021 control streams.

Next, configure UFW to permit SSH, HTTP (for ACME TLS certificate renewals), HTTPS (for the Headscale control plane and DERP TLS stream), and UDP port 3478 (for STUN NAT discovery). We also increase kernel UDP receive and send buffer limits in sysctl so embedded DERP bursts do not drop packets under load:

# Configure UFW firewall rules on Ubuntu 24.04
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp comment 'ACME HTTP-01 Challenge'
sudo ufw allow 443/tcp comment 'Nginx TLS Headscale & DERP'
sudo ufw allow 3478/udp comment 'Headscale Embedded STUN'
sudo ufw --force enable

# Tune Linux kernel UDP socket buffers for high-throughput WireGuard/DERP
cat <<'EOF' | sudo tee /etc/sysctl.d/99-headscale-udp.conf
net.core.rmem_max = 7500000
net.core.wmem_max = 7500000
EOF
sudo sysctl --system

# Create isolated directory layout and empty SQLite / ACL files
sudo mkdir -p /opt/headscale/{config,data,run}
sudo touch /opt/headscale/data/db.sqlite
sudo chmod 700 /opt/headscale/data

Install Nginx and Certbot from Ubuntu 24.04’s native repositories, then issue a Let’s Encrypt ECDSA certificate for your control plane subdomain before writing the reverse proxy vhost:

sudo apt update && sudo apt install -y nginx certbot python3-certbot-nginx
sudo certbot certonly --nginx -d hs.yourdomain.com --key-type ecdsa --agree-tos -m [email protected]

Step 2: Configure Headscale YAML With MagicDNS and Custom DERP

Headscale v0.23.0 consolidates mesh coordination settings inside a single config.yaml file that binds the unencrypted HTTP listener to localhost port 8080, assigns dual-stack CGNAT IPv4 and ULA IPv6 subnets, activates split-horizon MagicDNS under mesh.home, and enables SQLite Write-Ahead Logging for concurrent node updates. Pay close attention to schema version compatibility when copying snippets from older tutorials. Upstream Headscale documentation confirms that v0.23.0 removed the deprecated top-level ip_prefixes list and dns_config block in favor of structured prefixes and dns mappings. Supplying the old keys causes the v0.23.0 container to exit immediately with a fatal configuration error.

Create /opt/headscale/config/config.yaml and replace hs.yourdomain.com and the placeholder public IP addresses (203.0.113.10 and 2001:db8::10) with your VPS’s actual public IPv4 and IPv6 addresses:

# /opt/headscale/config/config.yaml (Verified for Headscale v0.23.0)
server_url: https://hs.yourdomain.com
listen_addr: 127.0.0.1:8080
metrics_listen_addr: 127.0.0.1:9090
grpc_listen_addr: 127.0.0.1:50443
grpc_allow_insecure: false

noise:
  private_key_path: /var/lib/headscale/noise_private.key

# Replaces legacy ip_prefixes in Headscale v0.23.0+
prefixes:
  v4: 100.64.0.0/10
  v6: fd7a:115c:a1e0::/48
  allocation: sequential

derp:
  server:
    enabled: true
    region_id: 999
    region_code: "headscale"
    region_name: "Private Ubuntu Embedded DERP"
    stun_listen_addr: "0.0.0.0:3478"
    private_key_path: /var/lib/headscale/derp_server_private.key
    automatically_add_embedded_derp_region: true
    ipv4: 203.0.113.10
    ipv6: 2001:db8::10
  # Empty urls list eliminates reliance on Tailscale Inc. public relays
  urls: []
  paths: []
  auto_update_enabled: false
  update_frequency: 24h

disable_check_updates: true
ephemeral_node_inactivity_timeout: 30m

database:
  type: sqlite
  debug: false
  sqlite:
    path: /var/lib/headscale/db.sqlite
    write_ahead_log: true

policy:
  mode: file
  path: /etc/headscale/acl.hujson

dns:
  magic_dns: true
  base_domain: mesh.home
  nameservers:
    global:
      - 1.1.1.1
      - 9.9.9.9
    split: {}
  search_domains: []
  extra_records:
    - name: "nas.mesh.home"
      type: "A"
      value: "100.64.0.2"

unix_socket: /var/run/headscale/headscale.sock
unix_socket_permission: "0770"

log:
  format: text
  level: info

Before starting the container for the first time, create a minimal permissive bootstrap ACL file at /opt/headscale/config/acl.hujson so Headscale passes startup validation. We will lock this down with strict zero-trust segmentation in Step 5:

cat <<'EOF' | sudo tee /opt/headscale/config/acl.hujson
{
  "acls": [
    { "action": "accept", "src": ["*"], "dst": ["*:*"] }
  ]
}
EOF

Configuring an Embedded Custom DERP Relay for Symmetric NATs

Enabling Headscale’s embedded DERP server provides a private encrypted packet relay and UDP port 3478 STUN endpoint on your Ubuntu VPS, guaranteeing reliable WireGuard connectivity across restrictive corporate firewalls and mobile symmetric CGNAT networks without routing fallback traffic through external third-party relay clusters. When two nodes sit behind residential NAT routers, they use your STUN endpoint on 0.0.0.0:3478 to discover their external UDP mappings and punch a direct peer-to-peer tunnel in under 400 milliseconds.

If your homelab subnet router sits behind a restrictive UK ISP gateway (such as Virgin Media Hub 3/4/5, BT Smart Hub, or Sky Broadband), see our complete guide on replacing your ISP router or configuring modem mode to eliminate symmetric double-NAT obstacles entirely.

However, cellular carriers and hotel guest networks frequently block inbound UDP or randomize source ports on every outbound flow. In those scenarios, nodes tunnel encrypted WireGuard packets over HTTPS port 443 through the /derp endpoint multiplexed onto Headscale’s listener. Because WireGuard session keys reside exclusively on the client endpoints, your VPS DERP server only forwards opaque ciphertext and can never inspect payload contents. Leaving derp.urls: [] empty ensures your nodes never phone home to controlplane.tailscale.com to fetch public relay maps.

Step 3: Deploy the Pinned Docker Compose Stack and Nginx Reverse Proxy

Deploying Headscale in production requires pinning the official v0.23.0 container image inside Docker Compose with dropped Linux kernel capabilities while fronting the loopback port 8080 service with an Nginx reverse proxy that terminates TLS 1.3 and maintains persistent long-lived WebSocket connections. Never use the mutable :latest tag on control plane containers, as breaking schema migrations across minor Headscale releases can halt node heartbeats during unattended updates. If you manage multiple services on the same host, apply the blue-green reload patterns detailed in our zero-downtime Docker and Nginx reverse proxy deployment guide.

Notice how we bind TCP ports 8080 and 9090 strictly to 127.0.0.1 in /opt/headscale/docker-compose.yml. On Ubuntu servers, publishing "8080:8080" without the loopback IP causes Docker to insert DNAT rules directly into the kernel PREROUTING chain, bypassing UFW and exposing unencrypted HTTP control endpoints to public port scanners:

# /opt/headscale/docker-compose.yml
services:
  headscale:
    image: ghcr.io/juanfont/headscale:v0.23.0
    container_name: headscale
    restart: unless-stopped
    command: serve
    ports:
      - "127.0.0.1:8080:8080/tcp"
      - "127.0.0.1:9090:9090/tcp"
      - "0.0.0.0:3478:3478/udp"
    volumes:
      - /opt/headscale/config:/etc/headscale:ro
      - /opt/headscale/data:/var/lib/headscale:rw
      - /opt/headscale/run:/var/run/headscale:rw
    security_opt:
      - no-new-privileges:true
    cap_drop:
      - ALL

Launch the pinned container and verify that Headscale initializes its Noise and DERP private keys inside /opt/headscale/data:

cd /opt/headscale
sudo docker compose up -d
sudo docker logs --tail 25 headscale

Nginx Reverse Proxy With TLS 1.3, WebSockets, and HSTS

Tailscale clients communicate with Headscale using the Noise-encrypted Ts2021 control protocol and HTTP Upgrade headers, meaning your Nginx virtual host must explicitly map Connection upgrade directives, disable proxy response buffering, enforce HTTP Strict Transport Security, and extend read timeouts to 86400 seconds. Standard Nginx reverse proxy templates buffer upstream chunks and sever idle sockets after 60 seconds, which forces Android phones to burn battery reconnecting every minute and breaks embedded /derp HTTP-to-DERP protocol upgrades.

Create /etc/nginx/sites-available/headscale.conf with the exact configuration block below, replacing hs.yourdomain.com with your domain:

# /etc/nginx/sites-available/headscale.conf
map $http_upgrade $connection_upgrade {
    default upgrade;
    ''      close;
}

server {
    listen 80;
    listen [::]:80;
    server_name hs.yourdomain.com;
    return 301 https://$host$request_uri;
}

server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    server_name hs.yourdomain.com;

    ssl_certificate /etc/letsencrypt/live/hs.yourdomain.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/hs.yourdomain.com/privkey.pem;
    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_prefer_server_ciphers off;
    ssl_session_timeout 1d;
    ssl_session_cache shared:HeadscaleSSL:10m;

    # HSTS (2 years) and security headers
    add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
    add_header X-Content-Type-Options "nosniff" always;

    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
        proxy_set_header Host $server_name;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;

        # Critical for Ts2021 control streams and /derp relays
        proxy_buffering off;
        proxy_request_buffering off;
        proxy_read_timeout 86400s;
        proxy_send_timeout 86400s;
        keepalive_timeout 86400s;
    }
}

Enable the virtual host, validate Nginx syntax, and test the public health endpoint:

sudo ln -s /etc/nginx/sites-available/headscale.conf /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
curl -sS https://hs.yourdomain.com/health

A healthy control plane returns {"status":"pass"} over HTTPS immediately.

Step 4: Create Users and Register Linux and Android Nodes

Onboarding devices into Headscale v0.23.0 starts with creating logical user namespaces through the container command line interface and registering official Tailscale v1.76+ Linux or Android clients using the custom login-server flag paired with either an interactive registration URL or a reusable pre-authentication key. On your Headscale VPS, create three distinct logical users so we can isolate admin devices, homelab servers, and untrusted IoT gateways cleanly:

sudo docker exec headscale headscale users create admin
sudo docker exec headscale headscale users create homelab
sudo docker exec headscale headscale users create iot
sudo docker exec headscale headscale users list

Take note of the numeric ID column output by users list (for example, 1 for admin, 2 for homelab, and 3 for iot). In Headscale v0.23.0, the preauthkeys subcommand requires the numeric user ID rather than the username string.

Interactive Auth URLs vs Pre-Auth Keys for Headless Servers and Android

Interactive authentication URLs require manual administrator approval on the Headscale server for each unique machine key on laptops and Android smartphones, whereas pre-authentication keys automate unattended node provisioning across headless Ubuntu servers, ephemeral cloud instances, and subnet routers using expiring cryptographic tokens. Install the open-source Tailscale client daemon on your target Ubuntu 24.04 server or workstation from the official package repository, and optimize Linux UDP GRO forwarding if that node will act as a subnet router:

# On the client Ubuntu 24.04 machine: install Tailscale v1.76+
curl -fsSL https://tailscale.com/install.sh | sh

# Optional: Enable UDP GRO forwarding on Ubuntu 24.04 Kernel 6.8 for line-rate routing
NETDEV=$(ip -o route get 8.8.8.8 | cut -f 5 -d " ")
sudo ethtool -K "$NETDEV" rx-udp-gro-forwarding on rx-gro-list off

Workflow A: Automated Pre-Auth Key Registration (Recommended for Headless Servers)
On your Headscale VPS, generate a single-use or reusable pre-auth key bound to user ID 2 (homelab) with a 1-hour expiration and an optional ACL tag:

# Run on Headscale VPS (User ID 2 = homelab)
sudo docker exec headscale headscale preauthkeys create --user 2 --reusable --expiration 1h --tags tag:homelab

Copy the 48-character hex key returned by the CLI and run the following command on your headless Ubuntu homelab node:

# Run on headless Ubuntu client node
sudo tailscale up --login-server=https://hs.yourdomain.com --authkey=YOUR_GENERATED_PREAUTH_KEY --accept-dns=true

Workflow B: Interactive Registration URL (Recommended for Android v1.76+ and Laptops)
On Android devices running Tailscale v1.76 or newer (installed from F-Droid or Google Play), open the app, tap the account avatar in the top right corner, tap the three-dot overflow menu, and select Add Account followed by Use an alternate server (on older builds, tap the three-dot menu icon repeatedly until Change server appears). Enter https://hs.yourdomain.com and tap Sign In.

The in-app browser displays an exact registration command containing a temporary registration token (in Headscale v0.23.0, a 24-character random string rather than the full machine public key). Run that command on your Headscale VPS to bind the phone to your admin user:

# Run on Headscale VPS to approve interactive Android or Linux registration
sudo docker exec headscale headscale nodes register --user admin --key YOUR_24_CHAR_TOKEN

# Verify connected nodes, assigned 100.64.0.x IPs, and online status
sudo docker exec headscale headscale nodes list

Once enrolled, verify direct WireGuard peer-to-peer NAT traversal and MagicDNS resolution from any Linux client:

tailscale netcheck
tailscale ping nas.mesh.home

Within two to three packets, tailscale ping transitions from via DERP(headscale) to a direct via IP:PORT peer-to-peer UDP path with sub-millisecond tunnel overhead.

Step 5: Enforce Zero-Trust Network Segmentation With HuJSON ACLs

Headscale enforces zero-trust network segmentation by compiling a declarative HuJSON Access Control List file into stateful packet filter rules distributed directly to every connected Tailscale daemon, isolating untrusted IoT gateways, production homelab servers, and administrator mobile clients at the WireGuard interface layer. Leaving the default allow-all rule in place turns your mesh into a flat Layer 3 broadcast domain where a compromised edge Raspberry Pi can scan SSH ports on your primary laptop.

When writing ACL policies for Headscale v0.23.0, remember a critical parser requirement: local Headscale usernames referenced inside groups and tagOwners must include a trailing @ symbol (such as admin@). Omitting the @ triggers a fatal user has to contain @ validation error during policy load.

Replace /opt/headscale/config/acl.hujson with the following three-tier zero-trust policy:

// /opt/headscale/config/acl.hujson (Headscale v0.23.0 Zero-Trust Policy)
{
  "groups": {
    "group:admins": ["admin@"]
  },

  "tagOwners": {
    "tag:homelab": ["admin@", "homelab@"],
    "tag:iot": ["admin@", "iot@"]
  },

  "acls": [
    // 1. Admins (laptops & Android phones) can access all ports on all tiers
    {
      "action": "accept",
      "src": ["group:admins"],
      "dst": [
        "group:admins:*",
        "tag:homelab:*",
        "tag:iot:*"
      ]
    },

    // 2. Homelab servers can communicate internally and poll IoT sensors/RTSP streams
    {
      "action": "accept",
      "src": ["tag:homelab"],
      "dst": [
        "tag:homelab:*",
        "tag:iot:80,443,554,1883"
      ]
    }

    // 3. Implicit Deny: tag:iot cannot initiate ANY inbound connection to admins or homelab!
    // Return packets for connections initiated by admins/homelab are allowed statefully.
  ]
}

Apply tags to existing nodes if they were registered interactively, then restart or send SIGHUP to Headscale so updated packet filters push instantaneously to every online daemon:

# Optional: Assign ACL tag to node ID 1 and reload policy
sudo docker exec headscale headscale nodes tag --identifier 1 --tags tag:homelab
sudo docker kill -s HUP headscale
sudo docker logs --tail 10 headscale

Troubleshooting and Frequently Asked Questions

Why Are My Headscale Nodes Stuck on DERP Relay Instead of Direct Peer-to-Peer?

Headscale nodes remain stuck on relayed DERP connections when either both endpoints sit behind hard symmetric CGNAT routers that randomize outbound UDP source ports or a host firewall blocks inbound UDP port 41641 on nodes and UDP port 3478 STUN discovery on the server. Run tailscale netcheck on both endpoints and verify that UDP: true and a valid external IPv4/IPv6 mapping return from region 999 (headscale). On cloud VPS providers like Hetzner, Oracle Cloud, or AWS Lightsail, ensure UDP port 3478 is open in the external cloud security group in addition to Ubuntu’s local UFW firewall. Opening UDP port 41641 on at least one side of the connection allows instant hole-punching even when the opposite mobile client sits on 5G CGNAT.

How Do I Fix MagicDNS Resolution Failures on Ubuntu 24.04 Clients?

You can fix MagicDNS resolution failures on Ubuntu 24.04 clients by verifying that the systemd-resolved service owns the /etc/resolv.conf symbolic link pointing to 127.0.0.53 and executing tailscale set –accept-dns=true so the local daemon registers the 100.100.100.100 quad-100 resolver and internal mesh.home routing domain. If a minimal VPS image replaced /etc/resolv.conf with a static file, restore dynamic split-DNS integration by running sudo ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf and restarting both systemd-resolved and tailscaled. Confirm split-DNS routing with resolvectl domain tailscale0, which should display ~mesh.home.

Why Does Nginx Drop Headscale Control Plane Connections Every 60 Seconds?

Nginx drops Headscale control plane connections every 60 seconds when the proxy_read_timeout and proxy_send_timeout directives remain at their stock one-minute defaults or when the Connection header mapping omits HTTP/1.1 Upgrade support required by Tailscale’s long-polling Ts2021 Noise protocol and custom DERP WebSocket streams. Double-check that proxy_buffering off; and proxy_read_timeout 86400s; are placed inside the active HTTPS location / block in /etc/nginx/sites-available/headscale.conf, and verify that no upstream load balancer or Cloudflare proxy sits in front of your VPS IP.

Can One Device Connect to Both Tailscale SaaS and Self-Hosted Headscale?

A single Linux, macOS, Windows, or Android client cannot tunnel into both Tailscale SaaS and a self-hosted Headscale control plane simultaneously under one daemon instance, though Tailscale v1.76+ supports instant profile switching via tailscale switch without losing registered node keys on either server. Run tailscale switch --list in your terminal (or tap the account switcher inside the Android app) to toggle between a corporate SaaS tailnet and your private mesh.home Headscale deployment in under two seconds.

Deploying Headscale alongside official Tailscale client binaries is completely legal under the permissive BSD-3-Clause open-source license, because self-hosting your own coordination server replaces proprietary commercial cloud infrastructure altogether rather than circumventing hosted SaaS billing quotas or violating upstream platform terms of service. Both the Headscale server project and the upstream Tailscale client daemon (tailscaled) are legitimate open-source software packages, and the Tailscale client explicitly exposes the --login-server flag to support independent control planes.

Keep two operational boundaries in mind when running Headscale on commercial cloud hosts. First, “Tailscale” and “MagicDNS” remain registered trademarks of Tailscale Inc., so you may not market or resell a self-hosted Headscale service as an official Tailscale commercial offering. Second, if you configure your Headscale VPS to act as a WireGuard internet exit node in addition to a coordination server, review your cloud provider’s Acceptable Use Policy regarding outbound BitTorrent or unauthenticated open proxy traffic to avoid automated abuse suspensions.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.