nixos: Improve inner firewalls

This commit is contained in:
2022-06-12 17:33:33 +01:00
parent c0ca7888aa
commit f38c5872a4
2 changed files with 18 additions and 2 deletions

View File

@@ -155,7 +155,15 @@
server.enable = true;
firewall = {
trustedInterfaces = [ "base" "vms" ];
trustedInterfaces = [ "vms" ];
extraRules = ''
table inet filter {
chain forward {
# Trust that the outer firewall has done the filtering!
iifname base oifname vms accept
}
}
'';
};
};
};