Repository navigation
v1.0.21
v1.0.21 — Kill-switch redesign: fail-secure and independent of exit-node state
This release reworks the kill switch so it can never be torn down by an exit-node change, and moves it clear of the native kill-switch rule GL introduced on firmware 4.9. It closes a leak where the kill switch could briefly disarm during a Tailscale restart, and it makes the plugin's kill switch the only leak protection that covers IPv6 and the guest network on 4.9.
Kill switch
- Now keyed purely on user intent. The kill switch is armed whenever its toggle is on and Tailscale is enabled — nothing else. It no longer disarms when the exit node is removed, changed, or transiently cleared. A dropped, removed, or reset exit node now results in blocked traffic, never a leak (fail-secure). Only turning the kill switch off or disabling Tailscale removes the rules.
- Closes the transient-teardown leak. Earlier versions keyed the kill switch on the daemon's live exit-node ID, which GL clears momentarily during every
tailscale up --reset. On a slow uplink the re-apply could read that empty value mid-restart and tear the rules down — a real-IP leak window. Reported by Shox187 (MT3000 4.8.1, repeater on a mobile hotspot); the redesign removes the dependency entirely, so the leak is closed by construction. - Priority moved from 5280 to 5279. GL firmware 4.9 ships its own kill-switch rule (
ts_killswitch) at priority 5280, covering IPv4 on the LAN bridge only. The plugin's rules now sit at 5279 so the two coexist without collision — and because GL's rule covers neither IPv6 nor the guest network, the plugin's kill switch remains the only protection for those. Upgrading migrates the old 5280 rules to 5279 with the new rule installed before the old one is removed, so there is no unprotected gap; the removal is scoped to the plugin's own rules and never touches GL's. - Watchdog is now per address family. Teardown detection and the re-assert backstop are each checked for IPv4 and IPv6 independently, so an IPv6-only rule loss is detected and re-armed within one poll. The re-assert covers the boot window and any unforeseen clobber; it only ever adds the kill switch, never removes it.
IPv6 through the exit node on firmware 4.9
- LAN clients now get working IPv6 through the exit node on 4.9. On 4.9 the plugin previously deferred masquerade to GL — but GL's "IP Masquerading" toggle sets only IPv4 masquerade on the Tailscale zone, not IPv6 (
masq6) (observed on 4.9.0), so forwarded LAN IPv6 entered the exit-node tunnel but couldn't get replies back and silently didn't work. The plugin now setsmasq6on the tailscale0 zone itself on all firmware (still leaving the IPv4masqto GL on 4.9), so exit-node IPv6 works regardless of GL's toggle. This also corrects the v1.0.20 note that implied enabling a GL toggle restores IPv6 on 4.9.
Other
- Clean uninstall across versions.
pkg/prermremoves the kill-switch rules at both 5279 (current) and 5280 (legacy), for both families, so no rules are stranded when removing after an in-place upgrade. - Side-switch accessory updated. The optional physical-switch script (
accessories/gl-switch.d/tailscale.sh) checks for the plugin's kill switch at its new 5279 priority before releasing its transition lockdown.
Upgrade note
Use the one-command installer or a plain opkg install for upgrades and recovery — both preserve settings and keep the kill switch installed throughout. Avoid opkg install --force-reinstall, which runs a full removal first and drops the kill-switch rules for a few seconds until the post-install re-apply restores them.
Verified
- AXT1800 4.8.4 fw4 — control/test leak pair on a dual-stack client: with the kill switch off, dropping the tunnel leaked the client's real IPv4 and real IPv6 straight to the WAN; with the kill switch armed, the same drop blocked both families with zero leaks, the routing rules holding in both families throughout. Kill-switch arm and disarm also verified.
- IPv6 masquerade on 4.9 (MT3000 4.9.0 fw3) — removing
tailscale0.masq6killed LAN-client IPv6 through the exit node; the plugin then restored it automatically on the next config read, IPv6 came back, and GL's IPv4masqwas left untouched. Pre-4.9 behavior (plugin sets both families) unchanged. - MT3000 4.9.0 fw3 — failure-mode leak suite with the kill switch armed (WAN bounce /
up --resetwindow, Tailscale daemon stop/start, exit-node removal, exit-node-server outage) — zero leaks in every case. A dual-stack control/test pair on this box made GL's own gap explicit: with only GL's native 4.9 kill-switch active, dropping the tunnel blocked IPv4 but leaked the client's real IPv6 to the WAN; with the plugin's kill switch armed, the same drop blocked both families with zero leaks, GL's rule coexisting at 5280. Legacy-rule migration and a reboot/boot-window test also verified live.
Full Changelog: v1.0.20...v1.0.21