UnderHost Networks Ltd


If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.



Reply
  #1 (permalink)  
Old 06-21-2009, 02:30 AM
UnderHost's Avatar
UnderHost Management
 
Join Date: Jul 2008
Posts: 588
Default WHM locked out - cphulkd

Today we were locked out on one of our server by cphulkd.



When trying to access the server from WHM we were getting the following message.



Thus not allowing us to login into WHM also we were not able to access shell.


—————————————————————————————

This account is currently locked out because a brute force attempt was detected.



Please wait 10 minutes and try again. Attempting to login again will only increase this delay.
If you frequently experience this problem, we recommend having your username changed to something less generic.

—————————————————————————————


This is done by ‘cphulkd’ - Cpanel Brute Force Protection service.


cphulkd: Cpanel Brute Force Protection service.



This service monitors failed authentication attempts and locks out accounts after the threshold is met.


To re-enable your account, login via ssh and disable cphulkd using the command below.


Code:
# /usr/local/cpanel/bin/cphulk_pam_ctl –disable
This should allow you to login to WHM and double check your cphulk settings.


You can view IP addresses that have been blocked via the WHM interface: WHM -> Security -> Security Center -> cPHulk Brute Force Protection in the Brutes table.



On that screen, you can also customize brute force protection settings.


Flush DB will remove all blocked IPs:


WHM -> Security Center -> cPHulk Brute Force Protection -> Click on Flush DB

Well the other way to this is given below.


ssh to the server login as root and type the following at the prompt


Code:
[root@server:] mysql
 mysql> use cphulkd;
 mysql>BACKUP TABLE  brutes TO ‘/path/to/backup/directory’;
 mysql> SELECT * FROM brutes WHERE `IP`=’xxx.xxx.xxx.xxx’;
 mysql> DELETE FROM brutes WHERE `IP`=’xxx.xxx.xxx.xxx’;
 mysql>quit
__________________

UnderHostProviding Affordable and Quality Web Hosting & Offshore Hosting
24/7 Fast Support / 99.9% Uptime Guarantee
UHVPSVirtual Private Servers & Premium Offshore VPS
Hong Kong - Singapore - USA - Canada - Netherlands - United Kingdom - Germany
Reply With Quote
underhost.us
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Loading...


All times are GMT -4. The time now is 04:33 PM.
Copyright © 2009 UnderHost Networks Ltd