dotfiles/.config/nixos/shared/firewall.nix
Andrei Jiroh Halili 824366c5dd chore(global): initial commit for nixpkgs branch
Need to commit and push for community help at @hackclub slack
later.

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>
2024-12-29 19:39:14 +08:00

27 lines
No EOL
463 B
Nix

{ ... }:
{
# Open ports in the firewall.
networking.firewall.allowedTCPPortRanges = [
{ from = 1714; to = 1764; }
];
networking.firewall.allowedUDPPortRanges = [
{ from = 1714; to = 1764; }
];
networking.firewall.allowTCPPorts = [
22
80
443
3000
8000
];
networking.firewall.allowUDPPorts = [
22
80
443
3000
8000
];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
}