adyya-flake/networking/firewall.mod.nix
Ittihadyya 2697607f91
Some checks failed
/ Check formatting (push) Failing after 1s
changed secret owner and formatted files
2024-12-20 16:19:33 +02:00

54 lines
1,013 B
Nix

{
universal.modules = [
{
networking.firewall.enable = true;
networking.nftables.enable = true;
}
];
fructose.modules = [
{
networking.firewall = {
allowedUDPPorts = [];
allowedTCPPorts = [
3000 # forgejo http
222 # forgejo ssh
];
};
}
];
glucose.modules = [
{
networking.firewall = {
allowedTCPPorts = [
64738 # murmur tcp
6700 # grafana
6750 # prometheus
];
allowedUDPPorts = [
64738 # murmur udp
6700 # grafana
6750 # prometheus
];
};
}
];
aspartame.modules = [
{
services.fail2ban.enable = true;
networking.firewall = {
interfaces.eth0.allowedTCPPorts = [
80 # http
222 # forgejo ssh
443 # https
64738 # murmur tcp
];
interfaces.eth0.allowedUDPPorts = [
64738 # murmur udp
];
};
}
];
}