forked from mirrors_public/oddlama_nix-config
fix(nftables): fix missing migration to new nftables firewall branch
This commit is contained in:
parent
1ae55fa9f6
commit
3e0e03fc31
1 changed files with 9 additions and 12 deletions
|
@ -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
|
||||
;
|
||||
};
|
||||
};
|
||||
}));
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue