Accepting Subnet Routes Stranded Our SSH: The LAN Bypass Rule
Joining a small device to the tailnet with route acceptance turned on sent its reply traffic into the mesh and cut off the SSH session from the lab's management host. A single policy-routing rule for the hosts that must stay local fixed it.

Key Architectural Takeaways
- With route acceptance on, return traffic to LAN hosts can take the mesh path, producing asymmetric routing that breaks SSH.
- A policy-routing rule (ip rule) for the specific hosts that must stay local fixes it without disabling route acceptance.
- Make the rule persistent from the start, or the next reboot recreates the problem.
The challenge
The handheld console needs to reach the lab when it is away from home, so we joined it to the Tailscale mesh with subnet route acceptance enabled. The mesh advertises the lab's server subnet through a router node. Without a countermeasure, that change strands SSH from the lab's management host to the device on the home network after a reboot.
What broke
Route acceptance installs the advertised subnets into a routing table consulted ahead of the main table. When the management host's packets arrived at the device over the local network, the replies matched a mesh-advertised subnet and were sent out the tunnel instead. The sender saw replies from a different path, or none, and the TCP session died. This is classic asymmetric routing, and the lab has met it before, which is why we normally avoid enabling route acceptance on infrastructure hosts.
The fix
A small policy-routing rule gives a short list of local hosts a bypass: for traffic to or from those addresses, look up the main routing table first, before the mesh table. It is one ip rule entry at a priority above the mesh rule (we used 5100), plus a systemd unit that applies it at boot. The unit is the important part: a rule added by hand does not survive a reboot, which is exactly when the problem bites, so after installing it manually we codified it in its own reviewed change instead of leaving it as a one-off.
What stays open
Getting reachability from outside the house needs more than a routing fix:
- The assistant had moved to a separate network segment, so the handheld's configured address pointed at a place that no longer exists.
- Only the original server subnet was advertised on the mesh. The new segment had to be advertised from the primary router node and its standbys and then approved in the access policy.
- The assistant's internal name does not resolve on the home network's DNS, so the config uses an address.
Until those are changed, the handheld shows as offline from outside no matter how well DNS is handled. We also bounded the client's name lookups so a dead resolver cannot stall the display: a shared 1.5 second budget in the LAN phase and IPv4-only lookups.
Verification
The bypass unit is installed on the device and SSH from the management host works with route acceptance on. The remaining off-network gap was documented as a separate change that needs an explicit go-ahead.
Takeaway
Joining a device to an overlay network changes its routing table, and the failure shows up as a dead SSH session, not as an error. Test the reboot path, and scope the bypass to exactly the hosts that need it.