An open source, self-hosted implementation of the Tailscale control server
open sourceBSD-3-Clauseself-hostablefree
Headscale is an open source, self-hosted implementation of the Tailscale control server: it exchanges WireGuard keys, assigns IP addresses and enforces access rules for the official Tailscale clients, so you can run a Tailscale-style mesh VPN without Tailscale's hosted coordination service. It implements a single tailnet for personal use or a small open-source organisation, with MagicDNS and split DNS, subnet routers and exit nodes, ACLs and grants, Tailscale SSH, Taildrop, an embedded DERP relay and OpenID Connect sign-in. It runs on Linux or BSD with SQLite, is configured from the CLI and is BSD-3-Clause licensed; it is not associated with Tailscale Inc.
Ways to install
On your own server
Package managers
Problems it solves
- use the Tailscale apps on my devices but run the coordination server myself
- self-host a mesh VPN for my homelab so I don't depend on a third-party control plane
- connect my laptop, phone and home servers into one private network without opening ports
- reach my whole home LAN from anywhere through a subnet router
- route my traffic through a home server as an exit node when I'm on public Wi-Fi
- give every device a name I can reach with MagicDNS on my self-hosted tailnet
- restrict which of my devices can reach which with ACLs I control
- let people join my private network by signing in with our OpenID Connect provider
- run my own DERP relay so connections that can't go direct stay on my infrastructure
- avoid per-user pricing for a small open-source project's private network
Features
- node registration by web authentication or pre-authenticated keys
- MagicDNS, global and restricted nameservers (split DNS), search domains and extra DNS records
- Taildrive and Taildrop file sharing
- subnet routers, exit nodes and route filtering
- dual stack IPv4 and IPv6
- ephemeral nodes
- embedded DERP server and peer relays
- ACL and grants policies, auto approvers, node attributes and Tailscale SSH
- node registration with OpenID Connect single sign-on
- DEB packages for Debian and Ubuntu, standalone binaries, container images and a NixOS module
View 1 more
- gRPC interface for remote control
Limitations
- Supports only a single tailnet: it is scoped for personal use or a small open-source organisation5
- Doesn't support Tailscale Funnel or Serve6
- Has no built-in web interface: community web UIs are available7
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has single sign-on | plan not known |
Alternatives
The same job
These do what Headscale does.
- Nebula A scalable overlay networking tool with a focus on performance, simplicity and security
- EasyTier A simple, secure, decentralized mesh VPN with WireGuard support
- NetBird Open source zero trust networking on a peer-to-peer WireGuard network
- Tailscale Private WireGuard networks made easy
- OpenVPN Access Server Fast and Easy Zero-Trust VPN Fully in Your Control
- Pritunl Enterprise Distributed OpenVPN WireGuard and IPsec Server
