From: Dong_Wei <Dong_Wei@nj.cpsecure.com>
To: Patrick McHardy <kaber@trash.net>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: /proc/net/ip_conntrack trange behavior
Date: Fri, 31 Aug 2007 17:59:35 +0800 [thread overview]
Message-ID: <46D7E687.7060404@nj.cpsecure.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0708311044490.32663@x2>
Hi Patrick
> On Thu, 30 Aug 2007, Dong_Wei wrote:
>
>>>> And we can't avoid this issue on 2.4, because no code deal with the
>>>> special case.
>>>
>>>
>>> Thats correct. Is there a problem with this behaviour?
>>
>> As we know, ip_conntrack has a hash_size to control the ip_conntrack
>> record size. and if tcp in ESTABLISH, and ip_conntrack will keep it
>> for 5 DAYs.
>>
>> For exsample, a NAT server can handle 8000 connections, and if
>> sometime, NAT server need reboot(6000 conntrack in ESTBLISHED state
>> now). Also we set ip_conntrack allowing pickup ESTABLISHED tcp
>> connection, when NAT server available again, ip_conntrack will take
>> 6000 conntracks for the original connections. but actully these
>> connections are INVALID for the web server, because the source ip is
>> the private IPs,such as 192.168.0.1. and web server will not answer
>> the client's request. But still the NAT server will keep the 6000
>> conntrack for 5 DAYs. And just 2000 conntracks can be used for the
>> clients. If more than 2000 client want connect to some websites, some
>> ip_conntrack will be droped.
>
>
> You can drop ACK packets in state NEW to avoid connection pickup.
That's a good idea, I will make a patch for my own 2.4 Linux NAT server,
thanks a lot :-)
next prev parent reply other threads:[~2007-08-31 9:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-24 7:43 /proc/net/ip_conntrack trange behavior Dong_Wei
2007-08-29 9:14 ` Yasuyuki KOZAKAI
2007-08-29 18:49 ` Patrick McHardy
2007-08-30 1:14 ` Dong_Wei
2007-08-30 6:49 ` Patrick McHardy
2007-08-30 9:48 ` Dong_Wei
2007-08-31 8:45 ` Patrick McHardy
2007-08-31 9:59 ` Dong_Wei [this message]
2007-08-31 15:09 ` Krzysztof Oledzki
2007-09-03 3:34 ` Dong_Wei
2007-09-03 4:03 ` Philip Craig
2007-09-03 5:11 ` Dong_Wei
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=46D7E687.7060404@nj.cpsecure.com \
--to=dong_wei@nj.cpsecure.com \
--cc=kaber@trash.net \
--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.