How to export your configuration from Tailscale

Tailscale exports the ACL policy, device and tag inventory, and DNS and route settings through its documented API and Terraform provider, but enrollment, keys and identity links must be rebuilt in the new control plane. This page explains each path, the gaps and the order of work.

On this page

What you can take out of Tailscale before you leave

A team leaving Tailscale usually has a trigger it cannot postpone: a renewal date, a change in licensing terms or a data residency requirement that the current setup no longer meets. The access policy, the device and tag inventory, and the DNS and route settings can be read out through documented paths. Device keys, enrollment records and identity bindings cannot be carried over to another control plane, because the old coordination service issues them and the new one must issue its own. The exit is therefore a rebuild guided by a verified copy of intent. Exact endpoints, scopes and export formats must be confirmed against Tailscale's current documentation before the project is scheduled, because they can change.

Start with the access policy file, which holds the ACL rules, tag owners and host aliases that define who can reach what. Save it as a versioned file in your own repository, and keep the version that was active at the end of each quarter so auditors can see how access changed. Next, read out the device inventory with names, owners, tags, operating systems and last-seen times. This shows which machines are stale and should not be migrated at all. Then record the DNS settings, including MagicDNS and split DNS entries, and the advertised subnet routes and exit nodes, noting which routes were approved. The API and Tailscale's Terraform provider can script most of this reading, so the export can be repeated for a dry run. Confirm the scopes your admin credential needs before you start.

Plan for the parts that cannot be copied. Every device must enroll again with a pre-auth key, an OIDC login or the destination's own method, so schedule the rollout by team and keep the old network running during the switch. Identity bindings must be rebuilt against the new identity provider. Group-based rules need particular attention because Headscale cannot use OIDC groups in ACLs, so the exported policy must be checked for group references before cutover. Tags, routes and exit nodes need approval again on the new control plane. Verify the rebuild by comparing the exported policy and inventory with the destination configuration, and sign off each difference. The export is mostly reading, recording and checking, and the quality of that record decides how quickly the cutover can happen.

Which Tailscale data can be exported, and by which path

This table lists each part of a Tailscale tailnet that you may need to carry into a new control plane, with the export path and known caveats for each. Use it to plan what you can pull out automatically and what you must confirm in Tailscale's API reference and Terraform provider documentation before you start the migration.

Data typeExport methodOutput formatLimits or known caveats
ACL policy fileAdmin console policy editor, or the policy file endpoints in the Tailscale APIPolicy file as shown in the admin console (HuJSON-style JSON with comments); confirm the exact format in the API referenceExport the file before any edits; comments and grants syntax may need manual translation for Headscale or NetBird
Device list with names, tags and ownersAdmin console machines page, or the devices endpoints in the Tailscale APITable or JSON; confirm field names in the API referenceShows the current state only; key expiry, last seen and owner fields may need checking per device
Tags and tag ownershipACL policy file (tagOwners section) and device tag fields in the APIPart of the policy file and device recordsTag ownership rules live in the policy file; confirm whether any tags are applied outside it
DNS settings, MagicDNS and split DNSDNS page in the admin console, or the DNS endpoints in the API and Terraform providerSettings as JSON or Terraform resource definitions; confirm in provider docsNameservers and split DNS rules must be recreated by hand if the target does not map them one to one
Subnet routes and exit node settingsRoute settings on each machine in the admin console, or route endpoints in the APIPer-device route lists in JSON; confirm the endpoint in the API referenceRoute approval state is not carried over; each advertised route must be approved again on the new control plane
Auth keys and their metadataKeys page in the admin console; the API lists keys but does not return secret valuesKey metadata only (description, expiry, tags, reusable flag); confirm in API referenceExisting key secrets cannot be exported, so new pre-auth keys must be issued for re-registration
Users and groups as shown by the identity providerIdentity provider directory (for example Okta or Entra ID) and the Tailscale users view in the admin consoleExported from the identity provider in its own format; Tailscale user list via APIGroup membership is managed upstream; Headscale does not use OIDC groups in ACLs, so group-based rules need redesign

