Files
nixconf/modules/sys/firewall.nix
T

19 lines
339 B
Nix

{
networking = {
nftables = {
enable = true;
};
firewall = {
enable = true;
allowedTCPPorts = [ 4713 ];
#allowedUDPPorts = [ 80 443 ];
allowedTCPPortRanges = [
{ from = 8000; to = 9000; }
];
allowedUDPPortRanges = [
{ from = 8000; to = 9000; }
];
};
};
}