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:
fig. 1—the decision state machine; route-monitor events replayed below
…
Synopsis
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
| Condition | MagicDNS | SOCKS5 proxy | Else |
|---|---|---|---|
| Tailscale + VPN active | off | up (127.0.0.1:1055) | — |
| Tailscale only | on | stopped | — |
| 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.
→ 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.
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
- Runs as a root launchd daemon; install writes a SHA-256 manifest
(
/var/db/tailroute/installed.checksums) verified before any library loads. - No telemetry, no external network calls, no account, no traffic logging.
- Interface names validated against
utun[0-9]+; absolute paths only. - 667 tests as of v0.9.8. Source: github.com/shrwnsan/tailroute-cli
Diagnostics
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
View data table
| Date | Cumulative tagged releases |
|---|---|
| 2026-03-27 | 1 |
| 2026-04-09 | 2 |
| 2026-08-24 | 3 |
| 2026-08-31 | 4 |
| 2026-09-01 | 11 |
| 2026-09-02 | 23 |
| 2026-09-03 | 26 |
| 2026-09-11 | 27 |
| 2026-09-22 | 28 |
| 2026-09-23 | 29 |
| 2026-09-24 | 30 |
| 2026-09-30 | 31 |
| 2026-10-27 | 32 |
| 2026-10-31 | 33 |
| 2026-11-03 | 35 |
| 2026-11-06 | 36 |
| 2026-11-11 | 37 |
| 2026-11-16 | 40 |
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
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
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
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
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
- CHANGELOG.md—release history
- architecture.md—system design
- Releases · Issues · Full manual on GitHub