parameterize main nic and dmz bridge interface names

firewall some services to particular interfaces
This commit is contained in:
Pim Kunis 2024-01-13 00:05:25 +01:00
parent 6bcdd774ac
commit 76501362f7
5 changed files with 44 additions and 28 deletions

View file

@ -50,7 +50,7 @@ in
};
config = lib.mkIf cfg.enable {
networking.firewall.allowedTCPPorts = [
networking.firewall.interfaces.${config.lab.networking.dmzBridgeName}.allowedTCPPorts = [
2049 # NFS
5432 # PostgeSQL
111 # NFS