What affects Fail2Ban performance?

Created:

2016-12-12 03:45:01 UTC

Modified:

2017-08-16 03:51:38 UTC

1

Was this article helpful?


Have more questions?

Submit a request

What affects Fail2Ban performance?

Applicable to:

  • Plesk 12.5 for Linux

Questions

Fail2Ban takes a lot of time to process operations.

What affects Fail2Ban performance?

Answer

  • 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 gnoreip in the file /etc/fail2ban/jail.local and reload Fail2Ban service.

Have more questions? Submit a request
Please sign in to leave a comment.