What does not export and has to be rebuilt by hand

The ACL file, tags and DNS settings can be exported, but the identity of each device, the secrets used to enroll it and the history behind it stay with Tailscale or must be recreated on the new control plane. Each card below names one item, what it breaks if ignored, and the workaround to plan for before cutover.

Device node keys and machine identity

Each device holds a node key issued by the Tailscale control plane, and that key is not transferable to another control server. Every laptop, server and subnet router must re-enroll against the new coordination server, which assigns new addresses and key pairs. Check whether devices keep their tailnet IP addresses after re-enrollment, because ACL rules and DNS names that refer to those addresses may need updating. Plan the re-enrollment order so that subnet routers and exit nodes come back first.

Headscale features

Auth keys and their secret values

Tailscale auth keys are shown only once when created, and the API does not return their secret values later. Any unattended server or container that enrolled with a reusable key will fail to re-enroll until you issue a replacement. In Headscale, create pre-authenticated keys with the right user and tags; in NetBird, create setup keys with the matching groups. Record which automation holds each key, rotate them during cutover, and revoke the old ones.

Identity provider links and login sessions

Tailscale maps users to your identity provider inside its own service, and active login sessions end when the tailnet changes. Headscale supports basic OIDC login and updates user profiles from the provider, but OIDC groups cannot be used in ACLs, so group-based rules must be rewritten as per-user rules or other constructs. NetBird offers SSO, MFA, SCIM provisioning and groups, which map more closely to group-based policy. Confirm which of your identity provider's groups must be recreated in the target and test a login for each role.

Device posture and MDM state

If Tailscale device posture checks read state from an MDM or EDR tool, that integration and its scores do not move with the tailnet. Posture rules that depend on those signals must be rebuilt in the target or replaced with a documented gap. NetBird lists device posture checks, device approvals and MDM and EDR controls in its paid tiers, so confirm which of those features your plan includes before you rely on them. Headscale does not offer an equivalent posture layer in the features the project documents, so treat that control as an accepted gap or enforce it elsewhere.

Admin audit history and logs

Tailscale keeps the admin audit history and network logs in its own service, and that record does not transfer to a self-hosted control plane. Export or screenshot the configuration change history, the list of users and devices, and any log retention you must keep for an assessment before you cancel the subscription. Confirm the retention period with Tailscale for your plan, since it determines how far back you can export. Start your own logging on the new control plane on the first day of cutover so the gap is limited to the transition itself.

Features the target does not provide

Some Tailscale features have no direct equivalent in the target, and you must decide whether each one is rebuilt, replaced or accepted as a gap. Headscale does not support running behind a reverse proxy or in containers according to its README, which changes the hosting design. Check each feature you use, such as Tailscale SSH, Taildrop, exit nodes, peer relays and DERP settings, against the target's feature list. Write down every accepted gap with an owner and a review date so the decision is traceable.

Headscale README

How the exported parts map onto the new control plane

The diagram starts in the Tailscale tenant, where the admin console, the API and the Terraform provider are the three paths for pulling out the policy file, device and tag inventory, and DNS and route settings. Those exports land in an archive on your own storage, which sits on the trust boundary. From there, a translation step turns the Tailscale policy into Headscale or NetBird policy and configuration, and a rebuild step re-enrolls devices and recreates keys and identity. Before cutover, compare the source inventory with the new one, and treat every mismatch as a finding to resolve.

Export paths, the archive in your environment, and the rebuild and verification steps.

Export sequence and verification before cutover

