feat(bomba): improve firewall rules

This commit is contained in:
2026-03-21 23:27:18 +01:00
parent 9efff63559
commit 3691bae82c
+9 -8
View File
@@ -1,25 +1,26 @@
{ ... }: { ... }:
let
dockerNetwork = "172.18.0.0/16";
in
{ {
networking = { networking = {
networkmanager.enable = true; networkmanager.enable = true;
nftables.enable = true;
firewall = { firewall = {
enable = true;
allowedTCPPorts = [ allowedTCPPorts = [
22 22
80 80
443 443
5900
];
allowedTCPPortRanges = [
{
from = 8001;
to = 8005;
}
]; ];
allowedUDPPorts = [ allowedUDPPorts = [
80 80
443 443
]; ];
enable = true; extraInputRules = ''
ip saddr ${dockerNetwork} tcp dport 5900 accept
ip saddr ${dockerNetwork} tcp dport 8001-8005 accept
'';
}; };
}; };
} }