- Plesk 12.5 for Linux
Fail2Ban takes a lot of time to process operations.
What affects Fail2Ban performance?
Fail2Ban performance is affected by the number of logs processed by Fail2Ban.
Some of Fail2Ban jails take more time to process than others.
For example, jail plesk-apache-badbot adds 4 log files to be monitored per each domain.
If there are 120 domains in Plesk (which is not so much), it adds 480 (4*120) log files.
So it is recommended to turn off jails that are not needed.
Another thing is adding IP address to the whitelist - this process reloads Fail2Ban and can slow down depending on the number of enabled jails, log files, etc.
To prevent Plesk panel from hanging, an IP addresses can be added to the whitelist manually: add the address to the line
gnoreipin the file
/etc/fail2ban/jail.localand reload Fail2Ban service.