How to find whether the IP address is blacklisted or not in CSF

The CSF will block external IPs(Inbound connections) for any Brute force attack or something like that(Multiple login failure, hacking attepts etc) on server. We can find out all details regarding the IP block from the ‘lfd’ log. The reason for IP block, exact time etc will be explained in the log file.

CSF log file details:

All records related with the CSF and LFD is loged in a file under “/var/log“. The log file for CSF&LFD is:

" /var/log/lfd.log "

How to find whether the IP address is blacklisted or not in CSF ?
There are three different ways to find out the details of IP address if it is Blacklisted in CSF.

Method I: From WHM
Login to your WHM control panel and search the “ConfigServer Security & Firewall” from the search tool bar which is located left side of the WHM menu. Then use the Search for IP tool to findout the details of IP block on the server.
You can unblock the IP address from the output itself. See the attachment for more tips.

Command line optionsMethod II : You can use the switch ‘g’ along with the csf command.

How to use it?Step 1: SSH to your server as root user.Step 2: Run the below pasted command.

Linux Server Administrator. I'm dealing with Linux servers since 2012. I started this blog to share and discuss my ideas with the world. Check My Profile!! in uPwork (oDesk) and let me know if you need any assistance. Thanks!!

[…] related topics Install and configure csf on CentOS CSF commands for Unix/Linux servers How to find whether the IP address is blacklisted or not in CSF How to block countries from server by using csf How to disable Lfd excessive resource usage alert […]