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/libvirt.nix | |
parent | 42f604cd1b45e73422277a7c0431eab97165a910 (diff) |
krebs.iptables: precedence -> mkOrder
Diffstat (limited to 'lass/2configs/libvirt.nix')
-rw-r--r-- | lass/2configs/libvirt.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lass/2configs/libvirt.nix b/lass/2configs/libvirt.nix index d391e0d7b..6d07c7a77 100644 --- a/lass/2configs/libvirt.nix +++ b/lass/2configs/libvirt.nix @@ -20,8 +20,8 @@ krebs.iptables.tables.filter.OUTPUT.rules = [ { v6 = false; predicate = "-o virbr0 -p udp -m udp --dport 68"; target = "ACCEPT"; } ]; - krebs.iptables.tables.nat.PREROUTING.rules = [ - { v6 = false; predicate = "-s 192.168.122.0/24"; target = "ACCEPT"; precedence = 1000; } + krebs.iptables.tables.nat.PREROUTING.rules = lib.mkBefore [ + { v6 = false; predicate = "-s 192.168.122.0/24"; target = "ACCEPT"; } ]; krebs.iptables.tables.nat.POSTROUTING.rules = [ { v6 = false; predicate = "-s 192.168.122.0/24 -d 224.0.0.0/24"; target = "RETURN"; } |