I have done overhaul today on how the firewall stuff operates. Half of the fail2ban rules running were not even catching any IPs anymore as other rules written later basically took over anyway. So it saved a bit of overhead. I've also significantly reduced the memory usage due to a "oopsie" in the fail2ban config.
SQL,PHP-FPM, Nginx have had a lot of changes made as well. We should be able to handle spikes in traffic a lot easier now. We hit 20,000 guests yesterday all hammering the forum. The wiki was getting hammered along with that facebook bot.. Some of them seem to come from cloud and data centre infrastructures are not even legitimate users ! It was all a bit of a mess !
A lot of rules have basically become redundant because the main attacks of late are all botnets. As I previously feared, they have now moved on to HTTP2 protocols

Fail2ban isn't really helping with botnet attacks as they all look like legitimate traffic. Though there has been a additional two scripts written where I won't go into the details, but each server request is given a "score" and if that score gets high enough, then a massive IP range gets nuked automatically. That script has to scan the logs repeatedly which takes a bit of CPU but its less CPU than fail2ban was using with all the now redundant jails anyway.
I found some of the IP addresses in some block lists, so I've added more lists, but I don't think their effectiveness helping at all any more. Most of the IPs we are being hit with are not in any lists at all ! So I don't know if such lists have just been given up on now with maintaining them. Also considering cloudflare seems to be in front of pretty much everything these days anyway..
TL;DR
Lots of optimisations have gone on today. The forum seems to be really snappy at the moment as well
