|
|||
|
hmmm ... I'm not understanding something. If I have my CPHulk settings set as thus:
IP Based Brute Force Protection Period in minutes: 90 Brute Force Protection Period in minutes: 90 Maximum Failures By Account: 3 Maximum Failures Per IP: 3 Maximum Failures Per IP before IP is blocked for two week period: 9 Extend account lockout time upon additional authentication failures: checked Send notification when brute force user is detected: checked Why am I seeing entries in my logins like: root h-66-166-56-233. system 0 2008-01-08 04:43:14 root h-66-166-56-233. system 0 2008-01-08 04:43:40 root h-66-166-56-233. system 0 2008-01-08 04:45:10 root h-66-166-56-233. system 0 2008-01-08 04:44:04 root h-66-166-56-233. system 0 2008-01-08 04:44:45 admin h-66-166-56-233. system 0 2008-01-08 04:45:27 admin h-66-166-56-233. system 0 2008-01-08 04:45:35 root h-66-166-56-233. system 0 2008-01-08 04:43:31 admin h-66-166-56-233. system 0 2008-01-08 04:45:52 root h-66-166-56-233. system 0 2008-01-08 04:44:29 root h-66-166-56-233. system 0 2008-01-08 04:44:12 root h-66-166-56-233. system 0 2008-01-08 04:45:02 root h-66-166-56-233. system 0 2008-01-08 04:43:48 root h-66-166-56-233. system 0 2008-01-08 04:44:54 admin h-66-166-56-233. system 0 2008-01-08 04:45:44 root h-66-166-56-233. system 0 2008-01-08 04:43:56 admin h-66-166-56-233. system 0 2008-01-08 04:45:19 root h-66-166-56-233. system 0 2008-01-08 04:43:23 admin h-66-166-56-233. system 0 2008-01-08 04:46:00 root h-66-166-56-233. system 0 2008-01-08 04:44:21 root h-66-166-56-233. system 0 2008-01-08 04:44:37 admin h-66-166-56-233. system 0 2008-01-08 04:46:11 22 attempts in 3 minutes - all from the same IP address. This IP should now be on a two week lock-down, right? |
|
|||
|
Quote:
I have had several attacks the past few days from china and latin america. I blocked the entire IP address range, and the attacks have slowed, however now im getting them from elsewhere. any idea on how to configure cpanel to block the IP and not lock the root account? |
|
|||
|
Here is what you are missing
I actually had to dig deep in the cpHulk's Perl code to understand this myself. You are missing what these two settings actually mean:
Quote:
If that's a new IP that was not blocked already it will have a maximum of "Maximum Failures Per IP" attempts and will be blocked for "Brute Force Protection Period in minutes" minutes. In your case for 90 minutes. After 90 minutes will pass and the same IP will be trying again, the logic will look again back for 90 minutes and since during this period IP was blocked it won't find any attempts and effectively start counting the new attempts from scratch. It's a weird logic in cPhulk itself, but you can easily fix this if you will set "IP Based Brute Force Protection Period in minutes" (for how many minutes to look back in the attempts table to find failed attempts from the same IP) several times higher then "Brute Force Protection Period in minutes". The period in the first setting should cover the period in the second setting (the time when the IP had no attempts logged because it was blocked) and then add some more to actually find attempts before that. In your case I'd suggest something like: IP Based Brute Force Protection Period in minutes: 90 Brute Force Protection Period in minutes: 30 If this won't work as expected just try to make the difference between the two settings even bigger. |
|
|||
|
Try LFD instead
I experimented with CPHulk about a year ago and didn't have a great experience. I now use the config server Login Failure Daemon (LFD) in conjunction with the CSF firewall. It's a free script and it's superb!
http://www.configserver.com/cp/csf.html |
![]() |
| Thread Tools | |
| Display Modes | |
|
|