diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 16c35c8b..eba5637c 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -59,6 +59,30 @@ in filter = sshd action = iptables-allports ''; + services.fail2ban.jails.nginx-botsearch = + '' + enabled = true + filter = nginx-botsearch + action = iptables-allports + ''; + services.fail2ban.jails.nginx-limit-req = + '' + enabled = true + filter = nginx-limit-req + action = iptables-allports + ''; + services.fail2ban.jails.postfix = + '' + enabled = true + filter = postfix + action = iptables-allports + ''; + services.fail2ban.jails.dovecot = + '' + enabled = true + filter = dovecot + action = iptables-allports + ''; networking = { hostName = "nixbld";