Reply

 

LinkBack Thread Tools Rate Thread
Old 09-24-2005, 06:36 AM   #1 (permalink)
cubexsystems
Guest
 
Posts: n/a
How to stop DDoS ?

Hello

Hello we at an enterprise maintain a couple of linux servers??

My question

What are the best practices to avoid DDoS ??

Thanks
  Reply With Quote
Old 09-25-2005, 06:25 AM   #2 (permalink)
GIGANET
Guest
 
Posts: n/a
Install Anti-Dos and talk with your data centre about Flood Gate prevention when an attack is occuring.
  Reply With Quote
Old 09-26-2005, 03:04 AM   #3 (permalink)
cubexsystems
Guest
 
Posts: n/a
Hello GigaNet

Thanks for looking into my post.I'll definately do that.

Thanks once again.

Nice packages on your website

Btw we are into software outsourcing biz.
  Reply With Quote
Old 11-07-2005, 08:54 PM   #4 (permalink)
suhailc
Guest
 
Posts: n/a
Whilst ACTUALLY facing a DOS attack, you should locate the domain being attacked and remove the DNS zone for it and restart BIND. That will ease the load to start with. If multiple domains being attacked,

You can run this command:

netstat -n -p|grep SYN_REC | wc -l

It will give you how many SYN_RECV connections you have on the server. If it's above 20 or so, run this command to get the IPs involved:

netstat -n -p | grep SYN_REC | awk '{print $5}' | awk -F: '{print $1}'

And then you can run:

netstat -n -p | grep SYN_REC | awk '{print $5}' | sort -u | awk -F: '{print "ipdrop "$1 " on"}'

This will take all the IPs involved and ban them.

I would also recommend installing APF (firewall). It's free and it works very well with cPanel servers.
  Reply With Quote
Old 11-24-2005, 05:01 AM   #5 (permalink)
ninjatune
Guest
 
Posts: n/a
if its a large DDoS you will not stop it with iptables. A null route on the ip will stop that which leaves you hanging in the dust.
  Reply With Quote
Old 11-24-2005, 11:18 AM   #6 (permalink)
etechsupport
Guest
 
Posts: n/a
It has been explained in details in forum at our site, I think this link would help you; http://www.etechsupport.net/forum/showthread.php?t=434
  Reply With Quote
Old 12-08-2005, 10:23 PM   #7 (permalink)
Member
 
Join Date: Dec 2005
Posts: 35
Get yourself a faster datacenter

like ours! :P

5x 10gbit (LEVEL3)
5x 10gbit (COGENT)
1x 10gbit (KPN EURORINGS)
7x 2gbit (Multiple Companies)
10x 1gbit (Multiple Companies)

We get ddos attacks all the time, mostly they do not reach speeds above 2gbit/s.

The best thing a datacenter can do is block the ip ranges, and bypass your server.
__________________
Profithost.net|| The Number One Hosting Provider! || http://profithost.net || Discount on our dedicated servers!!!
Profit|Jacob is offline   Reply With Quote
Old 10-28-2006, 05:18 AM   #8 (permalink)
sysconfig
Guest
 
Posts: n/a
Install and configure firewall. - I suggest APF
Install and configure antidos and Brute Force attack tool (APF with antidos and BFD)
Block the unnesesory ports.
stop the unwanted services
Install and regular run rootkit (chkrootkit and rkhunter)

I would sugeest you to check this URL which will useful:

http://forums.linuxwebadmin.info/ind...opic,20.0.html
  Reply With Quote
Old 10-29-2006, 09:09 PM   #9 (permalink)
combug
Guest
 
Posts: n/a
Not all datacenter will handle your ddos that is 400mbit big or so.

You may need hardware firewall with your own cross over if you are goign to be ddos quite alot.

You have the option to setup your own hardware firewall such as pix, netscreen, or a fbsd machine that filters packets.

I recommend going to rackspace or gigeserver for ddos solutions.
  Reply With Quote
Old 11-22-2006, 03:17 PM   #10 (permalink)
abobby
Guest
 
Posts: n/a
There's a module in apache to help DDOS attacks a bit the module is named as mod_dosevasive. The link to download the latest stable release is www.nuclearelephant.com/projects/dosevasive/

INSTALLATION

1. wget the file and untar it

2. cd mod_dosevasive

3. Run ./configure --add-module=src/modules/dosevasive/mod_dosevasive.c

4. make

5. make install


With DSO Support, Ensim, or CPanel:

1. $APACHE_ROOT/bin/apxs -iac mod_dosevasive.c

2. Restart Apache

APACHE v2.0
-----------

1. Extract this archive

2. Run $APACHE_ROOT/bin/apxs -i -a -c mod_dosevasive20.c

3. The module will be built and installed into $APACHE_ROOT/modules, and loaded into your httpd.conf

4. Restart Apache


If you need to have a look at some more details and configs please have a look at the link http://www.yourwebsupport.com/sforum...php?topic=48.0

Please comment.
  Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 -4. The time now is 08:38 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0