This sequence captures the policy, device, DNS and route state from Tailscale in a dated, reconciled archive before any cutover begins. Each step ends with a comparison against the admin console, so gaps are found while Tailscale is still the source of truth.

  1. Freeze and date the current policy

    Before any export, the network owner announces a change freeze on Tailscale access controls and records the date, time and approver. Copy the ACL policy exactly as it appears in the admin console and store it as a dated file, such as tailscale-acl-YYYY-MM-DD.hujson. Verification: open the saved file and confirm it matches the admin console's policy editor line for line, with no later edits in the history.

  2. Export the ACL policy and test parsing

    Export the ACL policy through the admin console or the API, then load it into a test environment, such as a scratch Headscale instance, to confirm it parses. Expect some constructs, including Tailscale-specific features, to need review because the target may not support them. Verification: the parse succeeds, and the counts of groups, tags, hosts and rules match the console. Record every construct the target rejects or handles differently for the migration plan.

  3. Export the device and tag inventory

    Export the device list through the API or the Tailscale Terraform provider, and capture each device's name, operating system, tags, user and last-seen date. Add an owner and a documented purpose for each device, since these are rarely recorded in the console. Verification: the device count equals the machines list in the admin console, and the set of tags in the export equals the set in the console, with no tag missing or duplicated.

  4. Export DNS, split DNS and route settings

    Export MagicDNS settings, nameservers, search paths, split DNS entries, advertised subnet routes and exit node configuration. Note which routes are approved and which are waiting for approval, and which devices are configured as subnet routers or exit nodes. Verification: the route list and DNS entries match the admin console line by line, and each subnet router appears with the prefixes it advertises.

  5. Reconcile coverage against every device and route

    Compare the exported inventory with the admin console to confirm that every device, including disabled, expired and external devices, appears in the archive. Confirm that every advertised route and exit node is accounted for. Items that cannot be exported, such as device registrations and authentication keys, go on a manual rebuild list. Verification: a reconciliation sheet where every difference is either resolved or listed with an owner.

  6. Store the archive under your own controls

    Place the exports in a location the client controls, with access limited to named people and encryption at rest. Keep a short index that lists each file, its export date and the person who created it. Retention periods and who may read the archive must follow the client's own information handling and records policies, not the defaults of any tool. Verification: an access review confirms only approved accounts can read the files, and a second reviewer can open each file.

  7. Compare counts and key settings after each step

    After each export, compare device counts, tag sets, route lists, DNS entries and policy rule counts with the admin console, and record the results in one checklist. Repeat the comparison whenever the console changes during the freeze, and stop the sequence if the numbers diverge. Verification: the final checklist shows matching counts for every category, with each deviation explained and signed off by the network owner before cutover planning begins.

Choosing between the admin console, the API and the Terraform provider

The admin console is the route most administrators already know. A tailnet owner or admin opens the policy editor and copies the ACL policy file, then reviews the machines list, tags, DNS and route settings through the web interface. It suits small tailnets and one-off copies taken before a cutover, because it needs no tooling and leaves no scripts to maintain.

  • What it captures: the ACL policy as displayed in the editor, the machines list with names, owners and tags, and the DNS and subnet route pages for visual reference.
  • What it misses: anything that is not on screen, such as pre-auth key history, exact timestamps for later comparison, and settings from pages you do not open.
  • Access needed: an account with an admin or owner role. Read-only roles may not see every page, so confirm the role your team holds before you start.
  • Limits for repeatable use: copies are manual, dated only by your own filing, and easy to drift out of sync with the live tailnet.

Before relying on console copies, confirm with Tailscale's current documentation which settings each page exposes and whether any items are hidden from your role.

What to plan before the Tailscale contract ends

Six decisions shape how the export in this guide fits into your exit. Each one has an owner and needs evidence before the cutover date is fixed, and the cards are ordered roughly by when they must be settled.

Renewal and termination notice terms

Your Tailscale agreement, order form or plan terms set the notice period, the renewal date and what happens to devices and policy after the subscription ends. Finance or procurement should own this decision, with the security lead reviewing the dates. Confirm the notice window, the end-of-term date and whether any data or policy access is cut off on expiry before you schedule any other step. Ask Tailscale in writing if the terms are unclear.

Parallel run period

Keep the Tailscale tailnet and the new control plane live together so teams can move at their own pace and roll back a device if needed. The network owner decides how long both run, and the evidence is a list of devices and routes confirmed reachable on the new side. Agree the exit criteria for the parallel run in writing, so the old network is not switched off while a subnet or exit node is still dependent on it.

