enable firewall again

replace iptables with nftables
disable reverse path filtering for all hosts
allow port 5353 for host running dnsmasq
closes #31
This commit is contained in:
Pim Kunis 2024-01-12 22:31:15 +01:00
parent efe9b57867
commit 6bcdd774ac
2 changed files with 8 additions and 4 deletions

View file

@ -52,8 +52,12 @@ in {
config = {
networking = {
domain = "hyp";
# TODO: Enabling the firewall makes connectivity of LAN -> DMZ impossible...
firewall.enable = false;
firewall = {
enable = true;
checkReversePath = false;
};
nftables.enable = true;
useDHCP = false;
};

View file

@ -22,8 +22,8 @@ in
config = lib.mkIf cfg.enable {
networking.firewall = {
allowedTCPPorts = [ 53 ];
allowedUDPPorts = [ 53 67 ];
allowedTCPPorts = [ 53 5353 ];
allowedUDPPorts = [ 53 67 5353 ];
};
services = {