tailroute.

alpha v0.9.8

tailroute-cli manual · apache-2.0 · macOS 15+ · free & open source

On this page · name · the problem · synopsis · description · states · browser tunnels · what it cannot fix · security · diagnostics · project health · see also

Name

tailroute—automatic Tailscale + VPN coexistence daemon for macOS

The problem

Most commercial VPNs on macOS don't support split tunneling. The moment the VPN connects, it takes the default route and the DNS path with it: MagicDNS becomes unreachable, *.ts.net names stop resolving, and some VPNs also drop traffic to Tailscale's CGNAT range entirely. You are left choosing between internet and your peers—or hand-editing --accept-dns every time.

tailroute refuses the choice. It watches the routing table and makes the same call a careful admin would make, every time:

MESHdns on · proxy off COEXISTdns off · proxy :1055 IDLEwatches · changes nothing vpn connects vpn disconnects tailscale quits starts · no vpn starts · vpn on MESHdns on · proxy off COEXISTdns off · proxy :1055 IDLEwatches · changes nothing vpn connects vpn disconnects tailscale quits starts ·no vpn starts ·vpn on

fig. 1—the decision state machine; route-monitor events replayed below

…

Synopsis

$ brew install shrwnsan/tap/tailroute-cli
$ sudo tailroute install
$ tailroute status

Menu bar app (same engine, native UI, free during early access): brew install --cask shrwnsan/tap/tailroute

No Homebrew? Download the DMG ↗ · sha256 published on the release · unsigned—macOS will ask you to approve the first launch

The app is not notarized yet, so macOS blocks its first launch and may ask again after an upgrade. Open System Settings → Privacy & Security and choose Open Anyway next to the message about Tailroute. If the dialog offers Move to Trash, choose Done instead, because Move to Trash deletes the app. If the app disappears from Applications, run brew reinstall --cask shrwnsan/tap/tailroute.

Description

tailroute is a launchd daemon that watches the macOS routing table. When a commercial VPN connects, it disables Tailscale's MagicDNS so internet traffic keeps flowing through the VPN, and starts a SOCKS5 proxy on 127.0.0.1:1055 so Tailscale peers stay reachable through the mesh. When the VPN disconnects, it re-enables MagicDNS and stops the proxy. Decisions are event-driven (route monitor) with a 60-second re-assert.

It manages exactly one thing and touches nothing else. If no Tailscale interface is found it changes nothing. With several VPNs connected it treats the first utun interface with an IPv4 default route as the active VPN. A failed MagicDNS toggle is logged and retried at the next route event or the periodic re-assert.

States

ConditionMagicDNSSOCKS5 proxyElse
Tailscale + VPN activeoffup (127.0.0.1:1055)—
Tailscale onlyonstopped—
No Tailscale——keeps watching

Browser tunnels

Register a peer's Tailscale Serve dashboard once and open it in any browser with a valid .ts.net certificate—no extensions, no warnings. Tunnels are launchd-managed and adapt automatically: SOCKS5 path when the VPN is up, direct otherwise.

$ tailroute tunnel add mypeer

→ https://mypeer.yourtailnet.ts.net:8443

Need a tunnel gone for a while? tailroute tunnel stop mypeer parks it without tearing anything down: the URL refuses connections, but the registry entry and hosts mapping survive, and the parked state outlasts logins and reboots. tailroute tunnel start mypeer resumes it with the same local port and the same URL—no sudo, no re-registration. Both take --all; tunnel status shows a parked tunnel as stopped (by request), and tunnel restart refuses to implicitly start one.

$ tailroute tunnel stop mypeer
$ tailroute tunnel start mypeer

tunnel add verifies that the certificate served at the URL matches the peer's name and unwinds if it does not. --allow-unverified-tls skips that check; the choice is recorded in the registry, and tunnel open, tunnel list, and tunnel status warn about the tunnel until it is re-added without the flag. Tunnel jobs never prompt, so the peer's SSH host key must already be trusted; add prints the one ssh command to run when it is not.

Three read-only commands answer different questions: tunnel status is the inventory, tunnel drift compares the peer's live Serve config with what you registered, and tunnel check probes the path a browser takes and names the first layer that breaks. If a tunnel's launchd plist goes missing, tunnel repair mypeer rebuilds it from the registry with the same ports and URL; removing and re-adding would allocate new ports. After an interrupted add, update, or remove, tunnel journal clear recovers.

What it cannot fix

VPN Network Extensions may still block traffic to Tailscale's CGNAT range (100.64/10) at the packet level. Tested and blocked: Mullvad (WireGuard), NordVPN (NordLynx, OpenVPN, NordWhisper). The SOCKS5 proxy and tunnels are the supported paths when that happens. While the VPN is active, MagicDNS names do not resolve—use 100.x addresses or a tunnel.

Report your VPN's behavior: open a vpn-compat issue

Security

Diagnostics

$ tailroute status

daemon: running · tailscale: utun4 · vpn: utun3 · magicdns: disabled (vpn_active) · last check: 12s ago

Preview without changes: tailroute --dry-run. Logs: tail -f /var/log/tailroute.log.

Project health

Tagged releases, cumulative 38 of 40 releases shipped since Aug 24
0 10 20 30 40 Apr May Jun Jul Aug Sep Oct Nov 40
View data table
DateCumulative tagged releases
2026-03-271
2026-04-092
2026-08-243
2026-08-314
2026-09-0111
2026-09-0223
2026-09-0326
2026-09-1127
2026-09-2228
2026-09-2329
2026-09-2430
2026-09-3031
2026-10-2732
2026-10-3133
2026-11-0335
2026-11-0636
2026-11-1137
2026-11-1640
0.9.7

The proxy monitor survives macOS bash—the first crash no longer kills the restart loop before any restart happens.

2026-11-16 · bash 3.2-safe

0.9.6

The daemon restarts a crashed proxy—30-second health checks, 5→10→20s backoff, and a loop guard; status shows the monitor state.

2026-11-16 · the daemon owns restarts

0.9.5

uninstall restores MagicDNS with the Tailscale it finds—no more silent failures on Apple silicon Homebrew installs.

2026-11-12 · uses the Tailscale it finds

0.9.4

A changed ssh host key is no longer treated as first-time trust—the pre-flight says the key changed instead of inviting you to accept it. Unverified-TLS tunnels stay flagged in open, list, and status; registry writes are flushed to disk.

2026-11-07 · tests 554 → 593

0.9.3

Homebrew installs find their own proxy—Apple Silicon no longer reports Binary: Not installed, and proxy start stops waiting on a prompt nobody can answer.

2026-11-03 · tests 544 → 554

22 releases in 72 hours (Sep 1–3)—the v0.7→v0.8 hardening sprint: a burst of fixes after the 0.8.0 rewrite, each one tagged and tested. Full history: CHANGELOG.md ↗

See also