firewall doesnt work idk

This commit is contained in:
Kopatz
2023-10-26 20:42:51 +02:00
parent 3e5a8143a3
commit 310d5ee2f0
2 changed files with 6 additions and 3 deletions

View File

@@ -22,8 +22,6 @@ in{
# Enable networking
#networking.networkmanager.enable = true;
networking.firewall.allowedTCPPorts = [ 22 53 80 443 ];
networking.firewall.allowedUDPPorts = [ 53 ];
# Set your time zone.
time.timeZone = "Europe/Vienna";
@@ -93,6 +91,7 @@ in{
environment.systemPackages = with pkgs; [
kate
nixos-option
wget
vim
tcpdump

View File

@@ -2,7 +2,11 @@
networking = {
defaultGateway = "192.168.0.1";
useDHCP = false;
firewall.enable = true;
firewall = {
enable = true;
allowedTCPPorts = [ 22 53 80 443 ];
allowedUDPPorts = [ 53 ];
};
nameservers = [
"127.0.0.1"
"1.1.1.1"