[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
>   should we just eat it and shut up (because that's the way TCP works and it
> will not change)?

It is part of the protocol requirement

> I haven't used iptables yet but I think they can handle packets with various
> bits sets (including RST), unlike ipfw. But, is there any way with iptables
> to know if a port is "used" or "unused" at any time? And if yes, at what
> state (listening, at the middle of a 3-way TCP handshaking etc) also?

Another very simple approach is to add the following to the top of the tcp
code that sends resets in the kernel

static unsigned long last_time;

if(jiffies-last_time < HZ/10)
last_time = jiffies;

which will then limit to one RST per 10th sec

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.077 / U:1.796 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site