Exit

cPHulk when deployed through WHM works aggressively blocking rogue IPs trying to intrude into the system with brute force. While this useful feature helps in keeping the server secure it might block your IP due to several login failures and lock you down.

For cPanel versions older than 68.0 following should be helpful.

With a quick few commands we can unlock the IP from cPHulk and regain access to WHM.

Here’s How To:

Log in to server via SSH with root access

 

Use the following command to connect to MySQL with command MySQL

 

Now connect to cPHulk database with either “connect cphulkd or “use cphulkd

 

Use the command “show tables; to list the cpHulk tables.

 

The tables “brutes” and “logins” stores the IPs and we need to delete our IP from there.

Use following commands to connect these tables

select * from brutes;

select * from logins;

It’ll show all the blocked IPs. Use the following commands to delete required single IP

delete from brutes where IP=’xxxxx’;

delete from logins where IP=’xxxxx’;

For cPanel version 68 and later, use the following command to delete one single IP

whmapi1 flush_cphulk_login_history_for_ips ip=xxx.xx.xx.xxx

 

Enjoy!

3 comments

  1. Comment by Anonymous

    Anonymous Reply March 17, 2018 at 8:35 pm

    5

  2. Comment by Anonymous

    Anonymous Reply March 19, 2018 at 6:03 pm

    4.5

  3. Comment by Site Admin

    Site Admin Reply March 22, 2018 at 12:52 pm

    5

Leave a reply

Your email address will not be published. Required fields are marked *

Close
Go top
%d bloggers like this: