@omexlu
You stated
and I must say:
no, OR, stated differently,
yes, to some extent.
After all, for this action to work,
one has to use
- CloudFlare DNS, (and/or)
- CloudFlare
paid-for plans OR the CloudFlare ServerShield extension for Plesk.
The
issue with the proposed action is and/or can be concerning the facts that
1 - the
rulesets are
limited in any CloudFlare
free plan and/or when (only) using CloudFlare DNS, (and)
2 - specific conflicts can arise when using the CloudFlare ServerShield extension for Plesk, (and)
3 - there is
no need to define a DDoS related jail when using CloudFlare, since CloudFlare is "in front of" the server, making jails on the server rather obsolete, when taking into account that any DDoS is already handled (and handled better) by CloudFlare,
and I am not even emphasizing the peculiar disadvantages of CloudFlare, such as the facts that
- they often are the intended target of DDoS attacks (read: using CloudFlare means that your sites are more prone to DDoS occurring at the CloudFlare "level"),
- free plans are having less priority (read: in the case of DDoS attacks, sites associated with free CloudFlare plans can become slow or even unresponsive: CloudFlare paid-for plans are getting very high priority over sites under free plans),
- CloudFlare is rather "dominant" (read: changes in DNS records on the relevant nameservers can be less persistent when using CloudFlare)
- bandwith limiting is (always) a
paid-for functionality in CloudFlare (read: the essential tool for handling DDoS attacks costs money)
and so on.
In short, CloudFlare is a very advanced proxy based upon Nginx, but it has to be paid for to function as a proper proxy.
In conclusion, the following has to be noted:
a) if and when using CloudFlare, there is no need to have a Fail2Ban jail or action (since CloudFlare does that job), AND
b) the native Nginx proxy on any Plesk instance is a
free and
good alternative for preventing DDoS attacks (and even then Fail2Ban jails or actions are not needed).
I would
strongly recommend to deactivate (or remove) the jail, since it has no function and/or since Fail2Ban itself can be somewhat "resource hungry".
Hope the above explains a bit of the background information.
Regards...........