Self-hosted app·VPN servers and mesh networks
Headscale on a VPS in the Swiss Alps.
Headscale VPS in the Swiss Alps: 2 vCPU, 2 GB RAM. Ports, embedded DERP, TLS and a Debian 13 install, under Swiss law.
- Tailscale clients
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port10 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $62.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 2 vCPU, 2 GB RAM
- 80 GB NVMe local storage
- 10 TB transfer on a 1 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/07
The short answer.
Yes. Headscale is a single Go binary with an SQLite database behind it, and our smallest cloud VPS, Cloud VPS Starter, is enough for it: 2 vCPU, 2 GB RAM, 80 GB of local NVMe, 10 TB of monthly transfer and a 1 Gbps port for 6.99 USD a month, in ALP1 in the Swiss Alps. Order it with Debian 13 preselected, install the official package, and the server is ready for its first node after a handful of commands.
The detail that decides whether it works is HTTPS on port 443 under a hostname of its own. The Tailscale client assumes port 443 in certain situations, and the Headscale maintainers strongly recommend it for production. When a self-hosted tailnet half-works, a non-standard port or a reverse proxy in front of Headscale is the first thing we would check. Give it its own small VM and its own name, and that whole class of problem does not arise.
02/07
What Headscale is, and what it keeps.
Headscale is an open-source, self-hosted implementation of the Tailscale control server, released under the BSD-3-Clause licence and maintained by Kristoffer Dalby and Juan Font. Your laptops, phones and servers keep the official Tailscale clients; only the coordination service they log in to changes. The scope is deliberately narrow: a single tailnet, which the project describes as suited to personal use or a small open-source organisation. Its FAQ says plainly that it is not enterprise software and that performance is not a design goal, while leaving commercial use open, and a PME with a few dozen staff and some servers fits inside that scope comfortably.
The current stable release is 0.29.7, published on 30 October 2026. It is a security release: none of the fixes are rated critical, but some could be used to knock Headscale over, and the maintainers ask for Tailscale clients at 1.104.4 or newer alongside it. The oldest client the 0.29 series accepts is 1.80.0.
Be exact about what sits on the server. Your traffic does not: nodes build WireGuard tunnels to each other, and the control server only distributes the map. What it does hold is that map, namely users, device names, node public keys, tailnet addresses, the public endpoints each device reports, and your access policy. For a company this is a fairly complete record of who works from which network, and it is the real reason to care where Headscale runs.
Our servers are in Switzerland and answer to Swiss law. We act only on orders from competent Swiss authorities, and a request from abroad has to pass through one of them first.
03/07
Where the server sits, legally.
ALP1 is in Switzerland, so the revised Federal Act on Data Protection applies; it has been in force since 1 September 2023. In its review of 15 January 2024 the European Commission confirmed that Switzerland still ensures an adequate level of protection, which lets personal data move from the EU to Switzerland without additional safeguards. A Basel fiduciary whose staff commute from Lörrach and Saint-Louis can keep the device records of those EU residents in ALP1 without extra transfer paperwork.
A foreign authority reaches us through mutual legal assistance, by way of a Swiss authority. As of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia, none with Switzerland. The revision of the Swiss surveillance ordinance (VÜPF) put to consultation in January 2025 is not in force, and the Federal Council has announced a second consultation. We rent you the server; the tailnet on it is yours to run. Our page on hosting in Switzerland covers how a request actually travels.
Two defaults matter if keeping metadata at home is the point. Headscale instructs clients to stop sending logs to Tailscale Inc. (logtail.enabled: false), but a client only receives that instruction after it first connects; start tailscaled with TS_NO_LOGS_NO_SUPPORT=true to opt out from the beginning. And unless you change derp.urls, clients still get Tailscale's public DERP relays in their map. Relayed packets remain WireGuard-encrypted between the two nodes, so a relay sees addresses and volumes, not content.
04/07
Requirements and sizing.
Headscale wants a public IP address (dual-stack recommended), a reasonably modern Linux or BSD, and a dedicated local user. The ports depend on what you enable:
| Port | Public | Used for |
|---|---|---|
| 443/tcp | yes | HTTPS for clients; also carries the embedded DERP relay |
| 80/tcp | yes | Let's Encrypt HTTP-01 challenge only |
| 3478/udp | yes | STUN, only with the embedded DERP server |
| 50443/tcp | only if used | gRPC, to drive the CLI from another machine |
| 9090/tcp | no | metrics and debug endpoint |
Every VPS comes with one IPv4 address.
CPU is the resource to think about, and the FAQ is candid about why. Whenever something in the tailnet changes, Headscale recomputes the network map for every node; between such events it sits close to idle. A few hundred servers that never move are cheap to coordinate, while eighty laptops hopping between home, office and train Wi-Fi keep the processor busy. If you expect many roaming devices and frequent policy edits, Standard doubles the CPU and memory for 12.99 USD. Stay on SQLite either way: the project recommends it, PostgreSQL is in maintenance mode, and the database choice has little effect on performance.
The keys, the policy and the SQLite file all live in /var/lib/headscale, so most of the 80 GB is room for dated backups. Coordination traffic is small; relayed traffic through an embedded DERP server counts against the transfer allowance. As a theoretical figure, 10 TB a month is about 31 Mbit/s averaged around the clock, far more than a relay carrying only what direct paths cannot. Our own estimates from distance put ALP1 about 2 ms from Zurich and 6 ms from Frankfurt; those are estimates, not measurements.
| Cloud VPS Starter | Cloud VPS Standard | |
|---|---|---|
| vCPU | 2 | 4 |
| RAM | 2 GB | 4 GB |
| Local NVMe | 80 GB | 160 GB |
| Transfer per month | 10 TB | 15 TB |
| Port | 1 Gbps | 1 Gbps |
| Price | 6.99 USD/mo | 12.99 USD/mo |
05/07
Deploying it with us.
Order the VPS through the Debian 13 deploy link; the official packages support Debian 12 or newer and Ubuntu 22.04 or newer. Point an A record (and an AAAA record if you have IPv6) for a name such as hs.example.com at the server. Pick a different domain for MagicDNS, because Headscale requires base_domain to differ from the server_url domain.
Install the release package:
dpkg --print-architecture # usually amd64
HEADSCALE_VERSION="0.29.7"
HEADSCALE_ARCH="amd64"
wget --output-document=headscale.deb \
"https://github.com/juanfont/headscale/releases/download/v${HEADSCALE_VERSION}/headscale_${HEADSCALE_VERSION}_linux_${HEADSCALE_ARCH}.deb"
sudo apt install ./headscale.debThe package creates the headscale user, a default /etc/headscale/config.yaml and a tightly sandboxed systemd unit. That unit grants CAP_NET_BIND_SERVICE, so Headscale binds ports 80 and 443 itself without running as root. Then edit the keys that matter:
server_url: https://hs.example.com
listen_addr: 0.0.0.0:443
metrics_listen_addr: 127.0.0.1:9090
acme_email: ops@example.com
tls_letsencrypt_hostname: hs.example.com
tls_letsencrypt_cache_dir: /var/lib/headscale/cache
tls_letsencrypt_challenge_type: HTTP-01
derp:
server:
enabled: true
stun_listen_addr: "0.0.0.0:3478"
ipv4: <public IPv4 of the VPS>
ipv6: <public IPv6, or delete this line>
node:
expiry: 180d
dns:
base_domain: tailnet.example.com
nameservers:
global:
- <the resolver you have chosen>The example file ships with documentation addresses (198.51.100.1, 2001:db8::1) under derp.server; replace them, or clients are told to reach a relay that does not exist. Default node expiry is zero, meaning keys never expire; 180 days matches the Tailscale service and makes a lost laptop stop being trusted on its own schedule. The default resolvers are Cloudflare's, which you may not want every device in the company to use. Validate, restart and check:
sudo headscale configtest
sudo systemctl restart headscale
curl https://hs.example.com/healthIf you run a firewall on the server, open 443/tcp, 80/tcp and 3478/udp in it, plus SSH from your own addresses. Then create a user and register the first node:
sudo headscale users create office
sudo headscale users list # note the user ID
sudo headscale preauthkeys create --user <USER_ID>
# on the client
tailscale up --login-server https://hs.example.com --authkey <KEY>A pre-auth key is valid for one hour and a single use by default.
The project publishes container images (ghcr.io/juanfont/headscale) but does not officially support Docker deployments, and the maintainers do not use reverse proxies themselves, so both are community territory. On a VM that does nothing else, the .deb and its systemd unit are fewer moving parts. If port 443 is already taken by a web stack, a second Starter costs less than an afternoon spent on proxy upgrade headers.
Before each upgrade, stop the service and copy /etc/headscale and /var/lib/headscale, because migrations run on start. Go one minor version at a time on the latest patch (0.27 → 0.28 → 0.29), and read the notes: 0.29.0, for instance, changed * in ACLs to mean the tailnet ranges rather than every IP. Keep the copies off the VM; restic into an object storage bucket in ALP1, from 1.99 USD a month for 250 GB, is the obvious pairing.
06/07
What it costs.
| Billing | Cloud VPS Starter |
|---|---|
| Monthly | 6.99 USD |
| Quarterly (10% off) | 18.87 USD per quarter (calculated: 3 × 6.99 × 0.9) |
| Yearly (25% off) | 62.99 USD |
Headscale has no licence fee, so the VPS is the whole bill whether the tailnet has five users or fifty. The plan includes an AMD EPYC host, local NVMe, DDoS protection, full root access, a VNC console and one IPv4 address (extra IPv4 at 2 USD a month), under a 99.9% uptime SLA with service credits. Full figures are on the pricing page.
You pay from a balance kept in US dollars and topped up in XMR, BTC, USDT, ETH or LTC. It is no-KYC hosting: an email address is enough. Business customers paying in crypto are welcome, top-ups of 50 USD or more earn a bonus, and the unused part of a top-up is refundable within 14 days. The honest downside for a PME is the other side of the same coin: there is no card or bank transfer option, so whoever handles accounts payable needs to be comfortable sending crypto.
07/07
Limits and acceptable use.
A Headscale server, an exit node and a DERP relay are all allowed on every plan. Put the exit node on a second VPS, not on the Headscale machine: the maintainers state that running the client on the server can break subnet routers, relays and MagicDNS, and they do not support it. Traffic leaving an exit node leaves from our address but is your responsibility, and complaints about it are forwarded to you.
A DMCA notice has no direct legal effect in Switzerland. We forward complete complaints to the customer, who must remove the content or justify it, and we act on a decision of a competent Swiss authority, or where the content is manifestly unlawful (Swico Code of Conduct Hosting 2025). Five things are refused outright: sexual abuse material; malware, botnets and phishing, which includes a tailnet used as command-and-control; spam and fraud; attacks on other networks; terrorist and extremist content. Keeping the server patched is your job, as is keeping port 9090 and the admin socket private and treating pre-auth and API keys as credentials. The acceptable use policy has the full text; questions go through a support ticket from the client panel.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterRecommendedStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| SummitDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Summit |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions people ask first.
Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.
Does my traffic pass through the Headscale server?
No. Headscale distributes keys, addresses and policy; nodes connect to each other directly over WireGuard. Only packets that cannot take a direct path go through a DERP relay, and they stay encrypted between the two nodes.
Should I enable the embedded DERP server and drop Tailscale's relays?
Enable it, so a relay sits in ALP1 next to your users. Removing Tailscale's map with urls: [] keeps relayed traffic off third-party servers, but leaves one relay as a single point of failure, so test with tailscale debug derp headscale first. The embedded relay also cannot answer captive-portal checks.
Do the iOS, Android and Windows apps work with Headscale?
Yes, the official apps can be pointed at a custom login server, and the Headscale documentation has a page for each platform. With 0.29.x the client must be at least 1.80.0, and 1.104.4 or newer is recommended.
How many devices will Cloud VPS Starter handle?
It depends more on churn than on count: many devices that rarely change are cheaper than a few dozen that roam constantly.
Sources
Every fact on this page, with its source
Checked 2 Nov 2026 unless noted.
Swiss law and authorities
- Revised Federal Act on Data Protection, in force since 1 September 2023fedlex.admin.ch
- Federal Council, VÜPF revision and second consultation (status as of 31 October 2026)admin.ch · status as of 31 Oct 2026
EU and other countries
- European Commission, adequacy decisions; review of 15 January 2024, decision 2000/518/EC in forcecommission.europa.eu
- US Department of Justice, CLOUD Act resources (verified 31 October 2026)justice.gov · verified 31 Oct 2026
Industry, providers and software
- Headscale v0.29.7 release notes, published 30 October 2026github.com
- Headscale v0.29.0 release notes (ACL wildcard change, minimum client 1.80.0)github.com
- Headscale systemd unit (CAP_NET_BIND_SERVICE, sandboxing)github.com
- Headscale example configuration (defaults for node expiry, DNS, DERP, logtail, database)github.com
- Headscale licence (BSD-3-Clause)pkg.go.dev
- Switzerland Hosting cloud VPS catalogue, Cloud VPS Starter and Cloud VPS Standard specifications and pricesSwitzerland Hosting
Other references
- Headscale documentation, overview, design goal and maintainersheadscale.net
- Headscale FAQ (scaling, database choice, Docker, reverse proxies, same-machine client, Tailscale logging)headscale.net
- Headscale requirements and portsheadscale.net
- Headscale official releases and DEB packages, supported distributionsheadscale.net
- Headscale DERP reference (embedded relay, urls: [], limitations)headscale.net
- Headscale TLS and Let's Encryptheadscale.net
- Headscale getting started (users, pre-auth keys, tailscale up)headscale.net
- Headscale upgrade and backupheadscale.net
ALP1·Swiss Alps
Your server in the Alps, ready when you are.
Cloud VPS start at $6.99 a month and are usually set up within minutes of your order.
