Migrate from Tailscale to Headscale

Headscale can serve the same Tailscale clients for a single tailnet, but ACL, identity and feature gaps decide whether the move is clean. This outline plans the export, cutover and rollback.

On this page

Migrate from Tailscale to Headscale: what the move involves

If your tailnet runs on Tailscale's hosted control plane and you want the coordination server under your own control, Headscale keeps the Tailscale clients but replaces the control server. That means the move is policy translation, device re-registration and a feature review, not a client swap. The work usually falls to platform or network engineers, working with the identity owner who runs the OIDC provider or user directory, because login, group membership and device ownership all depend on that system. The short answer on effort and risk is that the client side is the easy part; the risk sits in ACLs, tags, routes and exit nodes that behave differently once the control server changes, so plan a parallel test tailnet before cutover.

Start by exporting what you can from Tailscale: the ACL policy file, the device and tag inventory, and DNS and route settings, through the API or the Terraform provider. Then check each construct against the Headscale features list. Headscale supports ACLs, grants, tags, subnet routers, exit nodes, MagicDNS, split DNS and pre-authenticated keys, but it supports only some autogroups, and OIDC groups cannot be referenced in ACLs. Any rule that depends on an identity provider group needs a different expression, such as explicit users or tags, before it can move. Confirm the exact ACL syntax your version accepts with the Headscale documentation for the release you deploy.

Re-registration is the step that changes the most. Devices can join through pre-authenticated keys or OIDC login, and the choice affects who owns each node and how offboarding works. Rebuild tags, advertised routes and exit node approvals in Headscale rather than copying them blindly, and confirm each subnet router still advertises the same prefixes. Decide on DERP early: Headscale embeds a DERP server, so ask whether your devices can reach it from every network they use. Drop or replace features with no Headscale equivalent, such as Tailscale-hosted services you depend on, before cutover, and record that list so the business owners accept the gaps in writing.

Which Tailscale capabilities map cleanly to Headscale and which need rework

This table maps the Tailscale features a tailnet typically depends on against Headscale's documented feature set. Read each row as clean, needs rework, or gap, and confirm the gap rows against the current Headscale documentation before you set a cutover date, because the feature list changes between releases.

Tailscale capabilityHeadscale statusWhat to check before cutover
ACLs (policy file)Needs reworkHeadscale supports ACLs, but export the policy and test each rule in a staging tailnet. Check every selector and group reference, not only the rule count.
GrantsNeeds reworkHeadscale lists grants as supported. Confirm which grant fields your policy uses, since partial coverage would break access silently.
TagsCleanTags are listed as supported. Reapply them to each node after re-registration, because tag ownership is not carried over by the client.
Subnet routersNeeds reworkAdvertised routes are handled by the control server. Re-approve each route on the new server and confirm the router node still forwards traffic.
Exit nodesNeeds reworkExit nodes are listed as supported. Re-approve exit node status and test DNS and traffic from a client before moving the rest of the fleet.
MagicDNS and split DNSCleanBoth are listed as supported. Compare the resolver and search domain settings with your current tailnet, since the names and split zones must match.
Tailscale SSHNeeds reworkListed as supported, but SSH rules depend on the policy and user mapping. Test every login path, including root and service accounts.
Pre-authenticated keysCleanListed as supported and the usual way to re-enroll devices in bulk. Set expiry and reusability limits to match your onboarding process.
Ephemeral nodesCleanListed as supported. Confirm that CI runners and short-lived hosts still register and expire as they do today.
TaildropCleanListed as supported. Test file transfer between two migrated devices, and between migrated and unmigrated devices during the overlap period.
OIDC groups in ACLsGapHeadscale's documentation says OIDC groups cannot be used in ACLs. Confirm this with the current docs, and plan user-based rules instead if it still applies.
AutogroupsGapAutogroups are only partly supported. Confirm each autogroup your policy uses, and replace unsupported ones with explicit users or tags.
DERP and peer relaysNeeds reworkHeadscale includes an embedded DERP server and peer relays. Decide whether to run your own DERP or keep public relays, and test connections across NAT.

What exports, what must be rebuilt and which integrations change

Some of the tailnet can be carried across, but most of the surrounding integrations are not portable. Plan the cutover around what you can export, what you must recreate by hand, and which systems call the Tailscale API directly.

ACL policy file

The ACL policy is the main portable input. Export it from the Tailscale admin console or the API, then review it against Headscale's supported features before loading it. Headscale supports ACLs and grants, but not every construct in a hosted policy will carry over. Check group membership rules, autogroups and tag owners line by line, since autogroups are only partly supported and OIDC groups cannot be referenced in ACLs. Expect to rewrite any group-based rule as explicit user rules.

Headscale features

Device and tag inventory

Export the list of machines, their owners, tags and advertised routes so you know what must re-register. Device identities do not move with the policy file. Each node enrolls again against Headscale and receives a new node key and IP address, so DNS names, firewall exceptions and any allowlists that reference Tailscale IPs must be updated. Record tags now and rebuild them on the Headscale side before the first client reconnects.

Export paths: API and Terraform

The Tailscale API and the Tailscale Terraform provider are the documented ways to read policy, devices, DNS and route settings out of a hosted tailnet. Use them to script a snapshot rather than copying settings from the console by hand. Confirm with Tailscale which endpoints and provider resources cover your tenant's settings, because some configuration (such as device approval and key expiry state) may need to be recorded separately.

User identities through OIDC

Headscale supports basic OIDC login and updates user profile fields from the identity provider. Users do not re-create their identities, but their Headscale user records are new and must be linked to the correct IdP accounts during enrollment. Confirm how your IdP's subject claims map to Headscale users before cutover, and test a login from each client platform, because the group claims you rely on in Tailscale may not drive access in Headscale.

SSO and SCIM group sync

Any SCIM or SSO group sync that populates Tailscale groups must be rebuilt, since Headscale does not consume OIDC groups in ACL rules. Access decisions that depended on group membership will need an alternative, such as explicit user lists maintained by a script that reads your directory. Document who owns that script, how often it runs and how removals are enforced, because a departed user must lose access on the Headscale side too.

Logs, monitoring and API tooling

Tailscale's hosted service provides logging and admin visibility that your self-hosted control server does not inherit. Rebuild log collection from the Headscale server, add monitoring for its availability and certificate state, and set alerts on failed enrollments. Inventory every script, dashboard or CI job that calls the Tailscale API, because each one must be repointed to Headscale's API or retired. Headscale's README also states it does not support running behind reverse proxies or in containers, which affects how you deploy this layer.

Headscale README

The cutover sequence from inventory to decommission

This sequence moves a tailnet from Tailscale's hosted coordination server to a self-hosted Headscale control plane in controlled stages, so each change is tested and reversible before the Tailscale tailnet is retired. Each step produces a written artifact that gates the next one.

  1. Inventory devices, tags, routes and policy

    Record every device in the tailnet with its owner, operating system, tags, advertised subnet routes, exit node settings, MagicDNS and split DNS entries, and any Tailscale SSH rules. Export the ACL policy file and check it against the features Headscale documents, since some grants and autogroup behavior are only partly supported and OIDC groups cannot be referenced in ACLs. Owners of the platform and the network team sign off on the inventory. Done means you have a complete list of devices and a feature gap list that names every item to rebuild, change or drop before cutover.

  2. Translate the policy for Headscale

    Convert the exported ACL into a Headscale policy, replacing any group that depends on OIDC claims with explicit user lists and rewriting autogroup references that Headscale does not fully support. Review each rule against the original intent with the people who own the access it grants. The output is a translated policy file, a short list of rules that were narrowed or removed, and the owner's written approval for each change. Do not apply the policy to production yet.

  3. Run a pilot tailnet on Headscale

    Stand up a Headscale server inside your own infrastructure, reachable from the pilot devices, and enroll a small set of non-critical devices using pre-authenticated keys or OIDC login. Rebuild one subnet router and one exit node, if you use them, and test MagicDNS, SSH access and the ACL rules against known allowed and denied flows. Confirm which DERP option you run, either the embedded DERP server or an external one, and verify that devices can reach each other through it. The output is a pilot test record listing each test, its result and any defect found. Only proceed when every denied flow is blocked and every allowed flow works.

  4. Document the rollback runbook

    Before any production device moves, write a runbook that states how to return each device to the Tailscale tailnet, including the commands to log out of Headscale, the order in which subnet routers and exit nodes are restored, and the DNS settings to revert. Name the person who can authorize a rollback and the evidence that triggers one. Keep the Tailscale tailnet active during this step. The output is a reviewed rollback runbook that the operations team has walked through once on a pilot device.

  5. Run both control planes in parallel

    Keep the Tailscale tailnet and the Headscale network available at the same time, and move devices in small groups while watching connectivity, DNS resolution and access logs. Confirm that devices on each side can still reach the services they need, including any traffic that crosses between the two networks during the transition. Track every device as migrated, pending or rolled back. The output is a migration tracker with the status of each device and a log of any rollback, which must be empty of unresolved issues before the next group moves.

  6. Cut over by user or device group

    Move users or device groups in the order defined in the inventory, starting with the least critical group and ending with the systems that depend on subnet routes or exit nodes. For each group, re-register devices on Headscale, verify access to the resources that group uses, and confirm that the policy applied matches the translated file. Record the verification result for each group. The output is a signed cutover record per group showing the verification checks passed and the rollback option that remains available.

  7. Decommission the Tailscale tailnet

    After every group has run on Headscale for a period agreed with the owners, remove devices from the Tailscale tailnet, revoke any remaining auth keys, and delete unused tags and routes. Export a final copy of the Tailscale configuration and store it under your retention policy before the account is closed or downgraded. Confirm with the billing owner that the Tailscale subscription is ended. The output is a decommission record listing the removed devices, revoked keys, the stored configuration export and the date the tailnet was closed.

How the parallel run and cutover phases fit together

The path starts with an inventory of the tailnet, including the ACL policy, tags, routes and exit nodes, which is then used to build a pilot on the Headscale control server. Both networks run side by side during the parallel run, with the Tailscale tailnet and the Headscale control server drawn as separate trust boundaries. Cutover moves devices only when the pilot checks pass, and a rollback decision returns devices to the Tailscale tailnet if they fail. Check that each device is enrolled in exactly one control plane at any time.

Phases from inventory through cutover and rollback, with the two control planes as separate boundaries.

What drives the cost and duration of a Headscale migration

This table breaks a Tailscale to Headscale move into the components that set its cost and calendar time, and shows which parts are paid once and which recur. Read each row as a question to answer in your own environment before you ask for a quote. The main takeaway is that policy translation, identity work and running the control plane usually matter more than the server itself.

DriverWhy it moves cost or timeHow to keep it down
Policy complexity, tags and groupsEach Tailscale ACL rule, tag owner and group must be read, translated and tested, and OIDC groups cannot be used in Headscale ACLs, so group-based rules need a redesign.Reduce rule count and tags before export, and map each rule to a named user or tag that Headscale supports.
Number of devices and platformsEvery device must re-register, and each OS and client version adds a separate test path, including the GUI clients that Headscale does not provide.Group devices by platform, pilot one per platform, and confirm which client builds your fleet will use.
Identity provider workHeadscale supports basic OIDC login and profile updates, but group claims are not usable in ACLs, so the identity setup and user mapping need their own review.Decide early whether users map to Headscale users directly and document the OIDC settings before the pilot.
Routes, subnet routers and exit nodesAdvertised routes and exit nodes must be approved and rebuilt on the new server, and each network path needs a check after cutover.Inventory every route and exit node from the existing tailnet and test each one in a pilot segment.
DERP and relay choicesHeadscale includes an embedded DERP server and peer relays, but relay placement affects latency, NAT traversal and who operates the relay path.Confirm the relay design against your network zones before cutover, and avoid changing relays and control servers in the same window.
Control server hosting and monitoringThe server must be patched, backed up and kept reachable, and the project does not support running it behind reverse proxies or in containers, which constrains the hosting design.Price the hosting and monitoring design with the provider, and confirm the supported deployment method against current documentation.
Testing and features to dropEach feature with no Headscale equivalent needs a decision, and each access rule needs a negative test as well as a positive one.Keep a written list of dropped features and sign-off from the owners of the affected services.
One-time versus recurring workOne-time work covers translation, pilot and cutover. Recurring work covers upgrades (for example, releases such as v0.29.5), on-call response and backups.Ask the quote to split these costs and state who handles upgrades and out-of-hours response.

How the migration differs by tailnet size and starting point

A small personal tailnet usually has a handful of devices, one owner, few or no tags and a simple or default ACL policy. This is the situation Headscale's documentation is built around, so the move is typically the most straightforward. The work is mostly re-registering each device against the new server and confirming that name resolution and direct connectivity still work.

  • Simpler: one user namespace, no tag ownership to rebuild, and few policy rules to translate.
  • Simpler: pre-auth keys or a manual registration step can enroll each device in a few minutes of attention per machine.
  • Harder: the control server, its database and its TLS certificate become your responsibility, even at this size.
  • Harder: mobile and Windows or macOS GUI clients are still Tailscale's own applications, so confirm they accept a custom control URL on your platforms.
  • Watch for: a single server failure takes down new enrollments and key rotation, so keep a backup of the database before cutover.

Before cutting over, confirm with the Headscale release notes which client versions you need and test one device end to end.

What usually goes wrong when moving a tailnet to Headscale

Most failed Headscale cutovers come from assumptions carried over from the hosted service: that identity groups flow into policy, that routes and exit nodes work because the clients see them, and that the control server can sit wherever the rest of the infrastructure sits. Each risk below has a check to run before any production device moves.

Assuming OIDC groups work in ACLs

Headscale supports basic OIDC login and copies profile details from the identity provider, but OIDC groups cannot be referenced in ACLs. A policy that grants access to an identity group written for Tailscale will either fail to match or match too broadly once rewritten. Before cutover, list every ACL rule that depends on a group, then rebuild those rules with users, tags or autogroups that Headscale supports and test each one from a sample device for each role.

Headscale features

Cutting over before routes and exit nodes are tested

Subnet routers and exit nodes are often the last pieces rebuilt, and they fail quietly. A device can join the new control plane and show as connected while the advertised subnet is not approved, or while traffic still needs a route that was never enabled. For each subnet and exit node, confirm the route is advertised, approved and reachable from a test client on the destination side before moving the rest of the fleet.

Losing access during re-registration

Every device must be enrolled again against the new server, and a mistake in this step can cut off the only admin laptop or a remote engineer's path back into the network. Keep the existing tailnet running until the new one has at least one working administrator and one working route to each critical segment. Use pre-authenticated keys with clear expiry for servers, and keep a documented way to reach the console of each host that depends on the mesh for access.

Running the control server behind a proxy or in a container

The Headscale README states that the project does not support or encourage running Headscale behind reverse proxies or in containers. Many platform teams default to both, so this choice is easy to make by habit. Treat it as an open risk for production: ask the maintainers and your own support path whether your deployment shape is covered, and if you must deviate, test client reconnection, DERP behavior and certificate renewal before go-live.

Headscale README

DERP reachability from restricted networks

Clients that cannot reach a direct path between peers fall back to relay traffic through DERP servers. If your branch offices, data center egress or partner networks block the relay ports, some connections will fail or degrade in ways that look like application faults. Map the networks your devices use, test relayed connections from each restricted segment, and decide whether to run the embedded DERP server inside your perimeter and which ports you must open.

Missing upgrade cadence

Headscale is community-maintained and publishes releases at a steady pace, so the server and client expectations can drift from what your fleet runs. The most recent release supplied for this topic is v0.29.5, published on October 13, 2026. Set a written schedule for reviewing release notes, testing each upgrade in a staging tailnet with a few devices, and keeping Tailscale client versions within a range the server supports, because nobody on the team will otherwise own that work.

Headscale releases

Questions teams ask before moving off Tailscale to Headscale

What drives the cost of moving from Tailscale to Headscale?

The main cost is labor, not licensing, because Headscale is BSD-3-Clause and carries no per-seat fee. Cost is driven by the number of devices and tags, how many ACL rules need translation, how many subnet routers and exit nodes must be rebuilt, the identity provider integration, and the team time needed to test and cut over. Recurring costs include the VM or host running the control server, backups, monitoring, TLS and patching, plus the on-call time to keep it running. Ask any implementation partner for a quote that separates one-time migration work from ongoing operations, and state which items are excluded.

How long does a Headscale migration usually take?

Duration depends on the size and shape of the tailnet, not on a fixed formula. Teams with a small number of devices, a simple ACL file and few routes usually move faster than teams with many tags, several subnet routers, split DNS and custom exit node setups. Time is also spent on testing with pilot devices and on the rollback plan. Ask for a timeline that lists each phase: inventory, policy translation, lab test, pilot group, and full cutover, and confirm which phases depend on your change windows.

What must our team provide for the migration?

Three roles are needed. An identity owner must confirm the OIDC provider, user accounts and how profiles map to Headscale users, because OIDC groups cannot be used in ACLs. A network engineer must own the export of the Tailscale ACL policy, route advertisements, DNS settings and exit node choices. Test devices are needed across each operating system you run, including a few that sit behind routers and in restricted segments. Also provide a maintenance window, a named approver for cutover and access to the Tailscale admin console until the move is complete.

Can our own team migrate from Tailscale to Headscale in-house?

A capable platform or network team can do it in-house if it has time, Linux server administration experience and someone who understands the ACL policy deeply. The hard parts are rebuilding tags and routes, validating the policy on a lab tailnet before production, and running the control server under real load. Teams without that experience, or without spare capacity during the change window, often choose a fixed-scope engagement. Either way, document who will be on call for the control plane after cutover, since that work continues after the migration ends.

Can Tailscale and Headscale run in parallel during the move?

Yes, but the two networks are separate tailnets and devices cannot be enrolled in both at the same time. A common approach is to keep the Tailscale tailnet live for existing services while a small pilot group joins Headscale, then move groups in stages. Keep DNS, routes and exit nodes clearly assigned to one network at a time to avoid split routing. Confirm with your network team how each service will be reached during the overlap, and define the rollback step for each group before you start.

What happens to Tailscale SSH and Taildrop after moving to Headscale?

Headscale lists Tailscale SSH and Taildrop among its supported features, so both can be part of the move, but they must be tested on your own setup before you rely on them. Confirm the SSH policy and check how Taildrop file transfer behaves on each client platform, because the official GUI clients for Windows, macOS and iOS are not open source and must be handled according to Headscale's documentation. Session recording is not covered by the mesh itself, so teams that need recorded SSH should plan a separate audited access tool.

How should we track Headscale releases before production use?

Pin a specific release and test every upgrade in a lab tailnet before production. The Headscale releases page lists the most recent versions, including v0.29.5, which was published on October 13, 2026, after v0.29.4 on September 23, 2026 and v0.29.3 on July 29, 2026. Read the release notes for changes to the policy format and the database, back up the server before each upgrade, and check whether the client versions you run remain compatible. Subscribe to the releases feed and assign an owner to review each one, since Headscale is community-maintained.

Does Headscale support every Tailscale feature we use?

No, and this should be confirmed feature by feature before cutover. Headscale covers ACLs, grants, some autogroups, MagicDNS, split DNS, subnet routers, exit nodes, tags, pre-authenticated keys, ephemeral nodes and an embedded DERP server, but OIDC groups cannot be used in ACLs and autogroup support is partial. Build a list of every Tailscale feature in use, check each against the Headscale feature documentation, and decide whether a workaround, a design change or a different tool is needed for any gap.

Where DeployOpen fits in a Headscale migration

DeployOpen plans, implements, integrates, hardens, backs up and documents a self-hosted Headscale control plane inside your own infrastructure, whether that is your cloud accounts, a data center or an air-gapped network. For this migration, the work usually covers standing up the Headscale server, deciding how OIDC login and pre-authenticated keys are used during enrollment, rebuilding the policy from the exported ACL file, moving tags, subnet routers and exit nodes, and choosing where the embedded DERP server and any relays run. Each of those items can be written into the scope so the client knows what is delivered and what stays with their own team.

Most engagements are fixed-scope, so the scope, deliverables and timelines are agreed in writing before any cutover work starts. Ask any provider, DeployOpen included, to put in writing which Headscale version will be deployed, how the server is backed up and restored, how the documentation of the new control plane will be handed over, and which Tailscale features are being dropped and why. A quote follows from that written scope. Ongoing upgrades and support are available as retainers, which matters because Headscale is community-maintained and new releases need to be tested against your clients and policy before they are applied.

Security testing of the new access path can follow the cutover. This is a separate piece of work from the migration itself: it checks that policy rules behave as written, that device enrollment cannot be abused, and that routes and exit nodes expose only what they should. DeployOpen does not issue audit reports, attestations or certifications. If your compliance program needs independent evidence for remote access controls, confirm with your assessor which artifacts they will accept from a migration and test cycle.

How DeployOpen scopes, runs and supports the migration

DeployOpen plans, implements, integrates, documents and supports self-hosted open-source platforms inside the client's own infrastructure. For a move from Tailscale to Headscale, the work is agreed as a written, fixed-scope engagement covering the control server, the device cutover and the handover.

How we scope

  • Inventory of the current tailnet: devices, tags, subnet routers, exit nodes, DNS settings and the ACL policy file
  • Decision on identity: pre-auth keys, OIDC login, or a mix, with the group limits in ACLs confirmed up front
  • Written list of features to drop or redesign before cutover, agreed with your security and network owners
  • Deliverables, timeline and acceptance criteria recorded in writing before any work starts

How we build

  • Headscale server deployed in your cloud account, data center or air-gapped network, with access controls you specify
  • Policy rebuilt from the exported ACLs, with each rule checked against the access it was meant to grant
  • Pilot group re-registered first, with routes, exit nodes and DERP choices tested before wider rollout
  • Security testing of the control plane and access paths, with findings, fixes and a retest

How we hand over

  • Runbooks for enrolling devices, rotating pre-auth keys, adding tags and routes, and upgrading Headscale
  • Configuration, policy and architecture documentation delivered to your platform and security teams
  • Backup and restore procedures for the control server database and keys, tested before handover
  • Notes on evidence your compliance team can use for access control and remote access reviews

How we support

  • Ongoing support, upgrades and continuous testing available as a retainer after handover
  • Upgrade planning for Headscale releases, with changes reviewed against your policy before rollout
  • Scope changes handled through a written amendment rather than informal additions
  • Confirm response expectations, upgrade windows and what the retainer covers in your quote

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.