LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > DDoS Question

Reply
 
Thread Tools Display Modes
  #31  
Old 07-05-2009, 10:44 PM
-KaaL- -KaaL- is offline
Member
 
Join Date: Jun 2009
Posts: 26
Hi Bob,

I have noted those settings and will do that incase of a DDoS Attack.

Also I have CSF installed on my server.
Here are the settings related to Connection Tracking..

Code:
CT_LIMIT  = 200
CT_INTERVAL = 30
CT_EMAIL_ALERT = 1
CT_PERMANENT = 0
CT_BLOCK_TIME = 1800
CT_SKIP_TIME_WAIT = 0
CT_STATES =
CT_PORTS =
Reply With Quote
  #32  
Old 07-05-2009, 11:54 PM
Bob. Bob. is offline
New Member
 
Join Date: Jul 2009
Posts: 2
Quote:
Originally Posted by -KaaL- View Post
Hi Bob,

I have noted those settings and will do that incase of a DDoS Attack.

Also I have CSF installed on my server.
Here are the settings related to Connection Tracking..

Code:
CT_LIMIT  = 200
CT_INTERVAL = 30
CT_EMAIL_ALERT = 1
CT_PERMANENT = 0
CT_BLOCK_TIME = 1800
CT_SKIP_TIME_WAIT = 0
CT_STATES =
CT_PORTS =
During an attack you'll want to lower CT_LIMIT down to around 100, but if you set it to anything lower than that you'll probably begin to see false positives. You can use the "netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr" command to help you fine tune the limit. I would also enable permanent bans by setting CT_PERMANENT to 1 and set CT_STATES to ESTABLISHED,NEW. If you wanted to 'loosen' things a bit when your not under attack I would raise CT_LIMIT back up to 200 and disable permanent banning (so if a legitimate user does happen to get picked off, they do not have to contact you to get the block lifted) - once again reducing the risk of false positives.
Reply With Quote
  #33  
Old 07-08-2009, 01:39 PM
grniyce grniyce is offline
Senior Member
 
Join Date: Jan 2009
Posts: 52




CSF Settings:
- 125 every 15 seconds (make perm or make temp 3600 seconds)
- turn off syn flood protection in csf as LSWS settings above work better
__________________
Reply With Quote
  #34  
Old 07-08-2009, 04:42 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 729
10 is too high for dynamic req/s.
Reply With Quote
  #35  
Old 07-08-2009, 05:38 PM
grniyce grniyce is offline
Senior Member
 
Join Date: Jan 2009
Posts: 52
I was told to setup the dynamic req/sec to (one for every 256mb of ram)? What would you suggest?
__________________
Reply With Quote
  #36  
Old 07-08-2009, 06:44 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 729
I set mine at 2 and no one on my forum ever complained of getting 503 error due to that.
Reply With Quote
  #37  
Old 07-09-2009, 01:04 AM
-KaaL- -KaaL- is offline
Member
 
Join Date: Jun 2009
Posts: 26
Till now server seems to be running smoothly.. thanx to all who replied.

Will installing mem_cache further strenthen the server or does LiteSpeed already have some inbuilt functions to take care of it ?
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

Forum Jump


All times are GMT -7. The time now is 06:17 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.