parameterize main nic and dmz bridge interface names
firewall some services to particular interfaces
This commit is contained in:
parent
6bcdd774ac
commit
76501362f7
5 changed files with 44 additions and 28 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue