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 = { networking = {
hostName = "sanji"; hostName = "sanji";
firewall.enable = false; firewall = {
firewall.allowedUDPPortRanges = [ enable = true;
allowedTCPPorts = [
80
4222
443
8081
];
allowedUDPPortRanges = [
{ {
from = 60000; from = 60000;
to = 61000; to = 61000;
} }
]; ];
};
nat = { nat = {
enable = true; enable = true;
internalIPs = [ "10.10.5.0/24" ]; internalIPs = [ "10.10.5.0/24" ];