summaryrefslogtreecommitdiffstats
path: root/lass/2configs/gg23.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-12-30 21:52:45 +0100
committerlassulus <lassulus@lassul.us>2022-12-30 21:52:45 +0100
commit96f27d2db0caf10fb1257f16f58e67484c8ca354 (patch)
tree961f24ea689a45061087ab27d26f79d487d23111 /lass/2configs/gg23.nix
parent59a0ed177a437d4cce269183865b0dedd783ad0a (diff)
parent2ebbec1f2d9c16fe084abba87718d0f60e61bf88 (diff)
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'lass/2configs/gg23.nix')
-rw-r--r--lass/2configs/gg23.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lass/2configs/gg23.nix b/lass/2configs/gg23.nix
index 89ccae408..6bcbd7400 100644
--- a/lass/2configs/gg23.nix
+++ b/lass/2configs/gg23.nix
@@ -56,8 +56,8 @@ with import <stockholm/lib>;
{ v6 = false; predicate = "-o int0"; target = "REJECT --reject-with icmp-port-unreachable"; }
{ v6 = false; predicate = "-i int0"; target = "REJECT --reject-with icmp-port-unreachable"; }
];
- krebs.iptables.tables.nat.PREROUTING.rules = [
- { v6 = false; predicate = "-s 10.42.0.0/24"; target = "ACCEPT"; precedence = 1000; }
+ krebs.iptables.tables.nat.PREROUTING.rules = mkBefore [
+ { v6 = false; predicate = "-s 10.42.0.0/24"; target = "ACCEPT"; }
];
krebs.iptables.tables.nat.POSTROUTING.rules = [
{ v6 = false; predicate = "-s 10.42.0.0/24 ! -d 10.42.0.0/24"; target = "MASQUERADE"; }