From 60076eaea555e49714e649d8cef36d3eefbf5f1a Mon Sep 17 00:00:00 2001 From: Frost-Phoenix <67cyril6767@gmail.com> Date: Mon, 25 Dec 2023 14:52:43 +0100 Subject: [PATCH] open some firewall ports --- modules/core/network.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/core/network.nix b/modules/core/network.nix index 3473231..3cda36a 100755 --- a/modules/core/network.nix +++ b/modules/core/network.nix @@ -4,6 +4,15 @@ hostName = "nixos"; networkmanager.enable = true; nameservers = [ "1.1.1.1" ]; + firewall = { + enable = true; + allowedTCPPorts = [ 22 80 443 59010 59011 ]; + allowedUDPPorts = [ 59010 59011 ]; + # allowedUDPPortRanges = [ + # { from = 4000; to = 4007; } + # { from = 8000; to = 8010; } + # ]; + }; }; environment.systemPackages = with pkgs; [