Security

Find and unblock an IP address in WHM with CSF

Search CSF for a blocked IP, read why LFD blocked it, remove the block in WHM or SSH, and stop the same customer being blocked again.

IntermediateWHM (root)2 min read

When a customer says cPanel, email or the website stopped working only from their office, LFD has usually blocked their IP after failed logins. This guide shows how to confirm the block, read the reason and remove it from WHM.

Before you start

  • Root or WHM access to a server running CSF.
  • The customer's public IP. Ask them to open the IP checker and send you the address.
  • If you are a hosting customer rather than the server owner, you cannot do this yourself; follow why is my IP blocked and contact support.

Search for the IP in WHM

  1. Open WHM → Plugins → ConfigServer Security & Firewall.
  2. In Search for IP, enter the address and click Search for IP.
  3. The result shows the matching rule and its comment, for example lfd: (smtpauth) Failed SMTP AUTH login from 198.51.100.7: 5 in the last 3600 secs.

The comment tells you which service triggered the block, so you can help the customer fix the cause.

Reason in commentUsual cause
sshdWrong SSH password or key.
cpanel / whmWrong cPanel password, saved old password in a browser.
smtpauth / imapd / pop3dMail app with an old password after a password change.
ftpdFTP client with wrong credentials.
CT_LIMIT / PORTFLOODToo many connections at once.

Remove the block

  1. In the search result, click the unlock/delete icon next to the rule, or use Quick Unblock with the IP.
  2. From SSH, the same thing is:
    csf -dr 198.51.100.7
    csf -tr 198.51.100.7
  3. Search again to confirm no rule remains.

Note: If CSF has no entry, the block may come from cPHulk, Imunify360 or ModSecurity. Check cPHulk and Imunify360 blocked IPs.

Stop it happening again

  • Ask the customer to update the saved password in every mail app and phone. An old password on one device will block the whole office.
  • For a trusted static office IP, add it to csf.ignore so LFD will not block it, or allow it. See allow, deny and temporary bans in CSF.
  • If many genuine users are blocked, raise the matching LF_ trigger slightly; see tune LFD alerts and blocking.

Troubleshooting

  • The IP is blocked again within minutes: a device is still retrying with a bad password. The LFD log shows each failure: grep 198.51.100.7 /var/log/lfd.log.
  • Unblocked but still cannot connect: the customer's own network may block ports such as 2083 or 465. Ask them to test from mobile data.

Next steps

Was this guide helpful?

Still stuck?

Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.