TailscaleGuide
Isometric white cube linked by glowing lines to pink cubes ringing a diamond platform below a stacked node, representing a mesh VPN coordination plane
Networking

Tailscale Mesh VPN Architecture: Coordination, NAT and ACLs

Trace a laptop-to-server connection through Tailscale. See how NAT traversal, direct and relayed WireGuard paths, and ACLs shape the connection.

By TailscaleGuide Editorial · ·Updated · 4 min read

The Tailscale mesh VPN has two planes. The control plane helps devices find each other and distributes access rules. The data plane carries WireGuard packets directly when NAT traversal succeeds, or through a relay when needed. Devices apply the access rules locally. The mesh VPN network these devices form is called a tailnet.

Control plane and data plane are separate

When a laptop and server join a tailnet, Tailscale’s coordination service distributes peer information, including device public keys and network endpoints. It also sends configuration such as DNS settings, routes, and access rules. Each device’s Tailscale client turns those rules into a local packet filter. Tailscale’s control and data plane documentation

WireGuard encrypts application traffic from end to end on every path. The coordination arrows below carry configuration. The packet arrows show the possible routes for the same laptop-to-server traffic. Tailscale’s connection types reference

Control plane (peer details and policy)
Laptop <----> Coordination service <----> Server

Data plane (WireGuard-encrypted packets)
Laptop <------------ direct UDP --------> Server
Laptop <----> Peer Relay device <-------> Server
Laptop <----> DERP server <-------------> Server

For self-hosted coordination, see Headscale vs. Tailscale.

The addresses and names a tailnet hands out

The laptop can use the server’s Tailscale IP address or its machine name when MagicDNS is enabled. A Tailscale IP stays stable as the device changes networks. The public IP and UDP port a peer uses to reach that device can change when it moves between networks. Tailscale’s device connection guide and NAT traversal explanation

NAT traversal and relays

Follow a laptop opening an HTTPS service on a server. Both devices already run Tailscale and belong to the same tailnet.

  1. Find the peer. The laptop has the server’s public key from coordination. It contacts the server through DERP, and the peers exchange details for a possible direct connection. DERP can carry the first encrypted packets while the endpoints negotiate. Connection types
  2. Probe across NAT. A STUN server can tell each peer what public IP and UDP port its outbound traffic came from. Both peers send UDP probes to each other around the same time. Outbound probes can create NAT mappings and firewall state that let matching packets back through. How NAT traversal works
  3. Pick a path. If the probes establish a direct UDP path, WireGuard packets go straight between the devices. If direct UDP fails, Tailscale tries a configured Peer Relay that both devices can reach. If none is available, the traffic stays on DERP. Connection types
  4. Apply the access rule. The server’s Tailscale client decrypts incoming packets and filters them against the access rules before passing allowed traffic to the HTTPS service. Control and data planes and Manage permissions using ACLs

A Peer Relay is another device in your tailnet. DERP is Tailscale’s relay infrastructure and can carry packets over HTTPS. Tailscale periodically checks for a better path, so the same connection can switch from relayed to direct as conditions change. Connection types

Identity replaces IP allowlists

An access control list (ACL) can match the user’s group, a device tag, and a destination port. The coordination service distributes the policy and the receiving device enforces it on incoming tailnet traffic. Tailscale recommends grants for new policies and continues to support ACLs. Manage permissions using ACLs

Suppose the laptop’s user is in group:staff and the server has tag:web. The policy allows that group to reach the tag on TCP port 443, with no other ACL or grant allowing the group to reach port 22 on that server. Tailscale’s ACL policy examples

SourceSame destinationConnection attemptPolicy result
Laptop user in group:staffServer tagged tag:webHTTPS on TCP 443Allowed by the port rule
Laptop user in group:staffServer tagged tag:webSSH on TCP 22Denied because no rule permits it

The result is the same on a direct path or a relay. Tailscale starts new tailnets with an allow-all policy, so this example assumes that policy has been replaced. See Tailscale’s ACL documentation and the worked ACL examples.

Names, subnet routers and exit nodes

The laptop and server in the example both run Tailscale. To reach devices on a private subnet without installing a client on each one, use a subnet router. To send a client’s internet traffic through another Tailscale device, use an exit node. Tailscale’s routing overview

For configuration steps, see the first tailnet setup guide, subnet router guide, and exit node guide.

Operational details that bite later

Identify the active path

From the laptop, open the server’s permitted HTTPS service. While generating traffic, run the command below and find the server’s row by its name or Tailscale IP. Connection types

tailscale status
Example label in the server’s rowActive path
direct followed by an IP address and portA direct UDP path to the server
peer-relayA relay through another tailnet device
relay "tor"DERP through the relay region identified by tor

If the path changes, run the command again while the devices are communicating. For a persistent relay, tailscale netcheck shows the local network conditions that can affect direct connections. Tailscale’s device connectivity reference and the relay troubleshooting guide

If a device’s key expires, connections to and from that device stop until it reauthenticates. Tailscale’s key expiry documentation

For other mesh architectures, see Tailscale compared with ZeroTier and NetBird.

Evidence and limits. The walkthrough follows Tailscale’s January 2026 control-plane documentation and June 2026 connection types reference. Peer Relay requires Tailscale 1.86 or later on participating devices. The examples were not run on a live tailnet. Tailscale Peer Relay requirements

Sources

  1. Tailscale documentation: Control and data planes
  2. Tailscale documentation: Connection types
  3. Tailscale documentation: Connect to devices
  4. Tailscale engineering: How NAT traversal works
  5. Tailscale documentation: Manage permissions using ACLs
  6. Tailscale documentation: ACL policy examples
  7. Tailscale documentation: Subnet routers
  8. Tailscale documentation: Device connectivity
  9. Tailscale documentation: Key expiry
  10. Tailscale documentation: Tailscale Peer Relays

Related