From 226de3cf717e9063e1909d3c17ea2da4c5d7463c Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Sat, 1 Jul 2023 14:16:27 +0100 Subject: [PATCH] Enable the firewall in the network module. --- hosts/common/global/network.nix | 4 ++++ hosts/common/sshd.nix | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hosts/common/global/network.nix b/hosts/common/global/network.nix index 6705a8f..0a29895 100644 --- a/hosts/common/global/network.nix +++ b/hosts/common/global/network.nix @@ -1,3 +1,7 @@ { networking.useDHCP = true; + + networking.firewall = { + enable = true; + }; } diff --git a/hosts/common/sshd.nix b/hosts/common/sshd.nix index 321f23e..d73941f 100644 --- a/hosts/common/sshd.nix +++ b/hosts/common/sshd.nix @@ -16,8 +16,6 @@ }; networking.firewall = { - enable = true; allowedTCPPorts = [ 22 ]; - allowedUDPPorts = [ ]; }; }