diff options
author | tv <tv@krebsco.de> | 2022-12-30 21:34:05 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2022-12-30 21:41:43 +0100 |
commit | 2ebbec1f2d9c16fe084abba87718d0f60e61bf88 (patch) | |
tree | 961f24ea689a45061087ab27d26f79d487d23111 /lass/2configs/container-networking.nix | |
parent | 42f604cd1b45e73422277a7c0431eab97165a910 (diff) |
krebs.iptables: precedence -> mkOrder
Diffstat (limited to 'lass/2configs/container-networking.nix')
-rw-r--r-- | lass/2configs/container-networking.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lass/2configs/container-networking.nix b/lass/2configs/container-networking.nix index f04e4342d..0cfe193d9 100644 --- a/lass/2configs/container-networking.nix +++ b/lass/2configs/container-networking.nix @@ -8,8 +8,8 @@ { v6 = false; predicate = "-o ve-+"; target = "REJECT --reject-with icmp-port-unreachable"; } { v6 = false; predicate = "-i ve-+"; target = "REJECT --reject-with icmp-port-unreachable"; } ]; - krebs.iptables.tables.nat.PREROUTING.rules = [ - { v6 = false; predicate = "-s 10.233.2.0/24"; target = "ACCEPT"; precedence = 1000; } + krebs.iptables.tables.nat.PREROUTING.rules = lib.mkBefore [ + { v6 = false; predicate = "-s 10.233.2.0/24"; target = "ACCEPT"; } ]; krebs.iptables.tables.nat.POSTROUTING.rules = [ { v6 = false; predicate = "-s 10.233.2.0/24 -d 224.0.0.0/24"; target = "RETURN"; } |