adyya-flake/networking/firewall.mod.nix
Ittihadyya 634b971019
Some checks failed
/ Check formatting (push) Failing after 1s
open ports in firewall
2024-12-20 15:06:32 +02:00

54 lines
998 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
222 # forgejo ssh
443
64738 # murmur tcp
];
interfaces.eth0.allowedUDPPorts = [
64738 # murmur udp
];
};
}
];
}