Self-hosted Tailscale alternative for air-gapped networks

Tailscale's hosted coordination service cannot run inside a network with no internet. Headscale or NetBird can run inside the boundary, but relay, package and feature gaps must be planned before cutover.

On this page

Can a self-hosted Tailscale alternative work in an air-gapped network?

Yes, in principle. Headscale or NetBird can run inside an isolated network, because both control planes can be deployed on servers the operator controls, and the Tailscale-style clients only need that control plane and a relay path reachable from inside the boundary. Whether the deployment is truly offline is a decision the operator makes and verifies, not a default setting of either product. Before committing, confirm each component (control server, relay, identity provider, DNS, client packages) resolves and runs with outbound internet blocked.

NIST SP 800-207 describes zero trust as granting no implicit trust based on network location, so an air-gapped network does not earn trust simply by being isolated. Each device and user still needs authentication and an access decision enforced by the control plane. CIS Control 6, Safeguard 6.4, asks for multi-factor authentication on remote network access, which means the identity provider inside the boundary must support MFA. For NetBird, that is the embedded Dex provider or an external SSO provider reachable on your internal network. For Headscale, confirm how your OIDC provider handles MFA, since Headscale's OIDC support is basic.

Plan for the offline operation work as a separate scope item. You will need to mirror container images, client installers and updates through a controlled transfer process, decide where your relay or DERP servers sit, and confirm which Tailscale features have no offline equivalent before you rely on them. Ask any implementation partner to document the transfer process, the test that proves no outbound path exists, and the rollback plan for a failed update.

What an air-gapped zero trust mesh must satisfy

A mesh inside an isolated network still needs the same access controls as an internet-facing one, because the network boundary alone grants no trust. The cards below set out the checks an assessor or security team will expect to see, and each one maps to a control the mesh must enforce or evidence.

No trust from network location

NIST SP 800-207 states that zero trust grants no implicit trust based on physical or network location or asset ownership. In an air-gapped network this matters because a device on the isolated segment is not automatically trusted. Check that every peer, subnet router and exit node is admitted by identity and policy, and that the control plane rejects enrollment from devices outside the approved inventory.

NIST SP 800-207

MFA for remote network access

CIS Controls v8.1 Safeguard 6.4 asks for multi-factor authentication on remote network access and sits in Implementation Group 1. Headscale and NetBird both depend on the identity provider for user login, so the MFA step lives in that provider, not in the mesh client. Confirm which identity provider runs inside the isolated network, how its MFA factors work without internet access, and who can reset them.

CIS Controls 6

Monitored and encrypted remote sessions

NIST SP 800-171 requirements 3.1.12 to 3.1.14 call for monitoring and controlling remote access sessions, protecting their confidentiality with cryptography, and routing them through managed access control points. WireGuard provides the encryption, but the relay, the access logs and the policy engine must be inside your boundary. Verify that session and traffic events are written to a log store you control and that relays are the only path for remote sessions.

NIST SP 800-171 Rev. 2

Endpoint health before access

NIST CSF 2.0 Implementation Examples for PR.IR-01 include checking endpoint health before granting access. Device posture checks decide whether a laptop with an outdated operating system or disabled disk encryption joins the mesh. NetBird lists posture checks in its feature set, while Headscale's documented feature list does not include them. Ask each candidate how posture is evaluated offline and how a failed check is reported and cleared.

NIST CSF 2.0

Verified software across the boundary

NERC CIP-013-2 requires supply chain procurement processes that verify the integrity and authenticity of vendor software and patches. For an air-gapped mesh, every client package, container image and update carried across the isolated boundary needs a recorded checksum or signature check. This card applies to OT-linked networks subject to NERC CIP. Confirm who signs off each import and keep the verification record with the change ticket.

NERC CIP-013-2

Headscale, NetBird and where they fit offline

Headscale is the narrower of the two options for a network with no internet access. It is a BSD-3-Clause implementation of the Tailscale control server, so existing Tailscale clients can point at a coordination service that runs inside your boundary. The control server exchanges WireGuard public keys, assigns client IP addresses, sets the boundaries between users and exposes advertised routes. The README describes its scope as one tailnet for personal use or a small open-source organization, so the design needs to fit that scope.

  • Single tailnet scope: Each isolated enclave that needs its own address space and access boundary will need its own instance and operating process.
  • Embedded DERP server: The built-in relay gives clients a fallback path inside the network when direct connections fail. Confirm that the relay address clients resolve is internal and reachable.
  • No reverse proxy or container support: The README says the project does not support or encourage running Headscale behind reverse proxies or in containers. Plan packaging and TLS on that basis before the build starts.
  • Identity limits: Basic OIDC login works and profiles update from the identity provider, but OIDC groups cannot be used in ACLs. Access control in a regulated enclave will rely on users and tags.
  • Client packages: Tailscale's client code is open source, but the GUI clients for Windows, macOS and iOS are excluded from that. Confirm the license terms before mirroring any of these packages into an isolated repository.

Confirm with the project how an offline install is performed, including how binaries, dependencies and updates cross the boundary, because the README does not describe air-gapped steps.

Which Tailscale features have no offline equivalent

This table compares the Tailscale features most teams rely on against what Headscale and NetBird document when the control plane runs inside an isolated network. Where a cell says to confirm, treat it as an open item to verify in a test environment before cutover. The main takeaway is that identity-driven access rules, device posture and audit tooling are where gaps and tier differences concentrate.

FeatureHeadscaleNetBird
ACL policy by user or groupACLs and grants are supported, but OIDC groups cannot be used in ACL rules.Groups and access rules are included. Confirm how group membership syncs from your identity provider offline.
SSO loginBasic OIDC login is supported, and user profiles update from the identity provider.SSO and MFA are supported. The embedded Dex identity provider can add external SSO providers.
MagicDNS and split DNSMagicDNS and split DNS are included.Private DNS is included. Confirm split DNS behavior for your internal zones.
Subnet routes and exit nodesSubnet routers and exit nodes are included.Routes to external networks and exit nodes are included.
Device posture checksNot listed in the documented feature set. Confirm before relying on it.Posture checks are offered, but the cloud pricing page places them on the Business tier. Confirm self-hosted coverage.
SCIM provisioningNot listed in the documented feature set. Confirm with the project.Listed on the NetBird Cloud Team tier. Confirm availability in the self-hosted build.
Audit and traffic logsNot described in the feature list. Confirm what events the control server records and how they export.Activity and traffic event logging is listed. Traffic streaming is a NetBird Cloud Business tier feature.
Client packages for isolated hostsTailscale GUI clients for Windows, macOS and iOS are closed source, so plan how they reach isolated hosts.Clients are BSD-3-Clause and run on many platforms. Confirm packaging for your operating system mix.

How the control plane, relays and clients sit inside the boundary

The diagram starts with the client devices inside the enclave, which register with the control server (Headscale or NetBird management and signal) to receive keys and addresses. Relay traffic runs through a self-hosted DERP or NetBird relay when direct paths fail, and the identity provider sits inside the same boundary so logins never leave the network. Check that no component has an outbound internet edge and that every client package comes from the private registry or offline media.

Control plane, relay, identity and clients inside one boundary with no outbound internet edge.

Deploying the control plane and relays with no internet

