nixos-module/container/upstream: fix nat

This commit is contained in:
Astro 2021-04-06 22:59:51 +02:00
parent daa7bef9d5
commit fcc3fbaf52
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ in
networking.nat = lib.optionalAttrs (firstUpstreamInterface != null) {
enable = true;
internalInterfaces = [ "core" ];
externalInterface = firstUpstreamInterface;
forwardPorts = config.site.hosts.${hostName}.forwardedPorts;
};