Fix ports firewall

This commit is contained in:
soraefir committed 2026-05-03 13:45:16 +02:00
1 parent 38350b91e1
commit c8cb980c15
3 files changed
+15 -1

No files matched your search

+10 -1
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 [ ]) ++
[ ];
};
};
}