Fix ports firewall

This commit is contained in:
soraefir
2026-05-03 13:21:22 +02:00
parent 38350b91e1
commit c8cb980c15
3 changed files with 15 additions and 1 deletions

View File

@@ -4,6 +4,15 @@
useDHCP = true;
nameservers = [ "1.1.1.1" "9.9.9.9" ];
firewall = { enable = true; };
firewall = {
enable = true;
allowedUDPPorts =
(if config.syscfg.server ? wireguard then [ 1515 ] else [ ]) ++
[ ];
allowedTCPPorts =
(if config.syscfg.server ? web then [ 80 443 22 ] else [ ]) ++
[ ];
};
};
}