View Full Version : Best configuration for DDoS protection?
Joeybe11
07-09-2007, 04:09 AM
What is the best configuration for maximum DDoS protection?
mistwang
07-09-2007, 06:33 AM
Please take a look at
http://www.litespeedtech.com/library/howto/#qa_dos
first
DJ XtAzY
10-28-2007, 10:15 AM
Please take a look at
http://www.litespeedtech.com/library/howto/#qa_dos
first
I noticed this page is gone. Is it taken down?
mistwang
10-29-2007, 10:20 AM
moved to http://www.litespeedtech.com/how-tos.html#qa_dos
thehoodedcoder
02-23-2008, 08:01 PM
hi,
ok. i set some settings and i tried red lining some of the values for what i thought they should be. i can ddos my site with three ips making requests.....maybe you can provide some values in here that find work good?
i have tried playing with each setting listed in that link and nothing seems to work.
thehoodedcoder
thehoodedcoder
02-23-2008, 08:03 PM
hi,
also if you think your configuration is good maybe i can try and ddos your server for like 5 seconds to see if my ddos is to good for this software.
you probably won't go for this though.
thehoodedcoder
mistwang
02-23-2008, 09:06 PM
Some features like request rate limits are only available for enterprise license.
thehoodedcoder
02-23-2008, 09:45 PM
so does that mean that 3 machines can take down the server? give me the bottom line here. do i need an enterprise edition to stop a ddos or what?
i have been putzing around with this because there is next to no solid "your new to this" documentation. i have called and tried to get a simple answer as to whether is really installed or not and i can't seem to even get an answer as to know definitely if its installed and working in place of apache.
im about 2 steps from giving up and saying F it as i have spent 20 hours on this already.
what do i have to do to ddos proof my server.
mistwang
02-24-2008, 07:40 AM
When properly configured, 3 machine cannot take down the server.
For best DDoS protection, please apply a trial key of LSWS enterprise.
Besides LSWS configuration, your linux kernel need to be configured properly as well.
thehoodedcoder
02-24-2008, 07:47 AM
hi,
what kind of attack will it withstand? will it withstand a moderate one?
thanks,
kevin quinn
mistwang
02-24-2008, 08:01 AM
Yes, it should, you need to use it together with iptables to block offending IPs.
A user review
http://www.webhostingtalk.com/showthread.php?t=616249
thehoodedcoder
02-24-2008, 08:04 AM
hi,
ok. are there specific configurations values for specific fields that should be set for this to prevent ddos. p.s. my site is http://www.hosty.net in case it helps. currently its setup with a port offset of 1000.
thanks,
kevin quinn
mistwang
02-24-2008, 12:52 PM
Static Requests/Second 20
Dynamic Requests/Second 1
Connection Soft Limit 10
Connection Hard Limit 20
Grace Period (sec) 30
Banned Period (sec) 300
Request rate limit is only available in Enterprise edition.
thehoodedcoder
02-24-2008, 11:28 PM
hi,
ok great. thanks for that info. it appears im having a larger problem.
this is where im at:
------------------
i have it installed with a 1000 port offset and can view port 1080 as the server but it shows the litespeed httpd page and 7080 is the admin page which works fine. the links work ok for hello world etc on the lsws httpd page for when i go to hosty.net:1080 or myipaddress:1080. im guessing it should be mapping to the domain name you request when you do http://hosty.net:1080 right? it gives me the litespeed page.
1) i think i have to add listeners to fix this problem. is this correct?
2_ i have like several hundred people though. is there any one configuration that will handle this automagically?
3) also to wrap it all up, once i get that i think i just need to change the port offset, stop apache and restart lsws. am i way off base here?
i have never done anything like this before.
thanks so much for your help in advance. im exited to try out your product.
kevin quinn
mistwang
02-25-2008, 07:27 AM
Are you using a hosting control panel? which one? Please follow the respective tutorial in our wiki.
If Apache configuration has been loaded successfully, it should show the correct page.
Maybe you set the default listener to port 1080, you should remove that listener.
thehoodedcoder
02-25-2008, 02:40 PM
hi,
ok i removed the listener. then the httpd page stopped showing up. so i removed the virtual host. then the httpd page came back up but now none of the links work. so now there are no listeners and no virtual hosts.
i want to test this before cutting it over. to the correct port. thats why i set it to port 1080. i have followed the directions to the T about 10 times.
kevin quinn
mistwang
02-25-2008, 02:44 PM
Can you PM me the LSWS web console login?
mistwang
02-25-2008, 02:44 PM
Are you using cPanel?
mistwang
02-25-2008, 03:59 PM
The problem with your Apache httpd.conf is that domain name has been used for the vhost configuration, like "<VirtualHost domain_name:80>", LSWS need "<VirtualHost IP:80>", so you will find following messages in error log.
Configuration for virtual Host [ServerName the_doamin_name.com] has been ignored.
thehoodedcoder
02-25-2008, 07:14 PM
hi,
should i make the virtual hosts in litespeed or in the file?
thanks,
kevin
mistwang
02-25-2008, 07:28 PM
Which version of cPanel are you using? Apache version?
most cPanel installation generate vhost configuration with IP, not with domain name, so, I wonder if anything changed in cPanel.
Looks like we need to add support domain name in virtual host
thehoodedcoder
02-25-2008, 07:37 PM
i its cpanel 4.4.7 right now and i believe apache2.
mistwang
02-25-2008, 08:19 PM
cPanel 4.4.7? I think current version of WHM/cPanel is 11.xx
thehoodedcoder
02-26-2008, 08:56 PM
yes. your right. :rolleyes: it has been days since i slept right.
mistwang
02-27-2008, 07:48 AM
Anyway, you should go with Enterprise edition if you host more than 3 websites on it. Standard edition won't work. Just take a trial.
HoustonMullen
03-18-2009, 10:55 AM
For DDoS attack defense and ddos protected hosting i can recommend GigabitDC.COM. They even offer free migration.