forked from zentralwerk/network
nixos-module/container/upstream: fix
This commit is contained in:
parent
bd95d81cba
commit
8583b55c0f
|
@ -89,7 +89,7 @@ in
|
||||||
# Do not NAT our public IPv4 addresses
|
# Do not NAT our public IPv4 addresses
|
||||||
${lib.concatMapStringsSep "\n" (net:
|
${lib.concatMapStringsSep "\n" (net:
|
||||||
lib.concatMapStrings (subnet: ''
|
lib.concatMapStrings (subnet: ''
|
||||||
ip6tables -t nat -I nixos-nat-post \
|
iptables -t nat -I nixos-nat-post \
|
||||||
-s ${subnet} \
|
-s ${subnet} \
|
||||||
-j RETURN
|
-j RETURN
|
||||||
'') upstreamInterfaces.${net}.upstream.noNat.subnets4 or []
|
'') upstreamInterfaces.${net}.upstream.noNat.subnets4 or []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user