I run CSF on a cPanel server. CSF has MaxMind GeoLite2 Country Database MM_LICENSE_KEY and CC_SRC = "1" set and working ok. Example:
Code: Select all
csf -i 66.165.246.164
66.165.246.164 (US/United States/waytotheweb.com)
Now I created a script that's executed by cron every 30 minutes to unblock this country's IPs:
Code: Select all
/usr/sbin/csf -t | /usr/bin/grep 'Country' | /usr/bin/cut -d' ' -f3 | /usr/bin/xargs -d\\n -n1 /usr/sbin/csf -tr
It's not the best solution but it's kind of a patch.
Can anyone help me with setting up CSF to stop this countries' IPs from being blocked?
Thank you in advance,
Mauricio