Linux Netfilter discussions
 help / color / mirror / Atom feed
From: ludi <myhapwcforever@gmail.com>
To: netfilter@lists.netfilter.org
Subject: Re: Tuning NAT timeout values
Date: Sun, 26 Feb 2006 19:56:58 +0800	[thread overview]
Message-ID: <d27cd2010602260356n640eeb22g@mail.gmail.com> (raw)
In-Reply-To: <43FE1589.10205@hivemynd.net>

it maybe help you.
/usr/src/linux/net/ipv4/netfilter/ip_conntrack_proto_udp.c
#define UDP_TIMEOUT (30*HZ)
#define UDP_STREAM_TIMEOUT (180*HZ)
To change these values you can set up the udp timeout values.

tcp

/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, */
};
I only find these , but I am not sure whether it work.

  reply	other threads:[~2006-02-26 11:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-08 17:30 Last patch-o-matic patches status report Samuel Díaz García
2006-02-23 20:05 ` Tuning NAT timeout values Stephen Jones
2006-02-26 11:56   ` ludi [this message]
2006-02-26 19:29     ` Stephen Jones

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=d27cd2010602260356n640eeb22g@mail.gmail.com \
    --to=myhapwcforever@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox