From 5f79348c0797be492a3e919fb0eae1b7e0f075c5 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Sun, 1 Apr 2018 11:27:39 +0200 Subject: [PATCH] Activation firewall --- configuration.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/configuration.nix b/configuration.nix index 946fb1e1b..ffc1587f9 100644 --- a/configuration.nix +++ b/configuration.nix @@ -56,11 +56,9 @@ services.openssh.enable = true; services.openssh.permitRootLogin = "no"; - # Open ports in the firewall. - # networking.firewall.allowedTCPPorts = [ ... ]; - # networking.firewall.allowedUDPPorts = [ ... ]; - # Or disable the firewall altogether. - # networking.firewall.enable = false; + networking.firewall.allowedTCPPorts = [ ]; + networking.firewall.allowedUDPPorts = [ ]; + networking.firewall.enable = true; security.sudo.wheelNeedsPassword = false;