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:
parent
efe9b57867
commit
6bcdd774ac
2 changed files with 8 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue