From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Peter Bi" Subject: Use netfilter to block DoS Date: Sun, 27 Apr 2003 09:42:15 -0700 Sender: netfilter-admin@lists.netfilter.org Message-ID: <005d01c30cdb$f6883a80$6401a8c0@oc.cox.net> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: netfilter@lists.netfilter.org Hi, I have two questions related to Denial of Service: 1) If I want to set up a syn-flood protection, based on 1 per second (bursts 5), should I use iptables -A INPUT -p tcp --syn -m limit --limit 1/s -j DROP or iptables -A INPUT -p tcp --syn -m limit --limit 1/s -j ACCEPT The first one seems to drop those which EXCEED 1 per second and the seocnd one seems to accept which is WITHIN 1 per second (so the exceptions are dropped). confused in logic :-( 2) where can I find more information on the use of Netfilter to DoS ? Thanks. Peter