This sequence takes a Headscale or NetBird control plane, its relays and client packages from a staging point inside an isolated network to enrolled devices with tested access rules. Each step ends with a check you can record as evidence for an assessor or an internal security review.

  1. Stage images and dependencies on transfer media

    Build a manifest of every container image, binary, client package and operating system package the control plane needs, then download them on a connected staging host you control. Copy them to approved removable media or a one-way transfer host, and record the file names, versions and hashes in a bill of materials. Done when the manifest on the staging host matches the media contents line by line. Confirm exact image tags and versions against each project's release page before staging, since the release history changes often.

  2. Verify package integrity before import

    Before anything crosses into the isolated network, check each artifact against the publisher's checksums or signatures, then repeat the check on the inside after import. This is the kind of software integrity and authenticity verification that NERC CIP-013-2 expects of vendor software and patches, and its controls apply in other sectors as a good practice. Keep the signed verification record with the bill of materials. Done when every artifact passes both checks and any mismatch has been quarantined and reported.

  3. Stand up the control plane behind an internal CA

    Deploy the control server inside the network, using the internal certificate authority for its TLS endpoint. NetBird's quickstart defaults to a Traefik proxy with Let's Encrypt, which cannot issue certificates without internet access, so replace that certificate path with your internal CA and confirm the embedded identity provider settings before first login. Headscale's project does not support or encourage running it behind a reverse proxy or in containers, so the placement of TLS termination and the load balancer needs a design review first. Done when clients on the isolated network reach the control endpoint over TLS that they trust through the internal root.

  4. Deploy relay nodes inside the boundary

    Place DERP or relay nodes on the isolated network so devices that cannot connect directly still have a path. For Headscale, use its embedded DERP server or peer relays; for NetBird, deploy the relay component from the same self-hosted configuration. Open only the ports your chosen design needs, and confirm that the relay address in the map resolves to an internal name and not a public one. Done when two devices on separate subnets with no direct path communicate through the relay and the relay logs show the session.

  5. Distribute clients through an internal repository

    Store the verified client packages for each operating system in an internal package repository or file share, and point your device management tooling at it. Mobile platforms and some network appliances may need separate handling through their own enterprise channels, so confirm each platform's install path before rollout. Keep a record of which client version each device group runs. Done when a test device in each platform group installs the client without contacting any external host.

  6. Enroll devices with pre-auth or setup keys

    Issue Headscale pre-authenticated keys or NetBird setup keys with short, scoped lifetimes, and have each device enroll through the internal control plane. Where you use SSO, confirm that the identity provider is reachable from the isolated network and that its certificates chain to your internal root. Tag or group devices by role at enrollment, not afterward. Done when each enrolled device appears in the admin inventory with the expected owner, tags and group membership.

  7. Test access rules and session logging

    Run a written test plan that covers allowed and denied paths for each group, exit nodes and subnet routes, and a revoked key or removed device. Confirm that every connection attempt, allow and deny decision and admin change is written to logs that leave the isolated network through your approved process. Note which Tailscale-style features you did not carry over, such as those that depend on external services. Done when the test results, log samples and the feature gap list are signed off by the security owner.

Moving clients and updates across the isolation boundary

Everything the enclave runs must cross the boundary as a verified copy, so the first decision is which artifacts you carry in. For Headscale that means the server binary or container image and the Tailscale client packages for each device operating system. For NetBird it means the management, signal, relay and dashboard images, the Traefik and Dex images, and the clients. Kubernetes offers a useful pattern: kubeadm init can list and pull control plane images in advance, and its --image-repository flag points the install at a private registry. Apply the same model here: pull and hash every image outside the enclave, push it to an internal registry, and configure the control plane to reference only that registry. The Headscale README notes that the GUI clients for Windows, macOS and iOS are not open source, so confirm which installers your licenses let you redistribute before you stage them.

Vulnerability data is the harder transfer because it changes constantly and many tools fetch it online by default. Wazuh publishes an offline installation guide for systems without internet connectivity, and its vulnerability detection can use an offline vulnerability repository in place of the Wazuh Cyber Threat Intelligence platform. Treat that repository as a transferred artifact: decide who builds it outside, how it is checksummed or signed, and how it is imported into the enclave's Wazuh deployment. Confirm the import format and procedure in the Wazuh deployment documentation for your version, because the layout should not be reconstructed from memory. Record each import as a dated change so that a finding can be traced back to the data set that produced it.

Questions buyers ask before an air-gapped rollout

Can a Tailscale-style mesh run with no internet access at all?

Yes, the control plane and relays can run inside an isolated network, but only if every component is deployed there. Headscale and NetBird both run on your own servers, so the coordination service does not need to reach a vendor cloud. You still need to plan for the pieces that normally reach outside: package and container images, client installers, time sync, certificate issuance and DNS. Teams usually mirror these into the enclave ahead of time and verify each artifact before it crosses the boundary. Confirm with the project which features assume public endpoints in your own test environment before committing.

Does NetBird or Headscale fit an air-gapped network better?

Choose by the features you need, not by the licence alone. NetBird ships a self-hosted stack with a dashboard, management, signal, relay and an embedded identity provider, so it covers more of the control plane in one deployment. Headscale is a narrower control server that works with the Tailscale clients and is designed for a single tailnet, and its README says it does not support running behind reverse proxies or in containers, which affects how you publish it inside a segmented network. Check whether your required access control, logging and SSO features exist in the version you will ship.

What does the NetBird self-hosting quickstart require from the host?

The quickstart lists a Linux virtual machine with at least 1 CPU and 2 GB of memory, a public domain, TCP ports 80 and 443 and UDP port 3478 open, and Docker with the Compose plugin. In an air-gapped network the public domain and certificate flow need an internal equivalent, so plan for internal DNS and a certificate authority your clients trust. Those minimums cover a small deployment. Relay capacity, log retention and the number of connected machines are the factors that push the host size up, so test with your own device counts before sizing.

What drives the cost of a self-hosted air-gapped mesh?

The cost has five components: the control plane hosts, relay or DERP servers placed where traffic must pass, the engineering time to build and validate the offline bundle, ongoing patching and on-call work, and any paid support or implementation. Hardware and virtualization are largely one-time, while patching, upgrades and monitoring recur. Costs rise with the number of enclaves, the number of relays needed for NAT traversal, and how often you must re-verify packages before they cross the boundary. Ask any quote to separate one-time build work from recurring operations and to state who holds the on-call duty.

Which Tailscale features have no offline equivalent I should plan for?

Anything that depends on a vendor-hosted service needs a replacement or must be dropped. Headscale's feature list includes an embedded DERP server and peer relays, which lets you keep relaying inside the enclave. The Headscale documentation says OIDC groups cannot be used in ACLs and autogroups are only partly supported, so policies that rely on those need redesign. Confirm the identity provider path, device posture data and any update channel for clients in your own environment before cutover.

Do NetBird's paid tiers need to be bought for SSO, SCIM or posture checks?

On NetBird's pricing page, SSO and MFA with an enterprise identity provider and SCIM provisioning appear in the Team tier, while device approvals, MDM and EDR controls, posture checks and traffic logging appear in Business. Those tiers are listed for NetBird Cloud billing, so confirm whether the same feature set applies to a self-hosted deployment and under which licence terms, since the management and relay components are AGPLv3. The self-hosted quickstart already includes an embedded identity provider that can connect external SSO providers, so you should verify each feature against the version you run.

What can our own team do without outside help, and what needs a partner?

A team with Linux, Docker and network administration skills can usually stand up a test enclave and run the quickstart components itself. The harder parts are building a repeatable offline bundle, hardening the hosts, testing failover of relays, writing the evidence that your assessor will ask for, and keeping the enclave patched without an internet path. Those tasks scale with the number of sites and the change control your environment demands. DeployOpen plans, implements, hardens, backs up and documents self-hosted platforms inside your own infrastructure, and runs security testing on the result, so you can scope only the parts you cannot staff.

What should an air-gapped rollout be checked against for compliance?

Map the access design to the control families your assessor uses. NIST SP 800-171 practices 3.1.12 to 3.1.14 cover monitoring and controlling remote access sessions, protecting their confidentiality with cryptography and routing remote access through managed access control points, which a mesh control plane can help evidence. NERC CIP-005-7 requires interactive remote access to pass through an intermediate system with encryption and multi-factor authentication, and CIP-013-2 addresses verifying the integrity of software and patches that cross the boundary. DeployOpen prepares systems and evidence for these assessments, but independent auditors issue the findings.

Evidence assessors ask for under this constraint

An assessor reviewing a Tailscale-style mesh inside an isolated network will ask how access is bounded, who may reach what, and how the boundary behaves when a relay or the offline path fails. The cards below cover the records that answer those questions. DeployOpen prepares this evidence for your compliance and security teams, but independent auditors issue any assessment result.

Architecture diagram with trust boundaries

Draw the control plane, relay or DERP servers, client segments, package repositories and any gateway to other networks, and mark each trust boundary. Show where the coordination server sits relative to the isolated network and which paths cross it. NIST SP 800-207 holds that location alone grants no implicit trust, so the diagram should show why each link is trusted. Check that it matches the running configuration, not the design intent.

NIST SP 800-207

Access policy export and review records

Export the ACL or access policy from the control plane on a fixed schedule and store each version with its change record. Keep dated review sign-offs that show who approved each rule and why. For Headscale, record which features are in use, since OIDC groups cannot be referenced in ACLs. Assessors will compare the exported file against the access the network actually allows.

