public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: gj <gj@pointblue.com.pl>
To: <Valdis.Kletnieks@vt.edu>,
	Grzegorz Piotr Jaskiewicz <gj@pointblue.com.pl>
Cc: kernel list <linux-kernel@vger.kernel.org>, <coreteam@netfilter.org>
Subject: Re: ip contrack problem, not strictly followed RFC, DoS very much possible
Date: Mon,  6 Dec 2004 23:20:26 +0100	[thread overview]
Message-ID: <20041206222026.C2DF41B@pointblue.com.pl> (raw)
In-Reply-To: <200412061948.iB6JmOpY003565@turing-police.cc.vt.edu>

On Mon, 6 Dec 2004 at 20:48:45, Valdis.Kletnieks@vt.edu wrote:

> On Mon, 06 Dec 2004 14:54:59 +0100, Grzegorz Piotr Jaskiewicz said:
> 
> > There is little bug, eversince, no author would agree to correct it 
> > (dunno why) in ip_conntrack_proto_tcp.c:91:
> > unsigned long ip_ct_tcp_timeout_established =   5 DAYS;
> 
> If you so desire, you can probably workaround this by doing:
> 
> echo 100 >
> /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_established
> 
> Of course, then if you don't type in an SSH window for 5 minutes, it
> evaporates
> on you - and even SSH keepalives don't help if a router takes a nose dive
> and
> it takes 2 minutes for our NOC to slap it upside the head.  This is a case
> *against* keepalives there - if a router hiccups and drops a keepalive on
> an
> otherwise idle session, you nuke a perfectly good idle session for reasons
> totally contrary to the original purpose of TCP, namely to *survive* such a
> router burp.

Shouldn't it be protocols thingie to take care about connections ?
Ussualy some protocols are sending ping packet to peer. 
This value as it is now, keeps too many connections in memory, which often leads
to conntrack overflow, that blocks litteraly whole machine up. That is nothing
more than DoS, and besides, there is no fallback routine, something that uppon
error would react. Like, flush very likely to be dead connections, etc.



-- 
Grzegorz Jaskiewicz
K4 Labs

  reply	other threads:[~2004-12-06 22:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-06 13:54 ip contrack problem, not strictly followed RFC, DoS very much possible Grzegorz Piotr Jaskiewicz
2004-12-06 14:28 ` Baruch Even
2004-12-06 19:11 ` Jose Luis Domingo Lopez
2004-12-06 19:31   ` Lee Revell
2004-12-06 19:48 ` Valdis.Kletnieks
2004-12-06 22:20   ` gj [this message]
2004-12-06 22:48 ` Willy Tarreau
2004-12-07  8:56 ` [netfilter-core] " Jozsef Kadlecsik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041206222026.C2DF41B@pointblue.com.pl \
    --to=gj@pointblue.com.pl \
    --cc=Valdis.Kletnieks@vt.edu \
    --cc=coreteam@netfilter.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox