nftabler,nftablesdoc: stringify numerical dstnat prio

When nftablesdoc tests dump the state of nftables, the argument '-y' /
'--numeric-priority' isn't used, so all priorities should be
stringified. However, there's a bug in older versions of nftables that
prevents the stringification of the 'dstnat' priority — it's currently
dumped as '-100'.

New versions fix that, and thus running these tests on Debian 13 fails
because of this discrepancy with golden files.

So, look for 'type nat hook output priority -100' and stringify the
priority to ensure compatibility across versions of nft.

Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
Albin Kerouanton
2025-08-20 10:52:33 +02:00
parent a4949b669e
commit fbde2bcb9a
292 changed files with 295 additions and 292 deletions

View File

@@ -7,6 +7,7 @@ import (
"fmt"
"net"
"net/netip"
"strings"
"testing"
"github.com/moby/moby/v2/daemon/libnetwork/drivers/bridge/internal/firewaller"
@@ -99,8 +100,9 @@ func testNftabler(t *testing.T, tn string, config firewaller.Config, netConfig f
assert.Assert(t, is.Contains(res.Combined(), "No such file or directory"))
return
}
out := strings.ReplaceAll(res.Combined(), "type nat hook output priority -100", "type nat hook output priority dstnat")
assert.Assert(t, res.Error)
golden.Assert(t, res.Combined(), name+"__"+family+".golden")
golden.Assert(t, out, name+"__"+family+".golden")
}
makePB := func(hip string, cip netip.Addr) types.PortBinding {

View File

@@ -22,7 +22,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -22,7 +22,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -22,7 +22,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -22,7 +22,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -22,7 +22,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -22,7 +22,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

View File

@@ -26,7 +26,7 @@ table ip6 docker-bridges {
}
chain nat-OUTPUT {
type nat hook output priority -100; policy accept;
type nat hook output priority dstnat; policy accept;
ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump nat-prerouting-and-output
}

Some files were not shown because too many files have changed in this diff Show More