Enable the firewall in the network module.

This commit is contained in:
2023-07-01 14:16:27 +01:00
parent 373057e9e0
commit 226de3cf71
2 changed files with 4 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
{ {
networking.useDHCP = true; networking.useDHCP = true;
networking.firewall = {
enable = true;
};
} }

View File

@@ -16,8 +16,6 @@
}; };
networking.firewall = { networking.firewall = {
enable = true;
allowedTCPPorts = [ 22 ]; allowedTCPPorts = [ 22 ];
allowedUDPPorts = [ ];
}; };
} }