AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

i365Finds Editorial is the independent research and editorial organization behind 365 Wiki. We follow changes in tools, products, services, entertainment, and digital life around the world, turning scattered and fast-moving information into clearly sourced, well-structured public content that is easier to understand and compare.
Indexed 90,207 Wiki articles

Headscale vs. Tailscale: The Real Privacy Trade-offs of Self-Hosting WireGuard Coordination

Rob Barshad · 365Finds Editorial

If your only goal is preventing an ISP or eavesdropper from snooping on your network traffic, running Headscale instead of official Tailscale will not change a thing. Both systems run the exact same WireGuard data plane. Both encrypt your actual packets end-to-end between your devices using private keys that never leave your hardware. Tailscale Inc. cannot inspect your file transfers, read your SSH sessions, or see what internal web app you are loading.

The real divergence lies in metadata, identity coupling, and relay architecture.

When you use official Tailscale, you hand Tailscale Inc. the blueprint of your entire digital life: which machines exist, what operating systems they run, their public and private IP addresses, connection timestamps, and how they connect to one another. You also tether your mesh network to a centralized Identity Provider—usually Google, Microsoft, GitHub, or Apple. When direct peer-to-peer punching fails, your encrypted packets flow through Tailscale’s global DERP relays.

Headscale, an open-source reimplementation of the Tailscale coordination server, lets you run this control plane on your own virtual private server or home hardware. At 365Finds, we look at Headscale not as an automatic privacy silver bullet, but as a deliberate redistribution of operational risk.

Here is what the trade-offs actually look like when stripped of homelab hype.


The Architectural Split: Control Plane vs. Data Plane

To understand what you gain—and what you sacrifice—you have to separate how Tailscale moves data from how it coordinates connections.

+-------------------------------------------------------------+
|                       CONTROL PLANE                         |
|  Tailscale SaaS OR Self-Hosted Headscale                   |
|  - Authenticates machines & users                           |
|  - Distributes public keys, Tailscale IPs, and ACLs         |
|  - Coordinates NAT traversal (STUN endpoints)               |
|  * NEVER handles private keys or packet payload             |
+------------------------------+------------------------------+
                               |
            Exchange Public Keys & Endpoints
                               |
                               v
+-------------------------------------------------------------+
|                        DATA PLANE                           |
|  Point-to-Point WireGuard Tunnel (Peer A <-----> Peer B)     |
|  - Encrypted locally with Curve25519                        |
|  - Direct UDP connection whenever NAT traversal succeeds    |
|  - Fallback to DERP Relay (HTTPS) only when P2P is blocked  |
+-------------------------------------------------------------+

The Data Plane

Your nodes generate WireGuard private/public key pairs locally. The private key remains strictly on the client. All point-to-point traffic between nodes travels across encrypted WireGuard tunnels. Tailscale’s corporate infrastructure cannot decrypt these packets because it never possesses the cryptographic keys to do so. In this regard, official Tailscale and Headscale offer identical data secrecy.

The Control Plane

Devices need to discover each other, learn each other’s public WireGuard keys, map dynamic public IP addresses, and enforce access control lists (ACLs). This coordination role belongs to the control plane.

This is where the privacy debate begins.


What Official Tailscale Coordination Servers See

Tailscale operates a multi-tenant cloud service. According to Tailscale's published security architecture and privacy documentation, the SaaS coordination server processes and stores substantial operational metadata:

If a corporate entity holds this data, it can reconstruct your working patterns, device refresh cycles, travel movements (via public IP shifts), and internal network topology. Furthermore, because Tailscale Inc. is a United States corporation, these metadata logs fall under US legal jurisdiction and standard subpoena procedures.


The Identity Trap: SSO vs. Local Keys

One of Tailscale’s greatest user experience triumphs is also its most awkward privacy compromise: it does not maintain its own independent user directory.

To use official Tailscale, you must authenticate through a recognized third-party Identity Provider (IdP):

Every time you enroll a device or re-authenticate on official Tailscale, an external technology giant logs that authentication event. For users attempting to compartmentalize their identity, this creates a permanent link between personal cloud identities and physical home lab hardware.

How Headscale Solves This

Headscale discards mandatory third-party SSO. You have two options:

  1. Zero-IdP Local Control: Generate pre-authenticated keys via the Headscale CLI or API. You register nodes directly from the command line without any external identity provider involved.
  2. Self-Hosted OIDC: Connect Headscale to an open-source identity stack you control—such as Authentik, Authelia, or Keycloak.

At 365Finds, we consider this identity decoupling the strongest single privacy argument for Headscale. It prevents your internal network access from becoming an entry in Google's or Microsoft’s identity audit trail.


The DERP Relay Dilemma: The Silent Metadata Leak

Tailscale's legendary NAT traversal relies on STUN, UPnP, and ICE-like techniques to punch direct UDP holes between firewalls. But when two peers sit behind symmetric NATs or restrictive enterprise firewalls, direct P2P connections are impossible.

In those moments, traffic falls back to a DERP (Designated Encrypted Relay for Packets) server.

[Peer A] ---> Encrypted WireGuard in TLS ---> [DERP Relay] ---> Encrypted WireGuard in TLS ---> [Peer B]

DERP relays do not possess your private keys; they forward opaque encrypted packets over TCP port 443. Tailscale cannot inspect the data inside the relay tunnel.

However, DERP servers see everything surrounding the data:

The Dangerous Default in Headscale

Many administrators set up Headscale, confirm that their nodes can ping each other, and assume their network is 100% independent.

They overlook the default relay configuration.

By default, Headscale’s sample configuration pulls Tailscale’s official public DERP map (https://controlplane.tailscale.com/derpmap/default). If a connection between two Headscale clients fails to establish a direct peer-to-peer route, those clients silently fall back to bouncing their encrypted traffic through Tailscale Inc.’s global relay servers.

Tailscale Inc. may not run your Headscale coordinator, but their relays will still process your connection metadata.

How to Fix It in Headscale

To maintain true privacy, you must explicitly eliminate Tailscale's DERP servers and run your own:

# In /etc/headscale/config.yaml
derp:
  server:
    enabled: true
    region_id: 999
    region_code: "headscale-derp"
    region_name: "Headscale Embedded DERP"
    stun_listen_addr: "0.0.0.0:3478"
    private_key_path: /var/lib/headscale/derp_server_private.key
    ipv4: 203.0.113.10
    ipv6: 2001:db8::1

  # CRITICAL: Empty the URLs list to prevent querying Tailscale's relay map
  urls: []
  paths: []
  auto_update_enabled: false

Running an embedded DERP server requires opening TCP 443 (or your designated DERP port) and UDP 3478 (for STUN) to the public internet. If you fail to configure this or block these ports, clients behind restrictive NATs will experience hard connection failures instead of seamless fallback.


The Operational Reality: Security vs. Privacy

Privacy does not exist in a vacuum. When you take complete ownership of the control plane, you assume full responsibility for defending it.

Evaluation MetricOfficial Tailscale SaaSSelf-Hosted Headscale
Data Payload SecrecyEnd-to-end WireGuard (Tailscale cannot read)End-to-end WireGuard (Host cannot read)
Network Metadata LocationTailscale Inc. cloud infrastructureYour own virtual machine or bare metal server
Identity / Auth DependencyMandatory external IdP (Google, GitHub, etc.)Local CLI keys or self-hosted OIDC (Authentik)
DERP Relay DefaultTailscale global relay networkEmbedded server or Tailscale fallback (configurable)
High Availability & FailoverGlobally distributed, managed multi-regionSingle VPS or self-managed database clustering
Client Usability & SetupSeamless 1-click login on all app storesCustom server URL entry; mobile requires profile tweaks
Advanced Feature ParityInstant access to Tailscale Funnel, Drive, LockCommunity-maintained lag; experimental features delayed
Operational BurdenZero maintenanceOS patches, TLS renewals, SQLite/PostgreSQL backups

Cryptographic Defense: Tailnet Lock

Tailscale introduced Tailnet Lock, an architectural mechanism designed to mitigate the exact risk of an untrusted or compromised coordination server. When Tailnet Lock is enabled, nodes will not accept network map updates unless those updates are cryptographically signed by designated trusted signing nodes within your own network.

Even if an attacker compromises Tailscale’s SaaS infrastructure—or even if a rogue insider alters the coordination database—they cannot inject malicious public keys into your tailnet without your private signing keys.

Headscale implements basic node registration and key coordination, but managing distributed signing and staying aligned with rapid upstream cryptographic shifts remains an ongoing maintenance effort for third-party tools.

What Happens When Headscale Goes Down?

Because WireGuard creates point-to-point connections, an outage of your Headscale server does not instantly terminate existing tunnels. If two laptops have already exchanged keys and established a direct UDP link, they can continue communicating.

However, the moment an endpoint changes IP addresses (such as moving from home Wi-Fi to a cellular hotspot), re-keying is required, or a new device attempts to join, the network freezes. With official Tailscale, high availability is handled across enterprise infrastructure. With Headscale, if your single $5/month cloud VPS drops offline while you are traveling, your remote access is dead.


365Finds Pragmatic Verdict

At 365Finds, we avoid blanket recommendations because the correct choice depends entirely on your personal threat model:

  1. Choose Official Tailscale if:

    • Your threat model is protection against local network snooping, public Wi-Fi interception, and ISP surveillance.
    • You value high reliability, zero server maintenance, and frictionless onboarding across mobile phones, tablets, and family devices.
    • You trust Tailscale's zero-knowledge data plane and do not consider connection metadata or Google/GitHub authentication logs to be critical vulnerabilities.
  2. Choose Headscale if:

    • You refuse to allow any third-party corporate entity to store your network topology, endpoint IP logs, or machine names.
    • You want to run your mesh VPN entirely decoupled from commercial Identity Providers using local CLI tokens or self-hosted Authentik/Keycloak.
    • You are prepared to maintain your own public VPS, configure TLS certificates, secure SSH access, manage backups, and run an embedded DERP relay with urls: [] properly enforced.

Self-hosting Headscale is not a shortcut to better encryption; it is an administrative commitment to managing your own metadata footprint.


References