feat(sanji): use firewall and open ports

This commit is contained in:
Florian Schmitt 2024-12-27 10:09:03 +03:00
parent a1460d2ca3
commit b5a256472c

View file

@ -51,13 +51,21 @@
networking = {
hostName = "sanji";
firewall.enable = false;
firewall.allowedUDPPortRanges = [
{
from = 60000;
to = 61000;
}
];
firewall = {
enable = true;
allowedTCPPorts = [
80
4222
443
8081
];
allowedUDPPortRanges = [
{
from = 60000;
to = 61000;
}
];
};
nat = {
enable = true;
internalIPs = [ "10.10.5.0/24" ];