From: Patrick McHardy <kaber@trash.net>
To: Joakim Axelsson <gozem@gozem.se>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: default value of nf_conntrack_tcp_timeout_close_wait
Date: Wed, 04 Apr 2007 17:30:05 +0200 [thread overview]
Message-ID: <4613C47D.40001@trash.net> (raw)
In-Reply-To: <20070404122314.GP657@kriss.csbnet.se>
Joakim Axelsson wrote:
> Hi,
>
> I've notices that the default value of
> /proc/sys/net/netfilter/nf_conntrack_tcp_timeout_close_wait (atleast in
> kernel 2.6.20.4) is only set to 60 seconds. CLOSE_WAIT is the state where
> one side has sent a FIN but not the other. Meaning we can still send data in
> one direction. This is a state which can live a long time. Much longer than
> just 60 seconds.
>
> I did some googling on the issue to find previous discussions on netfilter
> on the subject, and i can see that an old patch was sent in 2003 to kernel
> to fix this problem. I can only guess that the newer conntrack code brought
> the bug back:
> http://www.linuxarkivet.se/mlists/netfilter-devel/0310/msg00016.html
No, it was changed back without much explanation by this commit (from
the history.git tree):
[NETFILTER]: Sanitize ip_ct_tcp_timeout_close_wait value, from 2.4.x
---
commit b3cf20c77584ce8268be77032d305fe46da09ac6
tree 7c9737e62b90eb5b8c2378779f4ccb2d211dfdce
parent 474669a2743d375e7db3f0e4670c184335a38aee
author Harald Welte <laforge@netfilter.org> Tue, 02 Dec 2003 19:57:05 -0800
committer Linus Torvalds <torvalds@home.osdl.org> Tue, 02 Dec 2003
19:57:05 -0800
-unsigned long ip_ct_tcp_timeout_close_wait = 3 DAYS;
+unsigned long ip_ct_tcp_timeout_close_wait = 60 SECS;
prev parent reply other threads:[~2007-04-04 15:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-04 12:23 default value of nf_conntrack_tcp_timeout_close_wait Joakim Axelsson
2007-04-04 12:59 ` Henrik Nordstrom
2007-04-04 15:42 ` Patrick McHardy
2007-04-05 8:54 ` Henrik Nordstrom
2007-04-05 11:39 ` sendto failed Manish Jain
2007-04-05 11:48 ` Remi Denis-Courmont
2007-04-05 7:11 ` default value of nf_conntrack_tcp_timeout_close_wait Jozsef Kadlecsik
2007-04-04 15:30 ` Patrick McHardy [this message]
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=4613C47D.40001@trash.net \
--to=kaber@trash.net \
--cc=gozem@gozem.se \
--cc=netfilter-devel@lists.netfilter.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.