From f5d55c6a6048cad9bc2d63112161cc67e4ac74c2 Mon Sep 17 00:00:00 2001 From: Nico Date: Sat, 3 May 2025 16:16:01 +1000 Subject: [PATCH] nixos: block all ports on the firewall --- hosts/nixos-common.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/nixos-common.nix b/hosts/nixos-common.nix index 6a759cf..eca85d9 100644 --- a/hosts/nixos-common.nix +++ b/hosts/nixos-common.nix @@ -12,6 +12,11 @@ # Networking networking.networkmanager.enable = true; + # Firewall + networking.firewall.enable = true; + networking.firewall.allowedTCPPorts = [ ]; + networking.firewall.allowedUDPPorts = [ ]; + # Set your time zone. time.timeZone = "Australia/Sydney";