summaryrefslogtreecommitdiff
path: root/modules/networking/firewall.nix
blob: 73bc44fa4481cce32ac90e47593e5cbe754d7403 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  networking.firewall = {
    enable = true;
    allowedUDPPorts = [ 53 ];

    allowedTCPPorts = [
      80
      443
    ];

    allowedUDPPortRanges = [
      {
        from = 60000;
        to = 61000;
      }
    ];
  };
}