WolfStack icon indicating copy to clipboard operation
WolfStack copied to clipboard

Uninstaller silently breaks LAN connectivity on Tailscale+subnet-route setups — WolfNet remnants survive, accept-routes never reverted

Open Blarks-de opened this issue 5 months ago • 2 comments

Uninstaller leaves Tailscale subnet routes active, breaking LAN SSH and network mounts

Summary

After uninstalling WolfStack, surviving Tailscale configuration causes complete LAN SSH failure and all network mounts to fail at boot. The system is only reachable via Tailscale. Root cause: WolfStack enables --accept-routes in Tailscale during setup but never reverts this on uninstall.

Environment

  • OS: Debian 13 (Trixie), kernel 6.12.90
  • Docker: 29.5.3
  • Tailscale: 1.98.4
  • WolfStack: latest (installed and uninstalled via setup.sh)
  • Network: Tailscale peer (dockfish) advertising subnet route 192.168.5.0/24 — same subnet the host lives on

Steps to reproduce

  1. Install WolfStack on a machine that is also running Tailscale
  2. Have at least one Tailscale peer advertising a subnet route that overlaps with your LAN (e.g. 192.168.5.0/24)
  3. WolfStack enables --accept-routes during setup (presumably to integrate WolfNet with Tailscale peers)
  4. Uninstall WolfStack via the uninstaller
  5. Reboot

Result: LAN SSH times out. Network mounts fail. Machine only reachable via Tailscale IP.


What broke and why

1. LAN SSH unreachable

Symptom: SSH on port 22 timed out from any LAN machine. sshd was listening correctly (0.0.0.0:22), no firewall rules blocked it, LAN interface had the correct IP.

Root cause: Tailscale's policy routing table (table 52) contained:

192.168.5.0/24 dev tailscale0

with routing rule:

5270: from all lookup 52

This caused asymmetric routing: incoming SYN packets arrived via enp4s0 (LAN), but reply routing consulted table 52 first and sent SYN-ACK out via tailscale0. TCP handshake never completed.

Fix:

sudo tailscale set --accept-routes=false

This immediately removed the conflicting route from table 52 and restored LAN connectivity.


2. All network mounts failed at boot

Symptom: Four _netdev fstab mounts failed at boot with mount error(101): Network is unreachable:

  • Three CIFS mounts to NAS at 192.168.5.101
  • One sshfs remote mount

The NAS was reachable via ping. Credentials were valid.

Root cause: Same as above. At boot, Tailscale applied table 52 routes (including 192.168.5.0/24 dev tailscale0) before its tunnel to the advertising peer was established. mount.cifs got ENETUNREACH because the only known route for 192.168.5.0/24 was via a not-yet-connected Tailscale peer.

Note: _netdev + network-online.target is not sufficient — that target is satisfied by the presence of enp4s0, not by Tailscale being connected.

Boot timeline (from dmesg):

Time Event
+0s Boot
+1s wolfnet.service starts, wolfnet0 comes up
+1s Tailscale applies table 52 routes including 192.168.5.0/24 dev tailscale0
+3s All four _netdev mounts fail: ENETUNREACH
+23min After fix: tailscale set --accept-routes=false, mounts restarted — all online

Surviving remnants after uninstall

The uninstaller also left these behind (not causing active breakage, but should be cleaned up):

Remnant Location Status
wolfnet.service /etc/systemd/system/wolfnet.service Still running after uninstall
wolfnet0 interface kernel Still present, 10.10.10.x/24
/etc/wolfnet/ config dir Contains config.toml and private.key
/usr/local/bin/wolfnet binary Still installed
wolfusb.service systemd Still active

Suggested fixes for the uninstaller

  1. Before removing services: run tailscale set --accept-routes=false (or save and restore the pre-install value)
  2. Stop and disable wolfnet.service and wolfusb.service
  3. Bring down and delete the wolfnet0 interface before service removal
  4. Remove /usr/local/bin/wolfnet and /etc/wolfnet/

