Remove floating IP

This commit is contained in:
Paul-Henri Froidmont 2022-10-30 01:42:32 +02:00
parent a4e1399331
commit 832b9cb918
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
4 changed files with 10 additions and 32 deletions

View file

@ -91,20 +91,8 @@
};
};
networking.interfaces.eth1 = {
useDHCP = true;
ipv4 = {
addresses = [
{
address = "95.216.177.3";
prefixLength = 32;
}
];
};
};
networking.firewall.allowedTCPPorts = [ 80 443 64738 ];
networking.firewall.allowedUDPPorts = [ 64738 ];
networking.firewall.interfaces."eth2".allowedTCPPorts = [ config.services.prometheus.exporters.node.port ];
networking.firewall.interfaces."eth1".allowedTCPPorts = [ config.services.prometheus.exporters.node.port ];
}

View file

@ -8,7 +8,7 @@
../modules/monitoring-exporters.nix
];
networking.firewall.interfaces."eth2".allowedTCPPorts = [ config.services.prometheus.exporters.node.port config.services.postgresql.port ];
networking.firewall.interfaces."eth1".allowedTCPPorts = [ config.services.prometheus.exporters.node.port config.services.postgresql.port ];
sops.secrets = {
borgSshKey = {