LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-26-2004, 03:38 AM   #1
srboot
LQ Newbie
 
Registered: Feb 2004
Posts: 8

Rep: Reputation: 0
BEST APF firewall setting for RH8


Hi all
i want to protect my server from DDOS attack and i want to set the firewall good to protect it from that

thanks
 
Old 02-28-2004, 11:33 AM   #2
srboot
LQ Newbie
 
Registered: Feb 2004
Posts: 8

Original Poster
Rep: Reputation: 0
nobody ?
 
Old 02-28-2004, 06:55 PM   #3
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Because your local network topology, services, access requirements are going to vary from network to network, there really is no such thing as the *best* firewall. And more specifically the effects of dDOS attacks can be extremely hard to control for the end-user. Usually you'll get the best results by contacting your ISP and have them block traffic at the upstream routers. That being said, there are some things you can do to manage small scale dDOS attacks:

Turn on tcp_syncookies:

echo "1" > /proc/sys/net/ipv4/tcp_syncookies

Configure your firewall to drop packets after a certain threshold is reached using the --limit and --limit-burst options (check out the iptables man page or the netfilter documentation at www.netfilter.org). You'll have to play around with the limit to find the right setting so that your not dropping legitimate packets. Keep in mind that when it comes to a serious dDOS attack that consumes significant bandwidth, neither of those will do much good and working with your ISP is really the best options
 
Old 02-29-2004, 01:37 AM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
By the way, the correct acronym is DDoS

There are lots of different types of DDoS attacks. The most common these days is a simple SYN flood that exhausts the amount of buffers available to hold half-open connections. It can be mitigated by turning on syncookies (on Linux) or synproxy (on some other OSs, such as OpenBSD) to handle SYN requests more intelligently. You can also increase the amount of buffers available for half-open connections and decrease the time-out period to expire them.

See this site for more information.

There are also other types of DDoS attacks, such as simple ICMP floods that fill up all your bandwidth (which is the old-style PING flood), smurf attacks, and much more complicated schemes that generally go beyond the scope of such a simple question.

A packet filter firewall will be able to help with some of them, but any DoS that operates by filling your network bandwidth will still incapacitate you if your ISP cannot provide assistence. A common manifestation of this is the "Slashdot" syndrom, where a site with a small amount of bandwidth becomes linked by Slashdot.org and the sheer amount of incoming HTTP requests overwhelms it.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel 2.6.x with APF firewall andy18 Linux - General 0 03-16-2005 01:19 PM
APF firewall binumvk Linux - Security 2 10-14-2004 05:12 AM
APF Firewall BlackRain Linux - Security 2 06-12-2003 08:40 AM
How do I know if it is my iSP blocking port 25 or my RH8 Firewall setting lho Linux - Networking 10 04-11-2003 12:14 PM
RH8 Setting up firewall - how to start? melmore Linux - Networking 2 12-21-2002 05:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration