Homelab · VPN

Headscale: Running Your Own Tailscale Control Server

Headscale is an open-source, self-hosted implementation of the Tailscale control server — the coordination layer that tells Tailscale clients about each other. You run it on your own server, point the ordinary, unmodified Tailscale clients at it, and the network map, keys and policy for your tailnet live on infrastructure you control instead of in Tailscale’s cloud. That is a narrower promise than “self-hosted Tailscale”, and this guide keeps it narrow on purpose: what Headscale replaces, what it pointedly does not, the relay catch almost every pitch omits, and who the trade actually suits. The current release is v0.29.7, from October 30, 2026.

Published Nov 23, 2026

What Headscale replaces — and what it never touches

A Tailscale network has two planes. The control plane registers nodes, exchanges their public keys, assigns tailnet IP addresses, distributes DNS settings and policy, and hands out the map of relay servers. The data plane is the traffic itself: direct, peer-to-peer WireGuard between your devices whenever NAT traversal succeeds. Headscale reimplements only the control plane. Your files and streams never pass through it — when a direct connection fails, traffic relays through a DERP server instead, and even then the relay forwards WireGuard ciphertext it cannot read.

The clients are the official Tailscale clients for Linux, Windows, macOS, iOS, Android and the BSDs, pointed at your server’s URL — tailscale up --login-server https://your-server on the command line, with documented extra steps for the mobile and Apple clients. There is no forked client and no custom app to trust. Headscale itself is a single Go binary, BSD-3-Clause licensed, and it is not a Tailscale Inc. product: the project’s own README disclaims any association, and Tailscale describes it as an independent, community-maintained project outside its supported product — while noting that it employs the lead maintainer, who is permitted to contribute. Two design limits follow from its scope: it serves a single tailnet by design, aimed at personal use and small organizations, and with no policy file loaded, every node can reach every other node — access control is something you configure, not a default you inherit.

What a deployment actually requires

Headscale wants a server with a public IP address — dual-stack IPv4 and IPv6 is recommended — with HTTPS on TCP 443, a current Linux or BSD system, a dedicated headscale user, configuration at /etc/headscale/config.yaml and its data, including the SQLite database and private keys, under /var/lib/headscale. SQLite is the documented database; PostgreSQL support in the shipped configuration is described as legacy and maintenance-mode, and is actively discouraged, so do not present the two as equals when you plan. TCP 80 is needed publicly only if you use the built-in Let’s Encrypt flow; the metrics port, 9090, and the gRPC port are for local or carefully controlled administration and should never be exposed to the internet.

The official install routes are the release binaries and the Debian and Ubuntu packages. Containers need a clear label here: the project builds Docker images but states plainly that it does not officially support deploying Headscale with Docker, and its documentation treats reverse-proxy setups as community-written patterns rather than a first-class topology — WebSocket and protocol-upgrade behavior behind a proxy is where those setups usually bite. Community Compose files are everywhere and many work well; they are community-supported, and this guide will not pretend otherwise. There is also no built-in web administration interface. Management is the headscale command line — creating users, issuing pre-authenticated keys, listing and registering nodes — plus the configuration and policy files. Third-party web interfaces exist as community projects; they are unofficial add-ons, not part of the system.

Version discipline matters more than usual with a control server. Headscale v0.29.7 is a security release, fixing findings from external scanning and urging two upgrades together: Headscale to 0.29.7 and Tailscale clients to v1.104.4 or newer, especially for anyone using Tailscale SSH. The 0.29 line requires Tailscale clients of at least v1.80.0, and the project aims to support roughly the last ten client releases. Upgrades are meant to be walked one minor version at a time, taking the latest patch of each step and reading the changelog — skipping versions is not a supported shortcut, and very old databases have lost their migration paths entirely in recent releases.

Supported, and not supported

CapabilityHeadscale status
Node registration — web flow, pre-auth keys, OIDC sign-inSupported
MagicDNS, split DNS, search domains, extra recordsSupported
Subnet routers and exit nodes, with auto-approversSupported
Tailscale SSH, including check modeSupported — and the 0.29.7 security notes single SSH users out for prompt updating
Taildrop and Taildrive file sharingSupported
Policy — ACLs and the newer Grants, tags, node attributesSupported, with limits: OIDC group membership cannot be used in policy, device posture checks and IP sets are not implemented, and only some autogroups exist
Tailscale Funnel — exposing a local service to the public internetNot supported
Tailscale Serve — serving a service to your tailnet over HTTPSNot supported; run your own reverse proxy on the node instead
Network flow logsNot supported
Web administration consoleNone — command line and files only, unless you add an unofficial community interface

The general rule behind the table: anything that lives in Tailscale’s cloud console rather than in the client protocol — the hosted admin surfaces, log streaming, vendor integrations, a support contract — is not replaced by Headscale, because Headscale only speaks the protocol. If your setup leans on Funnel or Serve, Headscale is not a drop-in answer today, whatever else appeals about it.

The DERP catch: whose relays carry your fallback traffic

Here is the fact that “fully self-hosted Tailscale” pitches leave out. A stock Headscale install hands clients the standard DERP map, which points at Tailscale Inc.’s free-to-use public relay servers. Your control plane is yours, but when two of your devices cannot connect directly, their encrypted fallback traffic still transits Tailscale’s infrastructure. For many people that is an acceptable trade — the relay sees ciphertext, not content — but it should be a chosen trade, not a discovered one.

Headscale ships its own DERP server, disabled by default. Enabling it adds your relay to the map alongside Tailscale’s regions, which already removes the dependency for most fallback cases. Going fully independent means setting derp.urls: [] so the default map is never loaded and only your embedded relay is offered — and Headscale’s own documentation warns that this creates a single point of failure that can hamper connectivity, advising you to prove the embedded relay works before cutting the public ones loose. Custom DERP maps, extra regions of your own, and disabling individual public regions are all supported for setups in between. One failure mode is worth knowing: if a DERP source fails to load, it is logged as a warning and skipped, so a relay can quietly vanish from your map — check the logs after configuration changes.

Who should bother

Headscale earns its keep for a specific reader: someone who wants Tailscale’s polished clients and WireGuard mesh but does not want a third party holding their network’s map and key metadata, who already runs an always-on server with a public address, and who is comfortable with a command line, a YAML configuration and a policy file. It also removes per-user fees and user caps for a small group — though hosted Tailscale’s free Personal tier covers most households at no cost with no server to patch, so for most people this is a control decision, not a money decision. It is the wrong tool if you use Funnel or Serve, want a web console, need policy driven by your identity provider’s groups, or cannot commit to keeping a public-facing server updated — an unpatched control server, in a cycle where the current release is a security release, is a worse position than hosted Tailscale ever put you in. One scaling note for larger plans: Headscale recomputes the full peer map for every node on each relevant change, so many frequently roaming phones and laptops are the expensive pattern, while many static servers are cheap. The project publishes no hard device cap, and neither will this guide.

Official documentation and references

Frequently asked questions

Is Headscale made by Tailscale?

No. Headscale is an independent, open-source project (BSD-3-Clause) that reimplements the Tailscale control server; its README disclaims association with Tailscale Inc., and Tailscale describes it as community-maintained and outside its supported product. Tailscale does employ the lead maintainer, who is permitted to contribute — which is a relationship worth stating precisely, and not the same as the product being official or supported.

Does my traffic pass through the Headscale server?

No. Headscale is the control plane only: registration, key exchange, IP assignment, DNS and policy. Traffic between nodes is direct peer-to-peer WireGuard whenever NAT traversal succeeds. When a direct path fails, traffic relays through DERP servers — as end-to-end encrypted ciphertext the relay cannot read.

Is a stock Headscale install completely independent of Tailscale?

Not quite. By default, Headscale serves clients the standard DERP map pointing at Tailscale’s public relay servers, so fallback traffic uses Tailscale infrastructure. Enabling Headscale’s embedded DERP server adds your own relay, and setting derp.urls to an empty list removes the public relays entirely — at the cost of a single point of failure, which the project documentation itself warns about.

Can I use Tailscale SSH, Funnel and Serve with Headscale?

SSH yes; Funnel and Serve no. Tailscale SSH, including check mode, is on the project’s supported list — and the v0.29.7 security release specifically urges SSH users to update both Headscale and their clients (to v1.104.4 or newer). Funnel and Serve are on the not-supported list, as are network flow logs; for Serve-style publishing you run your own reverse proxy on the node.

Can I just run Headscale in Docker behind my reverse proxy?

You can, and many people do — but the project states it does not officially support Docker deployments, and its reverse-proxy documentation is community-written. Label those setups as community patterns in your own notes, expect the WebSocket and protocol-upgrade behavior behind a proxy to be the fragile part, and do not mistake a working community Compose file for a supported topology.

Which versions should I run?

Headscale v0.29.7 (October 30, 2026) is the current release and a security release. The 0.29 line requires Tailscale clients of at least v1.80.0, and the 0.29.7 notes recommend clients at v1.104.4 or newer. Upgrade Headscale one minor version at a time, taking the latest patch release of each step and reading the changelog first.

Related guides