Tailscale's clients are open source and excellent, but its coordination server is a hosted service. Headscale lets you run that coordination layer yourself, keeping device registration, keys metadata and access policy on your own infrastructure. Traffic between devices remains end-to-end encrypted WireGuard either way; the control server never sees traffic contents. This guide covers running Headscale reliably on a VPS.
What Headscale Does and Does Not Do
| Included | Not included or different |
|---|---|
| Device registration and key exchange | Single tailnet per server |
| Users, pre-auth keys, tags | No hosted admin web UI by default (community UIs exist) |
| ACL policy enforcement | Some newer Tailscale features may lag behind |
| MagicDNS and split DNS | You run upgrades, backups and availability |
| Exit nodes and subnet routes | Commercial support is not included |
Check the Headscale project's documentation for current feature support before migrating.
Requirements
- A VPS with a public IP.
- A domain name (for example
vpn.example.com) pointing to it. - HTTPS, either Headscale's built-in Let's Encrypt support or a reverse proxy (see our Let's Encrypt guide).
- Persistent storage for the database (SQLite by default).
Installation
- Install Headscale from the project's packages or run its container image.
- Edit the configuration:
server_url, listen address, TLS settings, IP prefixes for the tailnet, database path and DNS options. - Run it as a systemd service and check it is reachable over HTTPS.
- Create users with the Headscale CLI.
- Generate pre-auth keys for devices, or register devices interactively.
- On each device, run the Tailscale client with the login server set to your Headscale URL.
ACL Policy
Write a policy file defining groups, tags and which sources may reach which destinations and ports. Start restrictive: for example, developers can reach staging servers on SSH and HTTP, admins can reach everything, servers tagged tag:prod accept only admin SSH. Keep the policy in version control and review changes like code.
MagicDNS
MagicDNS gives every device a name such as db1.tailnet.example. Configure it in Headscale's DNS settings, and add split DNS entries so internal domains resolve through your private DNS server (see our private DNS guide).
DERP Relays
When devices cannot connect directly, traffic is relayed through DERP servers. Headscale can use Tailscale's public DERP map or your own relays. Running an embedded or separate DERP relay on a VPS in India reduces latency for Indian users whose connections must be relayed. Relayed traffic remains encrypted end to end.
Exit Nodes and Subnet Routes
Devices can advertise exit nodes and subnet routes as with Tailscale; approve them with the Headscale CLI or auto-approvers in the policy. See our exit node guide.
Security and Operations
- Protect the server: SSH keys only, firewall everything except HTTPS and any DERP ports (see our SSH keys guide).
- Use short-lived, single-use pre-auth keys where possible.
- Expire or remove devices that leave.
- Back up the database and configuration; losing them means re-registering every device.
- Upgrade Headscale following release notes, after a backup.
- Monitor availability: if Headscale is down, existing connections usually continue, but new devices and policy changes wait.
Sizing
| Use | Suggested plan |
|---|---|
| Headscale for tens to hundreds of devices | 2 vCores / 8 GB |
| Headscale plus DERP relay, exit node and monitoring | 4 vCores / 16 GB |
Coordination needs little CPU or memory; DERP relays and exit nodes need bandwidth, which an unmetered port provides.
Example: A Self-Hosted Team Network
A development company runs Headscale on a 2 vCore VPS in Mumbai with its own DERP relay. Laptops, CI runners and servers join with the official Tailscale clients; an ACL policy separates staging and production access; MagicDNS names every server; and SSH is closed to the internet on all servers. Nightly backups copy the Headscale database to object storage.
Common Mistakes
- Running without HTTPS or with a mismatched server_url.
- An allow-all policy left from testing.
- Reusable pre-auth keys that never expire.
- No database backups.
- Expecting multi-tailnet or hosted features Headscale does not provide.
In Short
Headscale gives you a self-hosted Tailscale control server. Give it a domain and HTTPS, write a restrictive ACL policy, use MagicDNS, consider your own DERP relay, back up its database and keep it patched. It fits naturally into a zero trust approach.
Migrating From Tailscale's Hosted Service
Moving an existing tailnet to Headscale means re-registering devices with the new login server, recreating your ACL policy in Headscale's format, and re-approving exit nodes and routes. Plan it as a project: export your current policy, set up Headscale and test with a few devices, then migrate groups one at a time while keeping the old tailnet running until everyone has moved. Update documentation and onboarding steps so new staff join the right network.
Management Interfaces
Headscale is managed mainly through its CLI and configuration files. Community web interfaces exist for listing devices, users and keys; if you add one, protect it with login and keep it off the public internet. Many teams manage the policy file through Git with review, which gives an audit trail of access changes. Security controls only help if they keep working, so schedule a short quarterly review: confirm who still has access, apply pending updates, test that backups restore and check that nothing you closed has quietly been reopened by a later change. Document each step as you go, including the reasons for every rule and exception, so colleagues can maintain the setup confidently and auditors or customers can see how access is controlled.
ServoMix Plans for This Workload
Headscale is lightweight: 2 vCores / 8 GB comfortably coordinates hundreds of devices and can also run a DERP relay and an exit node.
AMD EPYC 7C13 VPS
Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| SMX vPro XS (AMD EPYC) | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹420/mo | Websites, small APIs, bots, staging and VPN servers | Order |
| SMX vPro S (AMD EPYC) | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹560/mo | WooCommerce, Node.js/Python backends, Docker Compose stacks, CI runners | Order |
| SMX vPro M (AMD EPYC) | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹840/mo | Production databases, high-traffic sites, multi-container apps | Order |
| SMX vPro L (AMD EPYC) | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹1,120/mo | Large production workloads, SaaS platforms, analytics, in-memory caches | Order |
Intel Xeon Platinum 8269CY VPS
KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| SMX vCore XS (Intel Xeon) | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹270/mo | Business websites, small apps, scheduled jobs and bots | Order |
| SMX vCore S (Intel Xeon) | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,169/month | Business software, mid-size databases, several sites on one server | Check stock |
| SMX vCore M (Intel Xeon) | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,249/month | ERP/CRM stacks, heavier databases, multiple production apps | Check stock |
| SMX vCore L (Intel Xeon) | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,248/month | High-memory workloads and consolidated production servers | Check stock |
Prices are monthly in INR as listed on the ServoMix store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.
Frequently Asked Questions
What is Headscale?
Does Headscale see my traffic?
Do I need a domain for Headscale?
Can I use the official Tailscale apps with Headscale?
Does Headscale support ACLs?
What is a DERP relay?
Can Headscale handle exit nodes?
What happens if Headscale goes down?
Does Headscale support multiple tailnets?
Which plan suits Headscale?
Related Guides
Frequently Asked Questions
What is Headscale?
An open-source implementation of the Tailscale coordination server that works with official Tailscale clients.
Does Headscale see my traffic?
No, traffic between devices is end-to-end encrypted WireGuard; Headscale coordinates keys and policy.
Do I need a domain for Headscale?
Yes, with HTTPS, so clients can reach the server securely.
Can I use the official Tailscale apps with Headscale?
Yes, by setting the login server to your Headscale URL.
Does Headscale support ACLs?
Yes, through a policy file defining groups, tags and allowed connections.
What is a DERP relay?
A relay server used when devices cannot connect directly; you can run your own.
Can Headscale handle exit nodes?
Yes, advertised exit nodes and routes are approved through Headscale.
What happens if Headscale goes down?
Existing connections usually continue, but new registrations and policy changes wait.
Does Headscale support multiple tailnets?
It is designed around a single tailnet per server.
Which plan suits Headscale?
2 vCores / 8 GB; 4 vCores / 16 GB if it also runs DERP and an exit node.
Your feedback helps us continuously improve ServoMix guides.
Know someone who may find this guide useful?
