host/oparic: enable NAT for container port forwarding

This commit is contained in:
2026-05-17 17:27:43 +08:00
parent 09b0f9c68e
commit 0b5a454ae0
+7 -1
View File
@@ -117,7 +117,13 @@
'';
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
networking.firewall.allowedTCPPorts = [ 80 443 40000 ];
networking.nat = {
enable = true;
internalInterfaces = [ "ve-o4dev" ];
externalInterface = "ens18";
};
# NixOS container: o4dev
containers.o4dev = {