nixos-config/system/security/firewall.nix

12 lines
314 B
Nix
Raw Normal View History

{ ... }:
{
# Firewall
networking.firewall.enable = true;
# Open ports in the firewall.
2024-07-15 21:12:20 +05:30
networking.firewall.allowedTCPPorts = [ 22000 21027 ]; # syncthing
networking.firewall.allowedUDPPorts = [ 22000 21027 ]; # syncthing
# Or disable the firewall altogether.
# networking.firewall.enable = false;
}