nixos-module/container/upstream: try fixing upstream.noNat.subnets4

This commit is contained in:
Astro 2022-09-18 23:02:46 +02:00
parent 8ee629945d
commit 6a181bbf18
1 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,8 @@ in
# Do not NAT our public IPv4 addresses
${lib.concatMapStringsSep "\n" (net:
lib.concatMapStrings (subnet: ''
iptables -t nat -I ${net}_nat \
iptables -t nat -I nixos-nat-post \
-o ${net} \
-s ${subnet} \
-j RETURN
'') upstreamInterfaces.${net}.upstream.noNat.subnets4 or []