If Tailscale is slow, first check whether the two devices have a direct connection. Tailscale’s poor performance guide says “the most common cause of performance issues between two devices” is a missing direct connection. Traffic then goes through a DERP relay server, and DERP servers “limit throughput to ensure fairness” between everyone using them.
Run tailscale status and tailscale ping before touching anything else. Tuning kernel offload on a machine whose traffic is going through a relay changes nothing.
The order is: find out whether the path is direct, learn why it is not, restore a direct path, then look at the endpoints, the exit node and what is in the middle.
Find out if you are relayed
Run this on either end:
tailscale status
Tailscale’s connection types documentation defines what the peer column tells you. direct means a peer-to-peer UDP tunnel. relay means traffic is crossing a Tailscale-operated DERP server. peer-relay means another device in the same tailnet is forwarding it.
These two lines are the documentation’s own examples, a direct peer and a DERP-relayed peer:
100.113.160.82 device-a tagged-devices linux active; offers exit node; direct 140.82.13.138:41641
100.104.93.78 localhost-0 user@ android active; relay "tor"
For a live view of a specific peer:
tailscale ping <peer-name>
The documentation’s example of a relayed run, shortened here, never leaves the DERP server and ends with a plain verdict:
pong from another-device (100.104.93.78) via DERP(tor) in 53ms
pong from another-device (100.104.93.78) via DERP(tor) in 196ms
pong from another-device (100.104.93.78) via DERP(tor) in 50ms
direct connection not established
Its direct example starts the same way, then switches to an IP address and port:
pong from another-device (100.113.160.82) via DERP(nyc) in 130ms
pong from another-device (100.113.160.82) via DERP(nyc) in 37ms
pong from another-device (100.113.160.82) via 140.82.13.138:41641 in 35ms
Read the output patiently. The documentation notes that the first few packets go through the nearest DERP server while Tailscale negotiates a direct connection, so a DERP line or two is normal. What matters is whether it upgrades. Persistent DERP or peer-relay entries ending in “direct connection not established” are your answer.
The performance documentation is blunt about why this matters: direct connections “nearly always result in lower latency and higher throughput”. The connection-types page adds that DERP relays are “generally slower than direct connections and may offer lower maximum throughput” because quality of service on them is limited. Peer relay sits in between, usually faster than DERP by avoiding a geographically distant hop, but still an extra hop.
DERP is not a bug. It is just not where you want to live.
You can put rough numbers on the gap with the mesh latency and throughput estimator on this site, which models a baseline round trip against the relay detour and shows what each path type does to your ceiling.
Find out why with tailscale netcheck
Run this on each device that shows relay:
tailscale netcheck
Tailscale’s device connectivity guide explains the fields that matter. It calls MappingVariesByDestIP “the most important field to determine why a device isn’t using direct connections.”
| Field | Value | What the docs say it means |
|---|---|---|
| UDP | false | No outbound UDP reached the STUN servers; the device likely isn’t using direct connections |
| MappingVariesByDestIP | true | The address and port vary between DERP servers: hard NAT, so the device is likely on DERP |
| MappingVariesByDestIP | false | No NAT or easy NAT; the device is likely to use direct connections |
| PortMapping | UPnP, NAT-PMP or PCP | The device supports port mapping and is generally considered easy NAT |
| PortMapping | false | No port mapping; the device likely cannot use direct connections |
Both ends decide the outcome. The same guide’s connectivity matrix:
| Device A | Device B | Expected connection |
|---|---|---|
| No NAT | No NAT, easy NAT or hard NAT | Direct |
| Easy NAT | Easy NAT | Direct |
| Easy NAT | Hard NAT | Relayed |
| Hard NAT | Hard NAT | Relayed |
Port mapping can rescue a hard NAT case. The guide says a device with any of the three protocols “might be able to use direct connections” even when MappingVariesByDestIP is true.
Get back to a direct path
The connection-types page names the most common blockers: blocked UDP packets and hard NAT.
UDP is blocked. A direct connection needs UDP in both directions. Where something on the network blocks it, the documentation’s fix is to “work with your network or service provider to allow outbound and return UDP traffic”. Otherwise, accept a relay there.
Hard NAT on one or both ends. Tailscale defines hard NAT as a gateway where each outbound connection gets its own port mapping and a different external port that outside devices cannot predict. Tailscale “can’t establish a direct connection if both devices are behind a hard NAT.” Cloud NAT gateways, such as those on AWS, “can behave like hard NATs”. There the docs suggest exposing public IP addresses and making sure UDP port 41641 is not blocked.
No port mapping on the router. The documentation’s home and small office advice is to “enable NAT-PMP or UPnP port mapping on your router to give Tailscale more predictable, reachable ports.”
No open port. Per the same page, “opening UDP port 41641 on a device’s public IP address ensures a direct connection from any peer device, where possible.” You can change that port by passing --port=<number> to tailscaled.
A firewall policy you wrote. On a node you control, confirm outbound UDP is permitted and that UDP port 41641 is not blocked.
When a direct path is impossible: peer relays
If both ends stay behind hard NAT, a Tailscale Peer Relay can carry the traffic instead of DERP. The relay and the devices that use it need Tailscale 1.86 or later. The relay can run any operating system other than iOS, Apple TV or Android.
On a device the other tailnet devices can reach, pick a UDP port for relay traffic:
tailscale set --relay-server-port=40000
Then add a grant with the tailscale.com/cap/relay capability to the policy file. This is the documentation’s example, letting devices tagged tag:us-east-vpc use relays tagged tag:us-east-relays:
{
"grants": [
{
"src": ["tag:us-east-vpc"], // Devices that can be accessed through the peer relay
"dst": ["tag:us-east-relays"], // Devices functioning as peer relays for the src devices
"app": {
"tailscale.com/cap/relay": [] // The relay capability doesn't require any parameters
}
}
]
}
The documentation warns against * as the src, which “would make all devices in the tailnet attempt to use the peer relay devices”. If no peer relay is available, devices fall back to DERP. Confirm the result with tailscale status | grep peer-relay.
Fix the endpoints
Once a peer shows direct and it is still slower than the link should allow, the bottleneck has moved to the machines.
Turn on UDP offload on Linux forwarding nodes. Tailscale’s performance best practices say Tailscale 1.54 or later with a Linux 6.2 or later kernel “enables UDP throughput improvements using transport layer offloads”. For a Linux exit node or subnet router, it gives this block:
NETDEVS=$(
(ip -4 -o route get 8.8.8.8; ip -6 -o route get 2001:4860:4860::8888) 2>/dev/null |
awk '{for (i = 1; i < NF; i++) if ($i == "dev") print $(i + 1)}' |
sort -u
)
for NETDEV in $NETDEVS; do
sudo ethtool -K "$NETDEV" rx-udp-gro-forwarding on rx-gro-list off
done
The commands find the network device that carries the IPv4 and IPv6 routes to the internet, such as eth0. Then ethtool turns rx-udp-gro-forwarding on and rx-gro-list off for each one.
The documentation also notes that ethtool changes “don’t persist after a reboot”. If both networkd-dispatcher and NetworkManager are enabled, follow only the NetworkManager steps. If neither is enabled, it suggests considering a “oneshot” systemd service.
For networkd-dispatcher, check with systemctl is-enabled networkd-dispatcher, then create the script the documentation gives:
NETDEVS=$(
(ip -4 -o route get 8.8.8.8; ip -6 -o route get 2001:4860:4860::8888) 2>/dev/null |
awk '{for (i = 1; i < NF; i++) if ($i == "dev") print $(i + 1)}' |
sort -u
)
if [ -n "$NETDEVS" ]; then
{
printf '#!/bin/sh\n\n'
printf 'ethtool -K %s rx-udp-gro-forwarding on rx-gro-list off\n' $NETDEVS
} | sudo tee /etc/networkd-dispatcher/routable.d/50-tailscale
sudo chmod 755 /etc/networkd-dispatcher/routable.d/50-tailscale
else
echo 'No network devices found.'
fi
Test that it runs:
sudo /etc/networkd-dispatcher/routable.d/50-tailscale
test $? -eq 0 || echo 'An error occurred.'
For NetworkManager, used by default on Raspberry Pi OS (Bookworm and later), Fedora and RHEL, check with systemctl is-enabled NetworkManager. Then save the settings in each device’s connection profile:
NETDEVS=$(
(ip -4 -o route get 8.8.8.8; ip -6 -o route get 2001:4860:4860::8888) 2>/dev/null |
awk '{for (i = 1; i < NF; i++) if ($i == "dev") print $(i + 1)}' |
sort -u
)
if [ -n "$NETDEVS" ]; then
for NETDEV in $NETDEVS; do
CONNECTION_UUID=$(nmcli -g GENERAL.CON-UUID device show "$NETDEV") || continue
case "$CONNECTION_UUID" in
"" | "--")
echo "$NETDEV has no active NetworkManager connection."
continue
;;
esac
sudo nmcli connection modify uuid "$CONNECTION_UUID" \
ethtool.feature-rx-udp-gro-forwarding on \
ethtool.feature-rx-gro-list off &&
sudo ethtool -K "$NETDEV" rx-udp-gro-forwarding on rx-gro-list off
done
else
echo 'No network devices found.'
fi
Check kernel and client versions. The same documentation says Linux kernel 6.2 or later “provides the best performance by enabling Tailscale to use the latest kernel features”. It also notes that a recent operating system “typically offers the most recent software and hardware optimizations”.
Prefer clock speed over core count. The documentation is explicit that “higher CPU clock speed is more important than more cores”. It also recommends the most recent generation of CPU architecture available to you. Keep that in mind when choosing the machine that acts as your subnet router or exit node.
Watch for userspace networking mode. Tailscale documents this mode as the way to run “where you don’t have access to create a VPN tunnel device”, which it notes “often happens in container environments”. It applies where Linux systems lack /dev/net/tun, such as Heroku and Google Cloud Run. Three places to check:
- Docker. The Docker parameters page lists
TS_USERSPACEas “Enabled by default”. It says “Userspace networking works everywhere but has lower performance. SetTS_USERSPACE=falseto use kernel networking”. Kernel networking also needs/dev/net/tunand added capabilities. - Linux hosts. The userspace networking page turns the mode on with
--tun=userspace-networkingin theFLAGSline of/etc/default/tailscaled. Look there withgrep FLAGS /etc/default/tailscaled. - Other systems. Per kernel vs. netstack routing, exit nodes and subnet routers on FreeBSD, macOS and Windows always run in userspace. Its summary table rates performance “best” in kernel mode and “acceptable” in userspace mode.
Why is my Tailscale exit node slow?
By default, Tailscale “doesn’t touch your public internet traffic”, per the exit nodes documentation. So without an exit node, your normal browsing does not go through Tailscale at all. Once you pick an exit node, it captures all traffic not already going to a subnet router or app connector. Your internet traffic then depends on the exit node’s path and capacity.
Work through it in this order:
- Check the path to the exit node. Run
tailscale ping <exit-node>. If it ends in “direct connection not established”, fix the relay first using the sections above. - Check the exit node’s load. Tailscale’s internet performance guide says to check “the bandwidth usage, the CPU usage, and the RAM usage” on the exit node.
- Check what it runs on. A Linux exit node in kernel mode is the “best” case and can use the offload settings above. On macOS, Windows or FreeBSD it runs in userspace. The exit nodes page warns that an Android exit node “may be too slow for most cases”.
- Turn it off if you do not need it. The CLI reference disables the exit node with an empty value:
tailscale set --exit-node=
For setting one up properly, see the Tailscale exit node setup guide.
Fix what is in the middle
If the two endpoints are healthy and the path is direct, the remaining suspect is whatever is forwarding on their behalf.
The subnet router is a single machine. All traffic to an advertised range crosses one node, which means that node’s CPU, NIC and uplink are the ceiling for the entire subnet. Per Tailscale’s subnet documentation, a Linux subnet router also requires kernel IP forwarding to be enabled, and it is exactly the class of device that benefits from the offload commands above. If a whole site feels slow, look at the router before looking at the clients; see subnet router configuration for MSS clamping and GRO.
What MTU does Tailscale use?
WireGuard wraps every packet in UDP. The WireGuard paper shows “exactly 16 bytes of header fields” in front of each encrypted packet, plus the outer UDP and IP headers. Tailscale’s mtu.go counts up to 80 bytes of WireGuard headers in the worst case (IPv6).
The same file sets the default “safe” MTU for the Tailscale interface: safeTUNMTU is 1280. Tailscale uses it “in the absence of other information such as path MTU probes”. The CLI reference lists no MTU flag.
To test whether a full-size packet crosses the tunnel, use Linux ping with the don’t-fragment flag set:
ping -M do -s 1252 <tailnet-ip>
The ping manual says -M do sets the DF flag, and -s sets the data bytes. The ICMP header adds 8 bytes and an IPv4 header adds 20, so 1252 + 8 + 20 = 1280. If a plain ping <tailnet-ip> works and this one fails, investigate path MTU rather than bandwidth.
Measure it properly
Use a real throughput tool such as iperf3 rather than inferring bandwidth from a file copy, which mixes in disk speed and protocol overhead. Per the iperf3 manual, start a server on one node:
iperf3 -s
By default the server listens on TCP port 5201. From the other node, test the tailnet address, then the LAN address of the same machine:
iperf3 -c <tailnet-ip>
iperf3 -c <lan-ip>
Test both paths. The difference isolates the overlay from everything else. Testing only the tunnel tells you nothing about whether the underlying link was ever fast.
Test the direction you care about. By default the client sends and the server receives, which measures the client’s upload. Add -R to reverse it:
iperf3 -c <tailnet-ip> -R
Where these facts come from
This guide draws on Tailscale’s documentation (connection types, device connectivity, peer relays, performance best practices, userspace networking, kernel vs. netstack routing, exit nodes, Docker parameters, subnet routers, the CLI reference and two troubleshooting pages). It also uses Tailscale’s net/tstun/mtu.go source, the WireGuard protocol paper, the Linux ping manual and the iperf3 manual, as checked on 2026-11-17. We did not run these commands ourselves.
The checklist in priority order
tailscale statuson both ends. If the peer saysrelay, stop and fix that first.tailscale netcheckon each relayed device. ReadUDP,MappingVariesByDestIPandPortMapping.- Allow outbound and return UDP, enable NAT-PMP or UPnP on the router, or open UDP port 41641 to the device’s public IP.
- Re-check with
tailscale pingand confirm the path upgrades to direct. - If both ends stay behind hard NAT, set up a peer relay on Tailscale 1.86 or later.
- On Linux exit nodes and subnet routers, apply the UDP GRO forwarding commands and persist them.
- Confirm Tailscale 1.54+ and kernel 6.2+ on those forwarding nodes.
- Check whether the bottleneck node runs in userspace mode (
TS_USERSPACE,--tun=userspace-networking, or a non-Linux exit node) or on an underpowered CPU. - Ping the exit node, check its bandwidth, CPU and RAM, and turn it off with
tailscale set --exit-node=if you do not need it. - Test path MTU with
ping -M do -s 1252when a plainpingworks. - Compare tailnet throughput against LAN throughput, in both directions, with
iperf3.
Most of this is decided at setup time. The Tailscale setup guide covers the configuration choices that avoid these conditions. How a Tailscale mesh VPN works explains why the coordination and data planes behave the way they do. If the relay behaviour is pushing you to evaluate alternatives, Tailscale compared with ZeroTier and NetBird covers how the others handle the same problem.