MFA configuration for remote access

Document how users prove identity before a device joins the mesh, including the identity provider, MFA method and enforcement settings. CIS Controls Safeguard 6.4 and NIST SP 800-171 practice 3.1.12 both expect multi-factor authentication for remote access. Capture a configuration export and a test login showing MFA is required. Note any enrollment path that skips SSO, such as pre-authenticated keys, and how those keys are controlled.

CIS control assessment

Session and activity logs

Keep logs of which devices connected, when, and to which routes or services, and forward them to a store the isolated network controls. Define retention and who can read the logs. NIST SP 800-171 practices 3.1.12 and 3.1.13 call for monitoring and controlling remote access sessions. Test that a sample connection appears in the log and that an administrator can see a revoked device being cut off.

Software provenance for every imported package

Every installer, container image, Go module and firmware file carried across the isolated boundary needs a record of its source, checksum or signature, and the person who approved the transfer. NERC CIP-013-2 addresses verifying the integrity and authenticity of vendor software and patches. Keep a transfer log per media batch so an assessor can trace each client build back to its origin.

Tested relay and offline failure paths

Document what happens when the relay or coordination server is down, when a client loses its control plane, and when the offline package source is stale. Run each test, record the result and the recovery steps, and repeat after upgrades. NIST CSF 2.0 expects endpoint health and segmentation to hold under these conditions. Ask DeployOpen to prepare the test plan and evidence, and keep the signed results with the change records.

What to confirm with the vendor and your environment first

Before you commit to any option, confirm that each project supports a fully offline install and offline updates, because the supplied facts do not establish this for Headscale or NetBird. Ask each project for its documented air-gapped procedure, including how container images, the Docker Compose files and the dashboard assets reach the isolated network, and how a later version is staged and verified. Check the relay side as well: the NetBird quickstart expects UDP port 3478 and a public domain, so confirm how clients behave when no public STUN server is reachable and whether a self-hosted relay or the embedded DERP server in Headscale can run with no outbound path at all. Tailscale's own offline behavior is not covered by the supplied facts, so confirm it directly with Tailscale before treating it as a baseline for comparison.

Identity placement is the decision most likely to break the design. NetBird's self-hosted stack includes an embedded Dex identity provider that can federate to external SSO providers, and Headscale supports basic OIDC login but cannot use OIDC groups in ACLs. Decide whether your identity provider sits inside the enclave, in a separate management zone, or is reached through a one-way path, and confirm which group and SCIM features work when that provider is offline or unreachable. Ask each vendor whether its admin UI, API and update checks need any external endpoint.

Review licensing with your counsel before deployment. NetBird's clients are BSD-3-Clause, but its management, signal and relay servers are licensed under AGPLv3, which can carry source-offer obligations if you modify and expose those components. Headscale is BSD-3-Clause, and the Headscale README says the project does not support running behind reverse proxies or in containers, which affects your standard build. Confirm the required packaging and support path with each project in writing.

How DeployOpen deploys zero trust access under an air-gapped constraint

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own network, including air-gapped ones. For a Tailscale-style mesh with no internet, we scope the control plane, relays, package distribution and the feature gaps first, then build and test everything inside the isolated boundary.

How we scope

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • We map which Tailscale features your teams use today and which have no offline equivalent in Headscale or NetBird.
  • We confirm where the control plane, DERP or relay servers and client packages will run inside your network.

How we build

  • We deploy Headscale or NetBird inside your infrastructure with SSO, access policies and audit logging configured.
  • We set up self-hosted relay servers and a controlled path for moving verified client packages across the boundary.
  • We test access rules, device enrollment and session logging against the scope before anything is handed over.

How we hand over

  • You receive documentation covering architecture, access policies, enrollment steps and the offline update procedure.
  • We prepare the configuration and log evidence your security and compliance teams need for their own review.
  • Backups, upgrade steps and recovery procedures are documented so your operators can run the system after handover.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Upgrades to new releases are tested and carried across the air-gap through the same verification steps.
  • Our security testing and retests can cover the mesh, access policies and relay configuration as your network changes.

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.