Migrate from ZeroTier to Headscale

Moving from ZeroTier Central to Headscale means exporting networks and members, rebuilding rules as ACLs and routes as subnet routers, then re-registering every device. This page sets out what moves cleanly, what does not, and how to sequence the cutover.

On this page

Migrate from ZeroTier to Headscale: what the move involves

Moving from a ZeroTier network managed in ZeroTier Central to Headscale is a rebuild of the control plane plus a device re-enrollment, not a data migration. Nothing stored in ZeroTier Central needs to be copied row by row into Headscale. Instead, the team exports the network and member inventory, redesigns the access rules in Headscale's own policy model, and registers each device again with a Tailscale client that points at the self-hosted server. Plan the work as a network redesign with a device rollout attached, because that is what it is.

The work usually falls to platform or network engineers, who own the server, the routing and the client rollout, with the security team reviewing the new access policy before any production device joins. Effort and risk depend mostly on how many flat ZeroTier rules must be turned into explicit Headscale ACLs, how many managed routes must be recreated as subnet routers, and how many devices need manual enrollment. Ask whoever runs the move to produce a written inventory of networks, members, routes and rules before estimating anything, and confirm which of those items have no direct equivalent.

Keep the scope of Headscale in view from the start. The Headscale README describes it as a single Tailscale network, a tailnet, suited to personal use or a small open-source organization. If your ZeroTier estate spans several business units that need separate administration, separate policies or separate tenants, a single Headscale instance will not split them for you. Confirm the tailnet count you need, and check the current feature list in the Headscale documentation on features against your rules, especially OIDC group use in ACLs, which the documentation says is not supported.

Which ZeroTier features map cleanly to Headscale

This table maps the main ZeroTier Central capabilities to their closest Headscale equivalents and marks each as clean, needs rework or gap. Use it to scope the rebuild before exporting anything, since the rework rows are where policy design time will go. The main takeaway is that membership, addressing and routing carry over with little change, while flat network rules and group-based policy must be redesigned for a tailnet.

ZeroTier capabilityHeadscale equivalentMigration status
Network membership and member authorizationUsers, nodes and pre-authenticated keys or OIDC loginNeeds rework: members are re-enrolled with Tailscale clients, not imported
Flow rules on a flat networkACLs and grants in the tailnet policyNeeds rework: rules must be rewritten around users, tags and destinations
Group-based access by identity provider groupsOIDC groups are not usable in ACLsGap: create tags or explicit user rules instead
Autogroups for common targetsAutogroups, only partly supportedNeeds rework: confirm each autogroup you rely on against the features page
Managed routes to LAN subnetsSubnet routers with advertised routes approved on the control serverClean: route approval is an explicit step to repeat after cutover
DNS names for membersMagicDNSClean: names follow the new node registration
Split DNS for internal domainsSplit DNSNeeds rework: rebuild each internal resolver entry by hand
Exit traffic through a memberExit nodesClean: confirm the exit node advertises and is approved on the new network

What exports from ZeroTier Central and what must be re-created

The ZeroTier Central API gives you a machine-readable copy of networks, members, routes and rules, which you can map onto Headscale. Several items do not carry over automatically, so plan for manual rebuilds before cutover.

Networks and member inventory

Each ZeroTier network and its member list is the starting inventory. Export every network you own, including those with few members, because forgotten networks often hold servers that still need access. Record each member's node ID, its authorization state and its assigned managed IP. Node IDs will not exist in Headscale, so use this list to decide which devices re-register and which can be retired. Confirm which fields your token returns, since the export format depends on your plan and the current ZeroTier documentation.

Members become Headscale users and pre-auth keys

Headscale does not import ZeroTier node identities. Each person or owner maps to a Headscale user, and each device is enrolled again using a pre-authenticated key or an interactive login. Pre-authenticated keys let you enroll a batch of devices without a browser step, which suits servers and unattended hosts. Decide before export whether each device should be tagged, reusable or ephemeral, because those settings are chosen at key creation.

Network rules translate to ACLs

ZeroTier flow rules control which nodes can reach which, and Headscale expresses the same intent through its ACL policy and grants. Translate each rule by hand into a source, destination and port, then test it with one device per group. Headscale's OIDC groups cannot be used in ACLs, so any rule that depends on an identity provider group must point at users or tags instead. Review the ZeroTier rule export carefully, because rule syntax differs between plans and versions.

Managed routes become subnet routes

