[lkml]   [2000]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: linux kernel TCP, network connections and iptables
On Fri, Sep 08, 2000 at 12:21:40AM +0200, Andi Kleen wrote:
> You do not even need patches for it. You can do it as well with a TBF
> filter in the qdisc and a u32 filter that selects RSTs (it is even a
> standard example in iproute2)
> Another way that may work is to set the send buffer of tcp_socket in
> tcp_ipv4.c to a really small value, so that only one RST packet fits.
> Then you get a good load limit implicitely in the stack
> (there should be probably a sysctl for that)

I forgot to add: Alexey is of course right in that it doesn't help you
at all. You cannot defend against packet floods, and with an active TCP
you can be always tricked into bouncing packets without load limit
(e.g. just by sending out of order packets for an established connection
or in a zillion other ways)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:38    [W:0.095 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site