fix: centralise the ports
This commit is contained in:
parent
f63aa7f245
commit
fe93f796a6
4 changed files with 8 additions and 12 deletions
|
@ -67,6 +67,11 @@ in {
|
|||
group = "named";
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [53];
|
||||
allowedUDPPorts = [53];
|
||||
};
|
||||
|
||||
services.bind = {
|
||||
enable = true;
|
||||
|
||||
|
|
|
@ -26,6 +26,9 @@
|
|||
|
||||
|
||||
networking = {
|
||||
# every sever needs to be accessable over ssh for admin use at least
|
||||
firewall.allowedTCPPorts = [22];
|
||||
|
||||
# explisitly stating this is good
|
||||
defaultGateway = "193.1.99.65";
|
||||
|
||||
|
|
|
@ -50,11 +50,6 @@ in {
|
|||
];
|
||||
};
|
||||
};
|
||||
|
||||
firewall = {
|
||||
allowedTCPPorts = [22 53];
|
||||
allowedUDPPorts = [53];
|
||||
};
|
||||
};
|
||||
|
||||
# open the firewall for this
|
||||
|
|
|
@ -34,13 +34,6 @@ in {
|
|||
tags = [ "active" "dns" ];
|
||||
};
|
||||
|
||||
networking = {
|
||||
firewall = {
|
||||
allowedTCPPorts = [22 53];
|
||||
allowedUDPPorts = [53];
|
||||
};
|
||||
};
|
||||
|
||||
# open the firewall for this
|
||||
skynet_firewall.forward = [
|
||||
"ip daddr ${ip_pub} tcp dport 53 counter packets 0 bytes 0 accept"
|
||||
|
|
Loading…
Reference in a new issue