Re: Use netfilter to block DoS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Peter Bi wrote:

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


I have a similiar rule, and I use ACCEPT. I have my system configured to allow up to 5 ICMP messages per second. Beyond that they are dropped.
iptables -A INPUT -p icmp -m limit --limit 5/sec -j ACCEPT




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux