Files
tailscale/util/linuxfw
Nick Garlis 85095d76d9 util/linuxfw: remove connmark rules in firewall cleanup (#22417)
The iptables and nftables cleanups didn't remove the connmark rules
from the mangle tables, so they were left behind by --cleanup and
after an unclean exit followed by a switch to another firewall mode.

AddConnmarkSaveRule created mangle/OUTPUT with type filter, which
iptables-nft can't add rules to. Create it with type route, as
iptables-nft does, and at startup delete the old filter-type chain
if nothing else uses it.

Updates #22363

Change-Id: I7b64e8e9894773f1dd88384c3339106603db15ae
Signed-off-by: Nikolaos Gkarlis <[email protected]>
2026-12-03 17:39:29 -08:00
..