fix: Set nftables input chain priority to -1 for CrowdSec compatibility

CrowdSec's blacklist chain runs at priority 0. Our loopback accept rule
needs to run first so local traffic isn't blocked. Also cleans up .bak
files after successful SafeApply.
This commit is contained in:
2026-10-15 07:23:48 +00:00
parent c87125d003
commit b45c0d6a81
2 changed files with 5 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ func TestGenerate_AlwaysIncludesStructure(t *testing.T) {
"table inet wild-central",
"set allowed_tcp_ports",
"chain input",
"type filter hook input priority filter; policy accept;",
"type filter hook input priority -1; policy accept;",
"iif \"lo\" accept",
"ct state { established, related } accept",
} {