Is there any reason why I suddenly have over 3,000 blocked IPs due to "plesk-apache-badbot"?
I normally hover between 40 and 90, but it suddenly went way up... and several IPs are local, from my city.
Is this normal?
@Ricardo Capistran
It is as
@Kaspar has already stated : it is not unusual.
Nevertheless, one should take notice of the context that applies.
Let me explain.
If and whenever using
only Fail2Ban, a count of 3000 banned IPs is certainly not abnormal, not at all!
In fact, Fail2Ban discards some banned IPs after a pre-defined time, implying that the actual count can be and often is much higher than 3000.
If and whenever using
Fail2Ban with other countermeasures, like
- Plesk Firewall, for instance with country blocks and or CIDR range blocks, (and/or)
- the so-called DENY entries in Nginx config files, (and/or)
- the entries in /etc/hosts.deny file, (and/or)
-
most importantly, a good Web Application Firewall (WAF),
a count of 3000 banned IPs for plesk-apache-badbot would really be
abnormal!
The fact that you have 3000 banned IPs is a strong indication that you do not have other "countermeasures" in place.
I strongly recommend that you configure and fine-tune other countermeasures that combat bad or malicious traffic.
After all, Fail2Ban is not the only method to prevent bad / malicious and certainly not the best method - Fail2Ban is resource hungry!
Just try to implement / configure / optimize the Plesk Firewall first, then use Nginx as a proxy and then proceed with the remainder (see above).
I hope the above helps a bit!
Kind regards....