host/oparic: enable NAT for container port forwarding
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user