Alternatively: during install, save the current Tailscale --accept-routes state and restore it on uninstall, rather than unconditionally leaving it enabled.


Additional notes

This combination (WolfNet + Tailscale + subnet route advertising) will affect any homelab user who:

  • runs Tailscale with subnet routes on their LAN
  • installs WolfStack
  • later uninstalls it

The failure mode is silent and hard to diagnose because SSH appears to be working (it's listening, no firewall blocks it) but TCP handshakes never complete due to asymmetric routing. The system looks broken but the actual cause is invisible without checking ip route show table 52.

Personal note

I genuinely liked what I saw of WolfStack — the UI is impressive and the feature set is exactly what a homelab operator wants. But this bug cost me several hours of debugging on a Saturday, and left my machine unreachable on the LAN until I tracked down the asymmetric routing issue manually. Until the uninstaller properly cleans up Tailscale state and WolfNet remnants, I can't run WolfStack alongside Tailscale with any confidence — which rules it out for my setup for now. I'm filing this because the root cause is non-obvious and will hit others. Hope it helps.

Blarks-de avatar Jun 06 '26 12:06 Blarks-de

Thanks will look into it and fix it.

intelligentwolf avatar Jun 06 '26 12:06 intelligentwolf

Thanks for the exceptionally well-diagnosed report — the ip route show table 52 detail and the boot timeline made the root cause unambiguous. Fixed in v24.26.1.

One thing worth stating plainly, because it changes part of the fix: WolfStack/WolfNet never enables Tailscale --accept-routes. I grepped the entire codebase — the setup scripts and the WolfNet daemon — and nothing runs tailscale set/tailscale up or touches that pref. The only Tailscale interaction WolfNet has is adding a single iptables OUTPUT ... --dport 41641 -j DROP rule scoped to its own 10.10.10.0/24 overlay subnet (to stop a WireGuard routing loop). So the asymmetric-routing breakage — table 52 hijacking LAN return traffic — came from --accept-routes already being enabled on the node plus a peer advertising 192.168.5.0/24. That's a genuinely nasty failure mode, but it's your Tailscale policy, and WolfStack silently flipping it off on uninstall would be the wrong call.

What was our bug — and is now fixed — is the uninstaller leaving WolfNet fully live. The WolfNet teardown was gated behind --wolfnet (which you'd have to know to pass), so a default uninstall.sh left wolfnet.service running and wolfnet0 up, and wolfusb.service was never touched at all. A surviving wolfnet0 with its routes is exactly the kind of thing that compounds a routing problem.

uninstall.sh now, on every uninstall (no flags needed):

  • Stops + disables wolfnet.service and tears down wolfnet0, so no live overlay with conflicting routes survives WolfStack's removal. (The binary and /etc/wolfnet are still preserved for a clean reinstall unless you pass --wolfnet / --purge.)
  • Removes the iptables loop-prevention rule WolfNet adds — its Drop only ever closed the fd, never deleted the rule or the interface, which is why both survived.
  • Stops + disables + removes wolfusb.service (and its binary; config on --purge).
  • Tailscale advisory: if it detects active subnet routes in policy table 52 on the way out, it prints the exact symptom + the fix (tailscale set --accept-routes=false) and offers to run it for you — but never changes it silently. So the next person hits a clear prompt instead of a table 52 mystery.

Net: we clean up everything that's ours, and we now surface (and optionally fix) the Tailscale interaction rather than leaving you to find it by hand.

Genuinely appreciate you writing this up properly instead of just walking away — that's what made it fixable, and it'll save the next homelab user the Saturday. It's in v24.26.1 (on the beta channel now, stable build in progress). A setup.sh re-pull, or just grabbing the latest uninstall.sh, gets the fixed uninstaller.

Closing as fixed — please reopen if anything's still off on your setup.

intelligentwolf avatar Jun 06 '26 12:06 intelligentwolf