Device enrollment schedule by team

Enroll devices in groups by team rather than all at once, starting with teams whose access rules are simplest to verify. The IT operations lead sets the order, and each team lead confirms their members and owned machines. Use the device and tag inventory from your export as the source list, and mark any device that is shared, unmanaged or offline so it is not forgotten during re-registration.

Cutover window for routers and exit nodes

Subnet routers and exit nodes carry traffic for other users, so their cutover affects more people than a single laptop. The network engineer decides the window and the fallback path, and the evidence is a tested route from a client on the new control plane to each advertised subnet. Plan these changes outside business-critical hours, keep the old router reachable until the new one is verified, and record which routes must be rebuilt by hand.

Retention and deletion of exported copies

The exported ACL policy, device inventory and DNS settings contain internal hostnames, user identities and access rules that are sensitive in their own right. The data owner and the compliance lead should set how long copies are kept, where they are stored and when they are deleted, and the decision should be written into the migration record. Restrict access to the export files, store them in an approved location, and confirm the deletion date once the new control plane is accepted.

Ownership of the new control plane

After cutover, someone must own upgrades, backups, certificates, identity provider settings and on-call response for the control plane. The IT leader should name that owner before go-live, and the evidence is a documented runbook and a handover record. Confirm who patches the server, who restores it from backup and who answers when a device cannot enroll, because a control plane without a named owner tends to drift out of date.

Translating an exported ACL policy into the target's rules

An exported ACL policy file is a statement of intent, not a configuration you can paste into another control plane. Each rule in the Tailscale policy file expresses who may reach what, and the target system has to express the same intent in its own vocabulary. Before cutover, build a written mapping table and keep it with the exports. For every tagOwners, groups, hosts, acls or grants entry, record the source rule, the target object that replaces it, and the owner who approved the translation. Where a rule cannot be expressed in the target, record that as an open decision rather than silently dropping it.

Headscale supports ACLs and grants, tags, and some autogroups, so tag-based rules are usually the easiest to carry over. The gaps matter more. The Headscale documentation states that OIDC groups cannot be used in ACLs and that autogroups are only partly supported. Any Tailscale rule that depends on an identity provider group, or on an autogroup Headscale does not implement, must be rewritten around users, tags or explicit lists, or dropped with a documented risk acceptance. Confirm the exact autogroup and grant syntax against the Headscale features page for the version you plan to run, because this area changes between releases.

NetBird expresses access through groups, policies and rules, and it documents a public API and a Terraform provider that can load them. That makes it a practical place to rebuild the policy as code, with the mapping table as the input. Whichever target you choose, write a test set before cutover: a list of connections that must succeed and a list that must be refused, each tied to a user or device role and a destination port. Run the tests against the old network, then the new one, and treat any difference as a blocking finding until a named owner signs it off.

How long does a Tailscale export take, and can our team do it alone?

How long does a Tailscale configuration export take?

The export itself is usually the smaller part of the work, and its duration depends on how much configuration has accumulated. Pulling the ACL policy file, the device list and the tag inventory is quick to do by hand or through the API. The effort grows with the number of policy rules, the number of tags and routes, and how many of those rules encode intent that must be re-expressed in the new control plane. Tailnet size matters less than the complexity of the policy. Ask any implementation partner to give the duration in writing, tied to a named list of rules, routes and devices, and to show which items are mechanical and which need a decision from your team.

What makes the export harder or easier to finish?

Four factors shift the effort most. The first is policy complexity: many rules, nested groups and tag-based access take longer to translate than a flat policy. The second is routing: subnet routers, exit nodes and advertised routes must be rebuilt by hand in the new control plane. The third is automation already in place: a policy kept in version control or managed through Tailscale's Terraform provider is far easier to export and verify than one edited in the admin console. The fourth is identity: if users sign in through an identity provider, the group model has to be checked against what the new control plane supports. Inventory these four areas before you request a quote.

