All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mogens Valentin <monz@danbbs.dk>
To: netfilter <netfilter@lists.netfilter.org>
Cc: moritz.gartenmeister@access.unizh.ch
Subject: Re: TCP_CONNTRACK_ESTABLISHED 5days
Date: Mon, 02 May 2005 16:10:53 +0200	[thread overview]
Message-ID: <427634ED.1030204@danbbs.dk> (raw)
In-Reply-To: <42762C02.8060300@danbbs.dk>

Mogens Valentin wrote:
> (Sent this to the linux-net list; seems this list is more appropriate. 
> Sorry for any inconvenient xposting)
> 
> I fail to understand why TCP_CONNTRACK_ESTABLISHED has to be 5 days.
> It's not configurable from /proc, but I see nothing wrong in changing 
> the source to, say, 1 day.
> Would someone educate me, pls.
> 
> /usr/src/linux/net/ipv4/netfilter/ip_conntrack_proto_tcp.c :
> 
> static unsigned long tcp_timeouts[]
> = { 30 MINS,    /*      TCP_CONNTRACK_NONE,     */
>    5 DAYS,     /*      TCP_CONNTRACK_ESTABLISHED,      */
>    2 MINS,     /*      TCP_CONNTRACK_SYN_SENT, */
>    60 SECS,    /*      TCP_CONNTRACK_SYN_RECV, */
>    2 MINS,     /*      TCP_CONNTRACK_FIN_WAIT, */
>    2 MINS,     /*      TCP_CONNTRACK_TIME_WAIT,        */
>    10 SECS,    /*      TCP_CONNTRACK_CLOSE,    */
>    60 SECS,    /*      TCP_CONNTRACK_CLOSE_WAIT,       */
>    30 SECS,    /*      TCP_CONNTRACK_LAST_ACK, */
>    2 MINS,     /*      TCP_CONNTRACK_LISTEN,   */
> };
> 

Sorry, I had missed
/proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_established

Moritz, thanks for pointing that out.
Your suggested 10 minutes seems a bit short, though..

If we keep, say, a browser connection open longer than those 10m, it's 
supposed to either use keepalive, or an established session will simply 
be setup for another 10m, right?
Won't that create some additional load for a busy server, i.e. something 
else that this thought-of browser session?

To the maintainer of ip_conntrack_proto_tcp.c (Paul Russell?):
Wouldn't it be fair to change TCP_CONNTRACK_ESTABLISHED permanently?

-- 
Kind regards,
Mogens Valentin



  reply	other threads:[~2005-05-02 14:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-02 13:32 TCP_CONNTRACK_ESTABLISHED 5days Mogens Valentin
2005-05-02 14:10 ` Mogens Valentin [this message]
2005-05-02 14:19   ` Moritz Gartenmeister
2005-05-02 14:31   ` Taylor, Grant
2005-05-02 15:53     ` Mogens Valentin
2005-05-02 16:05       ` Taylor, Grant
2005-05-03  8:23       ` Mohamed Eldesoky
2005-05-03 10:48         ` Mogens Valentin

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=427634ED.1030204@danbbs.dk \
    --to=monz@danbbs.dk \
    --cc=moritz.gartenmeister@access.unizh.ch \
    --cc=netfilter@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.