How to unblock IP blocked by LFD on a blocklist

Post Reply
geekytone
Junior Member
Posts: 23
Joined: 04 Aug 2020, 13:58

How to unblock IP blocked by LFD on a blocklist

Post 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.
Sergio
Junior Member
Posts: 1689
Joined: 12 Dec 2006, 14:56

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

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