reNixos/s0mePC-nix/networking/firewall.nix
s0me1newithhand7s e4e1b03c7e
treewide: upstreaming changes
Signed-off-by: s0me1newithhand7s <117505144+s0me1newithhand7s@users.noreply.github.com>
2025-10-24 21:03:46 +03:00

30 lines
728 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;
};
};
};
};
}