reNixos/ada/networking/firewall.nix
s0me1newithhand7s aae7900229 s0mePC-nix -> ada: rename
Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
2026-02-08 22:04:57 +03:00

30 lines
530 B
Nix

{...}: {
networking = {
firewall = {
allowPing = true;
enable = true;
checkReversePath = false;
interfaces = {
eno1 = rec {
allowedTCPPortRanges = [
{
from = 1714;
to = 1764;
}
];
allowedUDPPortRanges = allowedTCPPortRanges;
};
salt-hand7s-pc = rec {
allowedTCPPorts = [
6567
];
allowedUDPPorts = allowedTCPPorts;
};
};
};
};
}