LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   General (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=29)
-   -   lslb - http flood - ddos protection (http://www.litespeedtech.com/support/forum/showthread.php?t=3403)

Clockwork 10-06-2009 09:24 AM

lslb - http flood - ddos protection
 
Hi,

it seems lslb is somewhat different than lsws in flood handling:

Code:

["default"] 123.123.123.123 - - [06/Oct/2009:10:02:39 +0200] "GET /images/logo.gif HTTP/1.1" 503 401 "-" "-"
["default"] 123.123.123.123 - - [06/Oct/2009:10:02:39 +0200] "GET /images/logo.gif HTTP/1.1" 503 401 "-" "-"
["default"] 123.123.123.123 - - [06/Oct/2009:10:02:39 +0200] "GET /images/logo.gif HTTP/1.1" 503 401 "-" "-"
["default"] 123.123.123.123 - - [06/Oct/2009:10:02:39 +0200] "GET /images/logo.gif HTTP/1.1" 503 401 "-" "-"
["default"] 123.123.123.123 - - [06/Oct/2009:10:02:39 +0200] "GET /images/logo.gif HTTP/1.1" 503 401 "-" "-"
["default"] 123.123.123.123 - - [06/Oct/2009:10:02:39 +0200] "GET /images/logo.gif HTTP/1.1" 503 401 "-" "-"
["default"] 123.123.123.123 - - [06/Oct/2009:10:02:39 +0200] "GET /images/logo.gif HTTP/1.1" 503 401 "-" "-"
["default"] 123.123.123.123 - - [06/Oct/2009:10:02:39 +0200] "GET /images/logo.gif HTTP/1.1" 503 401 "-" "-"
["default"] 123.123.123.123 - - [06/Oct/2009:10:02:39 +0200] "GET /images/logo.gif HTTP/1.1" 503 401 "-" "-"
["default"] 123.123.123.123 - - [06/Oct/2009:10:02:39 +0200] "GET /images/logo.gif HTTP/1.1" 503 401 "-" "-"
["default"] 123.123.123.123 - - [06/Oct/2009:10:02:39 +0200] "GET /images/logo.gif HTTP/1.1" 503 401 "-" "-"
["default"] 123.123.123.123 - - [06/Oct/2009:10:02:39 +0200] "GET /images/logo.gif HTTP/1.1" 503 401 "-" "-"

it comes from different IP's, I've just changed those to 123.123.123.123.

lslb just passes this attack to the backend servers, is there any way to configure lslb to detect and block attacks like this?

I've already set "Per Client Dyn Reqs/sec" to 2 in the virtual hosts tab, but this doesn't seem to affect static files.

mistwang 10-06-2009 09:38 AM

For LB, all the requests are dynamic as it needs to forward the request to backend server.

You need to set "Connection Soft Limit" "Connection Hard Limit" to block aggressive IP .

soyturk 03-10-2010 03:52 AM

that's true. thank you mistwang.


All times are GMT -7. The time now is 05:51 PM.