Managed routes that point traffic at a site subnet through a ZeroTier member must become subnet routes advertised by a Headscale node. The advertising node must be approved and the route enabled before traffic flows. Check each route's gateway, its destination subnet and whether it is a default route, because default routes change how all client traffic leaves the device. Exit node behavior is configured separately, so do not assume a managed default route carries over.

Device names and DNS

Device names, hostnames and any DNS names set in ZeroTier do not transfer as settings. Re-enrolled devices appear with the hostname they report, so rename them consistently before writing ACLs that refer to them by name. If you use MagicDNS or split DNS, plan the new names and the resolver addresses your internal services need, and test name resolution from a clean client.

Identity links and API integrations

Links between ZeroTier members and your identity provider, along with any scripts, monitoring jobs or provisioning tools that call the ZeroTier API, must be rebuilt by hand. Headscale supports basic OIDC login and updates user profiles from the identity provider, but group-based access needs a different design. Inventory every automation that reads or writes ZeroTier data, because the export covers data only, not the code that depends on it.

Migration sequence from inventory to decommission

This sequence moves a ZeroTier deployment to Headscale without a single cutover day, so every network can be checked before its members leave ZeroTier. Each step produces a record that the next step depends on, and the last one closes out the old controller.

  1. Inventory networks, members and rules

    Start by exporting every ZeroTier network you control through the Central API, using a token that your plan and role permit. Record each network ID, its members and their assigned addresses, the managed routes, the flow rules and the tags or capabilities applied to members. Mark which rules are ZeroTier-specific and have no direct Headscale equivalent, and which subnets are reached through a member acting as a gateway. Confirm the export is complete by comparing the member count in the export with the count shown in the Central console. The output is a dated inventory list that names each network, its purpose, its owner and the devices that depend on it.

  2. Translate rules into a Headscale policy file

    Using the inventory, write a first draft of the Headscale access policy as ACLs and grants, with tags or groups standing in for ZeroTier member classes. Map each managed route to a subnet router, which is a Headscale node that advertises the route and must be approved. Note any rule that depends on OIDC groups, since Headscale does not let ACLs reference OIDC groups and autogroup support is partial, so those rules need explicit users or tags instead. Review the draft with the network owners and ask them to confirm which devices should reach which services. The output is a versioned policy file and a short list of rules that were rewritten or dropped, with the reason for each.

  3. Select and deploy the Headscale version

    Choose the Headscale release before building anything. Read the stable documentation at the Headscale site and the release history on the project's GitHub releases page, then pin the version you test and the version you run in production. Confirm the Headscale README guidance on deployment, including its statement that the project does not support or encourage running Headscale behind reverse proxies or in containers, and plan the host, TLS and network path around that. Ask your team to confirm the client versions it will install. The output is a version decision record and a deployed control server that is reachable only from the networks it must serve.

  4. Run a pilot with a few Tailscale clients

    Choose a small pilot group whose members are willing to test, and enroll their devices with Tailscale clients pointed at your Headscale server. Use a pre-authenticated key or OIDC login according to how you have configured identity. Apply the draft policy, approve the subnet routes, and test the services each pilot user needs, including DNS names, SSH and any exit node if you use one. Check that a device outside the policy is actually denied. Record every failure, its cause and the fix. The output is a tested pilot with signed-off test cases and a list of open issues that must close before the wider cutover.

  5. Operate both networks during a parallel run

    Keep the ZeroTier networks running while the Headscale network carries the pilot group and then broader groups. Devices that need to reach services on both sides can join both networks, but confirm that routes do not conflict, especially where the same subnets appear on each side. Watch for address overlap, duplicated DNS names and routes advertised by two gateways. Agree with the application owners how long the parallel period lasts and what triggers a rollback. The output is a parallel-run log that shows the reachability tests passed on each side and an agreed list of services that are confirmed on Headscale.

  6. Cut over members and routes in batches

    Move members in batches of a size the support team can handle, starting with the least critical network. For each batch, remove the ZeroTier route dependency, enroll the device with Tailscale against Headscale, approve its routes, and run the test cases from the pilot. Keep a runbook for each batch that lists the devices, the owner who confirmed the move, the tests run and the rollback steps. Hold the batch if a test fails and do not move the next batch until the current one passes. The output is a cutover runbook and a completed record for every batch, with the rollback path still available until the last batch is confirmed.

  7. Validate and retire the ZeroTier networks

    Once every batch is confirmed, run a final validation pass that checks reachability for each service in the inventory and confirms that no device still depends on a ZeroTier route. Ask the network owners to sign off in writing. Then remove the remaining members from each ZeroTier network and delete or archive the networks in Central, after keeping the exported inventory and policy as records. Revoke any API tokens used for the export. The output is a decommission record that lists each network retired, the date of removal, the approver for each network and where the archived export is stored.

How Headscale's control server replaces ZeroTier Central

Headscale replaces only the control plane, not the data path. It is a self-hosted, open source implementation of the Tailscale control server. In a ZeroTier move, Headscale takes over the job that ZeroTier Central does for your networks: it exchanges WireGuard public keys between enrolled devices, assigns each client its IP address, defines the boundaries between users, and publishes the routes that subnet routers advertise. The Tailscale clients then carry the traffic directly between devices, or through a relay when a direct path cannot be built. This means the ZeroTier controller stops being part of your traffic path after cutover, but the device clients change too. Each endpoint must run a Tailscale client and register with your Headscale server, so the migration is a client reinstall and re-registration project as much as a server build.

Before you design around this architecture, check two statements in the Headscale README. The project does not support or encourage running Headscale behind a reverse proxy or inside a container, so the control server should be planned as a directly reachable service on a host you can patch and back up. Also, Headscale's stated scope is a single tailnet aimed at personal use or a small open source organization. ZeroTier networks often hold several business networks with different owners, so you may need to map each ZeroTier network to a separate control plane or accept a shared tailnet with tighter ACLs. Confirm with your own architecture review whether one tailnet fits your user count, number of device groups and administrative model, and whether the project's support expectations match your change control.

Plan the control server as a service with its own owner, backup routine and upgrade path. Headscale release notes are published on its GitHub releases page, and the documentation is split between stable and development versions, so pin the version you deploy and read the matching docs before each upgrade. Ask your team to confirm the current support status of the project, its security disclosure route and how fast fixes land, because you will be operating this software in place of a vendor-run controller. The tailnet state held by the server is the most sensitive piece of this design, since it maps device identities to addresses and routes, so restrict who can reach the admin interface and keep its database in your backup scope.

How ZeroTier Central, Headscale and the clients fit during cutover

The cutover starts with an inventory and export from ZeroTier Central through its API, then moves to translating network rules into Headscale ACLs and subnet routers. A small pilot group of Tailscale clients registers against Headscale first, while ZeroTier stays live for everyone else. During the parallel run, both networks carry traffic and you check reachability for each route and service. Members re-register in waves, and ZeroTier is decommissioned only after the pilot and parallel checks pass.

Phases of the cutover from ZeroTier Central to a Headscale tailnet.

What drives cost and duration in a ZeroTier to Headscale move

This table lists the factors that change the effort of moving ZeroTier networks to Headscale, and whether each cost is one-time or recurring. Use it to shape the questions you put to any implementation partner or internal team before you ask for a quote.

DriverWhy it changes effortWhat to ask for or confirm
Number of networks and membersEach network needs its member list exported, mapped to Headscale users and re-enrolled, so effort grows with device count and network count.Ask for an inventory of networks, member counts and devices per owner, with the scope written before work starts.
Flow rules and managed routesZeroTier rules must be translated into Headscale ACLs and grants, and managed routes into subnet routers approved on specific nodes. Complex rules take longer to test.Ask how each rule maps to an ACL or grant, which rules have no direct equivalent, and who signs off on the policy.
Platforms needing Tailscale clientsEach operating system needs a Tailscale client installed and configured, and some platforms need different steps or permissions. Confirm which GUI clients are used, since the Headscale README says the Windows, macOS and iOS GUI clients are not open source.Ask for a list of platforms, the client versions to be used and the install method for each.
Identity integration via basic OIDCBasic OIDC login updates user profiles, but OIDC groups cannot be used in ACLs and autogroups are only partly supported. Groups that must drive access may need to be modeled another way.Confirm which identity provider is used, which groups drive access today and how each will be expressed in Headscale.
Testing and rollback planningA parallel pilot with a small group, a documented fallback to ZeroTier and a checklist for each cutover wave add effort but reduce the risk of outages.Ask for the pilot scope, the success criteria, the rollback steps and who runs each test.
Staff availability for device re-enrollmentUsers must re-register devices, and slow responses or missed sessions extend the schedule. Engineers may be needed on call during cutover.Ask who supports users during cutover, how help requests are handled and whether a schedule of waves is agreed.
One-time work: inventory, policy translation, pilot and cutoverThese are project costs paid once, usually to the internal team or an implementation partner under a fixed-scope agreement.Ask for each phase as a separate line item with deliverables, so you can see what is included.
Recurring work: server operation, upgrades, monitoring and relaysThe Headscale control server, any DERP or peer relays, backups and monitoring need ongoing operation. Headscale releases move quickly, so upgrades need a planned window.Ask who patches and upgrades the server, what monitoring covers it and whether relays are hosted in your network or elsewhere.

How the move differs by starting point

A small team with a few ZeroTier networks and mostly personal-scale use usually has the simplest path. Headscale is aimed at a single tailnet for personal use or a small organization, so one control server can often replace the whole set of networks. The work is mostly re-enrolling a modest number of devices and recreating a short list of rules by hand.

  • Count networks and members first: Export each network and its member list through the ZeroTier Central API so you know how many devices and rules must move.
  • Collapse networks into one tailnet: Decide whether separate ZeroTier networks should become tags or ACL groups inside one Headscale tailnet.
  • Use pre-authenticated keys: Enroll devices with pre-authenticated keys to avoid a manual approval step for each machine.
  • Keep the old network running briefly: Leave ZeroTier active until each device has joined Headscale and reached the services it needs.
  • Confirm the admin workload: A small team can usually run the server, backups and upgrades in-house, using the release history on the Headscale releases page.

Before you start, confirm that a single tailnet fits your use, since Headscale does not aim to host several separate organizations.

What usually goes wrong when moving from ZeroTier to Headscale

Most failed ZeroTier to Headscale moves do not fail at install time. They fail in the policy translation, the route inventory, the device re-enrollment and the cutover plan. The six risks below are the ones that tend to surface late, and each has a check you can run before devices move.

ACL rules translated too loosely or too tightly

ZeroTier flow rules and Headscale ACLs express access differently, so a direct copy can open paths that were never allowed or block traffic a team depends on. Headscale ACLs are default-deny only when you write them that way, so an empty or permissive policy file can expose every node to every other node. Before cutover, list each ZeroTier rule, write its ACL equivalent, and test a sample of allowed and denied connections from both directions.

Headscale features

OIDC groups assumed to work in ACLs

Teams often map ZeroTier roles to identity provider groups and expect those groups to drive Headscale policy. Headscale supports basic OIDC login and profile updates, but OIDC groups cannot be used in ACLs, and autogroups are only partly supported. Plan access by explicit users, tags or other supported selectors, and confirm each selector in a test tailnet before you rely on it for production access.

Headscale features

Managed routes left unassigned after cutover

In ZeroTier, managed routes often reach office or lab subnets through a bridge or gateway member. In Headscale, advertised routes must be approved and an appropriate node must act as the subnet router, and exit nodes need the same attention. Inventory every route from the ZeroTier export, record which device advertised it, and confirm after cutover that each subnet is reachable and that no route still points at a retired member.

Devices never re-registered and silently dropped

A device that is not re-enrolled simply loses connectivity, and the failure often shows up days later when a service owner notices. Each endpoint needs a Tailscale client installed and a registration step completed, and the list of expected devices should be reconciled against registered nodes. Use pre-authenticated keys with agreed expiry for planned enrollment, and keep a list of owners who must confirm their devices are online before the old network is retired.

Containers or reverse proxies used against README guidance

The Headscale README says the project does not support or encourage running it behind reverse proxies or in containers. Teams that place the control server behind an existing ingress or wrap it in a container pattern they already use for other services can end up with an unsupported setup that is hard to troubleshoot or defend in a review. Confirm the deployment model with the README and current documentation before building it, and record that decision in the migration plan.

Headscale README

No rollback path during the parallel run

Running ZeroTier and Headscale side by side is useful only if each device can return to its previous network without an outage. Without a tested rollback, teams remove ZeroTier memberships too early, and a broken ACL or route then blocks people with no fallback. Keep ZeroTier memberships until every route and service is verified, record the steps to rejoin each device, and rehearse one rollback with a pilot group before the main cutover.

Questions teams ask before moving from ZeroTier to Headscale

How much effort does moving from ZeroTier to Headscale take?

Effort depends mostly on how many networks, members and routing rules you run, and on how many people must re-enroll devices. A small setup with one network and a handful of devices is a short exercise for one engineer. Larger estates add work in three places: translating ZeroTier network rules into Headscale ACLs, rebuilding managed routes as subnet routers, and coordinating the client reinstall on every endpoint. Export through the ZeroTier Central API is scriptable, but the rules and routes it returns still need manual review because the two systems model access differently. Ask any provider to size the work from a written inventory of your networks, not from a device count alone.

How long does the migration take, and what changes the timeline?

Duration is driven by network count, device count, rule complexity and how many change windows you can get. Each ZeroTier network needs its own mapping to Headscale, which runs as a single tailnet, so more networks usually means more design decisions before any device moves. Device re-enrollment is often the longest phase because it depends on users and maintenance schedules rather than on the server. Headscale's stable documentation and release history at its GitHub releases page help you plan against a version you can pin. Ask for a phased schedule with named cutover groups and a rollback point for each one.

What must our team provide before the migration starts?

You need a current inventory of ZeroTier networks, members, managed routes and rules, plus a named owner for each network and each service it reaches. Confirm change windows with the teams who depend on those services, and allocate staff to re-enroll devices, including people who can help users who get stuck. Identity matters too: Headscale supports basic OIDC login and updates user profiles from the identity provider, but OIDC groups cannot be used in ACLs, so decide early how users map to access. Also confirm who owns the Headscale server, its backups and its upgrade process after go-live.

Can our own engineers do the migration using the documented export path?

Yes, a capable team can often do the export and much of the rebuild in-house, provided it has someone comfortable with the ZeroTier Central API, Headscale ACL syntax and subnet routing. The export path gives you the raw data, but it does not produce a finished Headscale policy, so expect manual design work and testing. The usual risks are overly broad ACLs, routes that stop working after cutover and devices left on both networks. An outside team is most useful when internal staff are short on time or need an independent review of the access policy before it goes live.

Does Headscale fit an organization that needs only one tailnet?

Headscale fits a single tailnet. Its stated design goal is one Tailscale network suitable for personal use or a small open-source organization, aimed at self-hosters and hobbyists. If you run several ZeroTier networks that must stay separate, you will need to model those boundaries with ACLs, tags and routes inside one tailnet, which is a design task rather than a configuration toggle. The project also states that it does not support or encourage running Headscale behind reverse proxies or in containers, which affects how you plan the deployment. Enterprises with compliance obligations should confirm these limits against their own requirements before choosing Headscale over a broader option.

Can ZeroTier networks and members be moved automatically, or must they be recreated?

Nothing moves automatically between the two systems. You export networks, members, routes and rules through the ZeroTier Central API with an API token, then recreate the equivalent objects on Headscale. Network rules become Headscale ACLs and grants, managed routes become subnet routers, and every device must install a Tailscale client and register with the Headscale server. Device identities do not carry over, so plan for each endpoint to re-register. Confirm which token type your ZeroTier plan allows before you start, since that determines what the export can return.

What does a fixed-scope DeployOpen engagement cover for this migration?

A DeployOpen engagement is fixed-scope, so the scope, deliverables and timeline are agreed in writing before work starts. For this migration, that scope typically covers the inventory and export, the mapping of ZeroTier rules and routes to Headscale ACLs and subnet routers, deployment and hardening of the Headscale server, client rollout planning, and documentation. Testing of the resulting access policy and ongoing upgrades or support can be added through a retainer. DeployOpen does not publish a price list, so ask for a quote based on your written scope, and make sure it names which items are one-time work and which are recurring.

How DeployOpen scopes and runs a ZeroTier to Headscale migration

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, and a ZeroTier to Headscale move is scoped the same way. Work starts from a written scope that names the networks in play, the devices and users to move, the Headscale host and its location, the identity provider used for OIDC login, and the cutover window. Deliverables and timelines are agreed in writing before work begins, and DeployOpen does not publish a price list. A quote follows from that written scope, so the questions to settle first are how many ZeroTier networks exist, how many members each has, and whether any network carries managed routes that depend on specific subnets.

The inventory and policy translation work is where most of the risk sits. DeployOpen exports networks, members, routes and rules through the ZeroTier Central API, then maps each ZeroTier rule to a Headscale ACL or grant and each managed route to an advertised subnet on a Tailscale subnet router. Headscale's documented limits shape this step: OIDC groups cannot be referenced in ACLs and autogroup support is partial, so group-based rules may need to be rewritten as explicit user or tag rules. Headscale also does not support running behind a reverse proxy or in a container, which affects where the control server is placed. Each mapping is reviewed with the client's security team before any device is enrolled.

A pilot group then runs on Headscale while the existing ZeroTier networks stay live, and both networks run in parallel until the client accepts the results. The pilot checks name resolution, route reachability, ACL denials and client behavior on each operating system the client uses. After acceptance, devices are re-registered with Tailscale clients in waves. Retainers can cover upgrades, such as moving between Headscale releases, and continued support after cutover. Before scoping, the client should confirm which ZeroTier token type its plan allows and which Tailscale client versions its fleet can run.

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.