- Plesk 12.5 for Linux
Fail2ban takes a lot of time to process operations on Plesk server.
What affects Fail2ban performance and how to improve it?
Fail2ban is affected by number of enabled jails and domains.
This number defines how many logs Fail2ban processes.
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 to improve performance, it is recommended to turn off jails that are not needed at Tools & Settings > IP Address Banning > Jails.
To prevent Plesk panel from hanging during adding an IP address to whitelist:
- Log in to Plesk via SSH
- Add the address to the file
CONFIG_TEXT: ignoreip = 127.0.0.1/8 203.0.113.2
- Reload Fail2ban service:
# service fail2ban reload