From c277a38f5cd43f2abb84d6541149a800627fe869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 17 Apr 2024 21:09:45 +0200 Subject: [PATCH] upstream: add c3d2 range back --- nix/nixos-module/container/upstream.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix/nixos-module/container/upstream.nix b/nix/nixos-module/container/upstream.nix index ddb8763..43ae272 100644 --- a/nix/nixos-module/container/upstream.nix +++ b/nix/nixos-module/container/upstream.nix @@ -112,6 +112,10 @@ in -d ${destinationIP} -p ${fwd.proto} \ --dport ${destinationPorts} \ -s 172.20.72.0/21 -j MASQUERADE + iptables -t nat -A nixos-nat-post \ + -d ${destinationIP} -p ${fwd.proto} \ + --dport ${destinationPorts} \ + -s ${config.site.net.c3d2.subnet4} -j MASQUERADE '') config.networking.nat.forwardPorts} ''}