Security13 min read•Updated November 2026

VPS Hosting for Headscale

Quick answer

Headscale is an open-source implementation of the Tailscale coordination server. On a VPS with a domain name and HTTPS, it registers devices, distributes WireGuard keys, enforces your ACL policy and provides MagicDNS, while devices use the official Tailscale clients pointed at your server's URL. Install the Headscale binary or container, configure server_url, TLS and the database, create users and pre-auth keys, write a policy file, and optionally run your own DERP relay. It suits teams wanting a self-hosted mesh VPN; it supports a single tailnet and lacks some of Tailscale's commercial features.

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

IncludedNot included or different
Device registration and key exchangeSingle tailnet per server
Users, pre-auth keys, tagsNo hosted admin web UI by default (community UIs exist)
ACL policy enforcementSome newer Tailscale features may lag behind
MagicDNS and split DNSYou run upgrades, backups and availability
Exit nodes and subnet routesCommercial 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

  1. Install Headscale from the project's packages or run its container image.
  2. Edit the configuration: server_url, listen address, TLS settings, IP prefixes for the tailnet, database path and DNS options.
  3. Run it as a systemd service and check it is reachable over HTTPS.
  4. Create users with the Headscale CLI.
  5. Generate pre-auth keys for devices, or register devices interactively.
  6. 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

UseSuggested plan
Headscale for tens to hundreds of devices2 vCores / 8 GB
Headscale plus DERP relay, exit node and monitoring4 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.

SkyRainCloud 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.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — AMD28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthWebsites, small APIs, bots, staging and VPN serversOrder
VPS 2 — AMD416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,299/monthWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
VPS 3 — AMD832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,499/monthProduction databases, high-traffic sites, multi-container appsOrder
VPS 4 — AMD1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,899/monthLarge production workloads, SaaS platforms, analytics, in-memory cachesOrder

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.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — Intel28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthBusiness websites, small apps, scheduled jobs and botsOrder
VPS 2 — Intel416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,169/monthBusiness software, mid-size databases, several sites on one serverCheck stock
VPS 3 — Intel832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,249/monthERP/CRM stacks, heavier databases, multiple production appsCheck stock
VPS 4 — Intel1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,299/monthHigh-memory workloads and consolidated production serversCheck stock

Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.

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.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning