#1 (permalink)  
Old 03-12-2009, 10:49 AM
Registered User
 
Join Date: Jul 2008
Posts: 23
offline is on a distinguished road
cphulk

Can anyone tell me what cpanel hulk does? I understand what something like fail2ban does, it analayzes logs then makes entries into iptables for block someone's IP address. How do hulk work and what does it protect?

Thanks,

Chris Edwards
__________________
Chris Edwards
Blue Dog Hosting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-12-2009, 11:36 AM
cpaneldave's Avatar
Staff Member
 
Join Date: Dec 2001
Posts: 746
cpaneldave is on a distinguished road
cPHulk looks for logins for PAM services. Based on your configuration, it will block an IP after a specified number of failed logins from a specific IP (or for a specific account) for a specific period of time.
__________________
-Dave
cPanel Inc.

Need support? Submit a request here. These forums are not an official support channel.

www.cpanel.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-13-2009, 09:29 AM
Registered User
 
Join Date: Jul 2008
Posts: 23
offline is on a distinguished road
Hmm interesting, What services/ports does it cover? When it bans an IP I noticed that they can continue to try to login but they are blocked at the PAM level? Is there a file/log that is created that shows you which IP's are blocked?
__________________
Chris Edwards
Blue Dog Hosting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-13-2009, 10:41 AM
cpaneldave's Avatar
Staff Member
 
Join Date: Dec 2001
Posts: 746
cpaneldave is on a distinguished road
Quote:
Originally Posted by offline View Post
Hmm interesting, What services/ports does it cover? When it bans an IP I noticed that they can continue to try to login but they are blocked at the PAM level? Is there a file/log that is created that shows you which IP's are blocked?
It covers: cPanel, WHM, FTP, SSH, and I may be forgetting some more which I'll track down.

We intentionally allow continued login attempts as to not notify the attacker that they should start changing their strategy.

In WHM, you can see the log of blocked IPs. It's in the Security Center.
__________________
-Dave
cPanel Inc.

Need support? Submit a request here. These forums are not an official support channel.

www.cpanel.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-13-2009, 02:36 PM
Registered User
 
Join Date: Nov 2004
Posts: 30
elkram is on a distinguished road
Here's an excerpt from my /usr/local/cpanel/logs/error_log. Is this anything to worry about?

Code:
2009-03-13 16:44:54 info [cphulkd] [31754] Waiting for lock on /var/cpanel/hulkdpass held by cPhulkd - processor - locking /var/cpanel/hulkdpass with pid 31753
2009-03-13 16:44:55 info [cphulkd] [31754] Lock file /var/cpanel/hulkdpass.lock now gone, try to acquire
2009-03-13 17:15:15 info [cphulkd] [7325] Waiting for lock on /var/cpanel/hulkdpass held by cPhulkd - processor - locking /var/cpanel/hulkdpass with pid 7324
2009-03-13 17:15:16 info [cphulkd] [7325] Lock file /var/cpanel/hulkdpass.lock now gone, try to acquire
2009-03-13 17:30:25 info [cphulkd] [9268] Waiting for lock on /root/.my.cnf held by cPhulkd - processor - locking /root/.my.cnf with pid 9267
2009-03-13 17:30:25 info [cphulkd] [9280] Waiting for lock on /var/cpanel/hulkdpass held by cPhulkd - processor - locking /var/cpanel/hulkdpass with pid 9273
2009-03-13 17:30:25 info [cphulkd] [9275] Waiting for lock on /var/cpanel/hulkdpass held by cPhulkd - processor - locking /var/cpanel/hulkdpass with pid 9273
2009-03-13 17:30:26 info [cphulkd] [9268] Lock file /root/.my.cnf.lock now gone, try to acquire
2009-03-13 17:30:26 info [cphulkd] [9280] Lock file /var/cpanel/hulkdpass.lock now gone, try to acquire
2009-03-13 17:30:26 info [cphulkd] [9275] Lock file /var/cpanel/hulkdpass.lock now gone, try to acquire
2009-03-13 17:45:31 info [cphulkd] [10160] Waiting on invalid lock /var/cpanel/hulkdpass.lock for 60 seconds
2009-03-13 18:14:56 info [cphulkd] [16101] Waiting for lock on /root/.my.cnf held by cPhulkd - processor - locking /root/.my.cnf with pid 16099
2009-03-13 18:14:57 info [cphulkd] [16101] Lock file /root/.my.cnf.lock now gone, try to acquire
Plus, cPHulk never seems to add anything to its database.
Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-13-2009, 02:37 PM
cpaneldave's Avatar
Staff Member
 
Join Date: Dec 2001
Posts: 746
cpaneldave is on a distinguished road
Looks like some file locking issues which may or not be related to a bad drive. Please send in a support request so we can take a look. Thanks!
__________________
-Dave
cPanel Inc.

Need support? Submit a request here. These forums are not an official support channel.

www.cpanel.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 03-13-2009, 02:40 PM
Registered User
 
Join Date: Nov 2004
Posts: 30
elkram is on a distinguished road
Thanks, Dave. I think I need to go through my provider as I am not the cPanel licensee.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 03-13-2009, 02:52 PM
cpaneldave's Avatar
Staff Member
 
Join Date: Dec 2001
Posts: 746
cpaneldave is on a distinguished road
Surely. If your provider is unable to track it down quickly, they can send it up to us.
__________________
-Dave
cPanel Inc.

Need support? Submit a request here. These forums are not an official support channel.

www.cpanel.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
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



All times are GMT -5. The time now is 05:11 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc