Troubleshoot hard NAT issues
Last validated:
In a scenario with three contingent conditions, you may experience network performance issues. This affects latency-sensitive traffic through connectors (exit nodes, subnet routers, and app connectors). One possible visible symptom is DNS resolution timing out. Perform network tests to diagnose your configuration and traffic and ascertain if the following are applicable.
-
Hard NAT makes establishing direct connections difficult (if not impossible). Tailscale will fall back to DERP relay servers based around the world.
-
If heavy packets per second or bits per second of traffic are relaying over these DERP TCP connections, there is a higher potential for head-of-line blocking—and in the extreme case: a TCP meltdown.
-
This packet blocking can occur with greater likelihood and impact on a network that consists of nodes with traffic aggregation and forwarding like subnet routers and exit nodes.
The preferred and recommended approach is to use direct peer-to peer connections rather than DERP relay connections for these key nodes. Removing the Hard NAT will address the underlying and contributing factors. Change it to a no NAT (directly accessible) or easy NAT configuration.
However, if removing the Hard NAT on the connector is not an option, you can attempt to minimize the contributing factor of packets blocked by shared traffic. One approach is to isolate latency-sensitive services behind separate subnet routers. Another approach would be to host latency-sensitive services on their own nodes without a subnet router in front of them.