Open necessary firewall ports for serving web requests
This commit is contained in:
parent
9030577f20
commit
82dfc79b64
|
@ -181,10 +181,14 @@
|
||||||
#services.unifi.unifiPackage = pkgs.unifi8;
|
#services.unifi.unifiPackage = pkgs.unifi8;
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
networking.firewall = {
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
enable = true;
|
||||||
# Or disable the firewall altogether.
|
allowedTCPPorts = [ 80 443 ];
|
||||||
# networking.firewall.enable = false;
|
allowedUDPPortRanges = [
|
||||||
|
#{ from = 4000; to = 4007; }
|
||||||
|
#{ from = 8000; to = 8010; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# Copy the NixOS configuration file and link it from the resulting system
|
# Copy the NixOS configuration file and link it from the resulting system
|
||||||
# (/run/current-system/configuration.nix). This is useful in case you
|
# (/run/current-system/configuration.nix). This is useful in case you
|
||||||
|
|
Loading…
Reference in New Issue