WIP: FINISH SETTING UP FAIL2BAN

This commit is contained in:
Bruno BELANYI 2024-08-22 23:56:53 +02:00
parent 1fc8790790
commit 771da4b137

View file

@ -45,5 +45,21 @@ in
inherit (cfg) port;
};
};
services.fail2ban.jails = {
stirling-pdf = ''
enabled = true
filter = stirling-pdf
port = http,https
'';
};
environment.etc = {
"fail2ban/filter.d/stirling-pdf.conf".text = ''
[Definition]
failregex = ^.*Failed login attempt from IP: <HOST>$
journalmatch = _SYSTEMD_UNIT=stirling-pdf.service
'';
};
};
}