summaryrefslogtreecommitdiff
path: root/modules/networking/firewall.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-03 01:52:03 -0700
committerFuwn <[email protected]>2024-09-03 01:52:03 -0700
commitc6deea451af1af2fdf4aee7f1ed74209f312a9b3 (patch)
treed725ce5a39939b1379f2a4141cd0ab54c1ef16cc /modules/networking/firewall.nix
parenthome (diff)
downloadnixos-config-c6deea451af1af2fdf4aee7f1ed74209f312a9b3.tar.xz
nixos-config-c6deea451af1af2fdf4aee7f1ed74209f312a9b3.zip
modules
Diffstat (limited to 'modules/networking/firewall.nix')
-rw-r--r--modules/networking/firewall.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/networking/firewall.nix b/modules/networking/firewall.nix
new file mode 100644
index 0000000..73bc44f
--- /dev/null
+++ b/modules/networking/firewall.nix
@@ -0,0 +1,18 @@
+{
+ networking.firewall = {
+ enable = true;
+ allowedUDPPorts = [ 53 ];
+
+ allowedTCPPorts = [
+ 80
+ 443
+ ];
+
+ allowedUDPPortRanges = [
+ {
+ from = 60000;
+ to = 61000;
+ }
+ ];
+ };
+}