diff --git a/systems/x86_64-linux/prefect/services/fail2ban.nix b/systems/x86_64-linux/prefect/services/fail2ban.nix index 7b73b112..ae0bbc17 100644 --- a/systems/x86_64-linux/prefect/services/fail2ban.nix +++ b/systems/x86_64-linux/prefect/services/fail2ban.nix @@ -10,5 +10,19 @@ "172.16.0.0/12" "192.168.0.0/16" ]; + jails = { + postfix = { + filter = "postfix"; + settings = { + action = ''nftables[port="25,465,587"]''; + }; + }; + dovecot = { + filter = "dovecot"; + settings = { + action = ''nftables[port="25,465,587"]''; + }; + }; + }; }; }