How To Remove A Single IP from cPHulk?

Started by AmNaik, August 12, 2015, 10:16:35 PM

Previous topic - Next topic

AmNaik

cPhulk acts as a safe guarding tool and a great feature that prevent servers from falling prey to notorious brute force login attempts.

At times authentic users might get locked out with the IP due to incorrect usage of password several times. Our technicians can quickly get your IP removed/deleted from cPHulk database via MySQL; it is not possible to do with WHM. Dedicated & VPS server clients with root access can follow the below described instructions.

Log into your server from shell as the root user.

Now access MySQL with the command:


Quote[root@yourserver /]#mysql

Connect to MySQL database.

Quotemysql> connect cphulkd

[or 'use cphulkd' (without quotes)]


Now list the tables:

Quotemysql> show tables;

Tables will be shown as like given below.

+-------------------+
| Tables_in_cphulkd |
+-------------------+
| auths             |
| blacklist         |
| brutes            |
| good_logins       |
| ip_lists          |
| known_netblocks   |
| login_track       |
| logins            |
| report            |
| whitelist         |
+-------------------+

Our concern lies with two tables namely, brutes & logins.

Access them one by one by using :

Quotemysql> select * from brutes;

It shows the IPs caught in the act.

Quotemysql> select * from logins;

Now to delete a single IP you can use the commands given below.

Quotemysql> delete from brutes where IP='xxxxx';
(Replace xxxxx with your actual IP)

Quotemysql> delete from logins where IP='xxxxx';
(Replace xxxxx with your actual IP)

You are done with the job, so exit the MySQL.

Quotemysql> quit

----------
That's all folks !
MilesWeb.com :: Your Hosting, Our Responsibility!

Administrator

MilesWeb - Your Hosting, Our Responsibility!
Buy Web Hosting Plans | Managed VPS with 50% Discount