fix(nftables): fix missing migration to new nftables firewall branch

This commit is contained in:
oddlama 2023-10-15 16:36:16 +02:00
parent 1ae55fa9f6
commit 3e0e03fc31
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -9,7 +9,6 @@
attrNames
flip
mdDoc
mkForce
mkIf
mkMerge
mkOption
@ -53,7 +52,7 @@ in {
}));
networking.nftables.firewall = mkMerge (flip map (attrNames cfg) (proxy: {
zones = mkForce {
zones = {
# Parent zone for the whole interface
${cfg.${proxy}.nicName}.interfaces = [cfg.${proxy}.nicName];
# Subzone to specifically target the proxy host
@ -64,8 +63,7 @@ in {
};
};
rules = mkForce {
"${proxy}-to-local" = {
rules."${proxy}-to-local" = {
from = [proxy];
to = ["local"];
@ -75,7 +73,6 @@ in {
allowedUDPPorts
;
};
};
}));
};
}