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

@ -10,7 +10,7 @@ in {
};
config = lib.mkIf cfg.enable {
networking.firewall.allowedTCPPorts = [ 5432 ];
networking.firewall.interfaces.${config.lab.networking.mainNicNamePattern}.allowedTCPPorts = [ 5432 ];
services.postgresql = {
enable = true;