Country Code not excluded from temp blocks

Post Reply
damonh
Junior Member
Posts: 3
Joined: 05 Dec 2023, 21:21

Country Code not excluded from temp blocks

Post by damonh »

Hello,

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)
I use CC_ALLOW option to add a couple of countries I want to whitelist but the problem is I'm still getting those countries IPs blocked (in temporary block list).

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
Post Reply