Can our in-house team export and migrate Tailscale without outside help?

Yes, a team with network and identity skills can usually do the export alone, provided it has the time and the access. The ACL policy and device inventory can be pulled through Tailscale's API or Terraform provider, and the new control plane's documentation covers enrollment. The harder work is verification: confirming that every rule still means what it meant, that routes and exit nodes behave the same, and that nothing relying on Tailscale SSH or MagicDNS breaks. Many teams do the export in-house and bring in outside help only for the testing, the cutover plan or the hardening of the new server. Decide which parts you will own before you start.

What does the team need to have ready before the export starts?

Four roles should be confirmed before work begins. A Tailscale admin must provide access to export the policy file, devices, tags and DNS and route settings. An identity provider owner must confirm how users sign in and which groups exist, because group-based rules depend on them. A network owner must list every subnet router, exit node and advertised route, along with the systems behind them. A test group, ideally a small set of real users and devices outside production, must be available to validate each rule before cutover. Missing any of these roles is the most common reason an export stalls, so name the people in writing at scoping.

Can we get the export scoped and quoted in writing before work starts?

Yes. DeployOpen plans most engagements as fixed-scope work, with the scope, deliverables and timeline agreed in writing before work starts. A useful written scope lists the sources to be exported, the number of policy rules and routes to be translated, the devices to be re-enrolled, the test group and the acceptance criteria for each stage. DeployOpen does not publish a price list, so a quote follows from that written scope. Ask for the scope to state what is excluded, such as application changes, hardware, or work on the new control plane beyond the agreed deliverables.

Who holds the exported data, and what happens to it afterward?

The exported data belongs to your organization, and it should stay in your own environment. A Tailscale export typically includes the ACL policy, device names and addresses, tags, and DNS and route settings. Agree in writing where exported files are stored, who can access them, how long copies are kept and how they are deleted at the end of the engagement. If an outside team handles the work, confirm that it works inside your infrastructure or under your controlled access, and that no copies are retained beyond the agreed period. Ask for this in the scope document, not after work has started.

What does a fixed-scope Tailscale exit engagement cover?

A fixed-scope exit engagement typically covers the agreed export, the translation of policy into the target control plane, the rebuild of tags, routes and exit nodes, the enrollment of devices, the testing with your test group and the cutover support, all as defined in the signed scope. It usually does not include changes to applications, hardware replacement or ongoing operation unless those are added. Where the target is a self-hosted platform, the scope should also state who runs backups, upgrades and monitoring after cutover, since those tasks sit with the operator. Use the written scope to confirm each deliverable and the acceptance test for it.

How DeployOpen works on this

DeployOpen treats a Tailscale export as a scoped engagement: we agree in writing what is taken out of the tailnet, what is rebuilt in the new control plane and what evidence the team keeps. The work runs inside your own infrastructure, so the policy, device inventory and DNS settings stay under your control from the first step.

How we scope

  • Written scope lists which tailnet settings are exported: ACL policy, device and tag inventory, DNS and route configuration.
  • Scope names the target control plane, whether Headscale or NetBird, and the clients and platforms that must reconnect.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before any export work starts.

How we build

  • Export of the policy file and device inventory is run against your tailnet using the API or Terraform provider you approve.
  • Exported ACL rules are mapped by hand to the new control plane, and each rule is checked against the original intent.
  • Test devices and a staging tailnet confirm access, DNS resolution and subnet routes before any production device moves.

How we hand over

  • Deliverables include the exported configuration files, a mapping document and a list of settings rebuilt manually.
  • Documentation records what was dropped or changed, such as features without an equivalent in the new control plane.
  • Handover covers the access tests performed and the rollback steps the team keeps during the cutover window.

How we support

  • Ongoing support, upgrades and continuous testing of the new control plane are available as retainers.
  • Retainers can cover backups of the self-hosted control plane, version upgrades and periodic access reviews.
  • Ask the quote to state which party owns on-call work, patching and monitoring after the cutover is complete.

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.