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 = {
|
config = {
|
||||||
networking = {
|
networking = {
|
||||||
domain = "hyp";
|
domain = "hyp";
|
||||||
# TODO: Enabling the firewall makes connectivity of LAN -> DMZ impossible...
|
firewall = {
|
||||||
firewall.enable = false;
|
enable = true;
|
||||||
|
checkReversePath = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
nftables.enable = true;
|
||||||
useDHCP = false;
|
useDHCP = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,8 @@ in
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
allowedTCPPorts = [ 53 ];
|
allowedTCPPorts = [ 53 5353 ];
|
||||||
allowedUDPPorts = [ 53 67 ];
|
allowedUDPPorts = [ 53 67 5353 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
Loading…
Reference in a new issue