Page 1 of 1

How to unblock IP blocked by LFD on a blocklist

Posted: 22 Feb 2024, 10:11
by geekytone
Hello,

I see one IP address blocked on CSF:

Code: Select all

# csf -g xxx.xxx.xxx.xxx
(...)
IPSET: Set:bl_CXS_LF_HTACCESS Match:xxx.xxx.xxx.xxx Setting:CXS_LF_HTACCESS file:/etc/csf/csf.blocklists
(....)
As I see on LFD log, the IP was blocked by LFD for htpasswd fail.

However, I'm unable to unblock it from SSH by "csf -tr" or "csf -dr" command. Which command I should use to unblock this IP address?

Thanks.

Re: How to unblock IP blocked by LFD on a blocklist

Posted: 27 Feb 2024, 23:16
by Sergio
Hi.
Go to CSF, then go to "LFD BLOCKLISTS", look in there the blocklists that you are using.
Check if the IP is blocked by any of the BLOCK LISTS that you are using, to do that go to /var/lib/csf and search the IP on all the /var/lib/csf/csf.block.NAME black lists in there.

The next step would be to REM the blacklist in CSF BLOCK LISTS, then you will have to delete the list info in /var/lib/csf/csf.block.NAME and the last step after you delete the block list is to restart CSF.

Sergio