I’ve been receiving a lot of attacks from OVH and Digital Ocean networks to my cPanel server lately.
I’m using CSF, some attacks are blocked automatically, others manually. But I’m tired of that so I’d like to block all of their IPs. Is there an easy way?
Blocking China will be a plus
You can add an ASN to CC_DENY in /etc/csf/csf.conf and toss a “csf -r” out and boom, done
Country codes go in the same field, using commas to separate.
I see this config is resource intensive. I better going to leave it empty and configure it when moving to a powerful server.
Not specifically targeted towards OVH and Digital Ocean but this helps to cut down on the unwanted attacks and traffic. I use level 2 on all my servers.