* strange phenomena about ip_conntrack
@ 2003-05-21 8:24 pengjie
2003-05-23 22:54 ` Martin Josefsson
0 siblings, 1 reply; 2+ messages in thread
From: pengjie @ 2003-05-21 8:24 UTC (permalink / raw)
To: netfilter
[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]
hi,all,
I'm a newbie of netfilter.I have a problem on it. I think it maybe has some bugs.
A month ago my gateway using linux2.4-7-10 can not forward any packets because it's conntrack table is full, it displaies "ip_conntrack: table full, dropping packet.".the memory of the gateway is 256M.
After that i do a experiment on it.
I set the variable hash_size 20, then the variabel ip_conntrack_max should be 160.
I adjust the TCP timeout on established to 1 hours, and decrease the udp timeout to 1/3 of original value.
I deny the broadcast packet to leave track in conntrack table by open the condition '#if 0 ' to '#if 1' in header of function ip_conntrack_in .
I print the value of ip_conntrack_count in the header of function init_conntrack.
After 2 days, the conntrack table is full, /var/log/messages display the ip_conntrack_count is 167, and /proc/net/ip_conntrack is empty.
Why?!, Why the ip_conntrack_count is bigger than ip_conntrack_max?
Why is /proc/net/ip_conntrack is empty?
how can this occurs?
who can help me?
thanks in advance!
[-- Attachment #2: Type: text/html, Size: 1761 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: strange phenomena about ip_conntrack
2003-05-21 8:24 strange phenomena about ip_conntrack pengjie
@ 2003-05-23 22:54 ` Martin Josefsson
0 siblings, 0 replies; 2+ messages in thread
From: Martin Josefsson @ 2003-05-23 22:54 UTC (permalink / raw)
To: pengjie; +Cc: Netfilter
On Wed, 2003-05-21 at 10:24, pengjie wrote:
> After 2 days, the conntrack table is full, /var/log/messages display
> the ip_conntrack_count is 167, and /proc/net/ip_conntrack is empty.
>
> Why?!, Why the ip_conntrack_count is bigger than ip_conntrack_max?
> Why is /proc/net/ip_conntrack is empty?
> how can this occurs?
>
> who can help me?
Can you try a newer kernel? (I'd recommend 2.4.21-rc3)
And if you still have the same problem, try enabling netfilter debugging
in the kernel configuration (or at least enable the IP_NF_ASSERT macro
in include/linux/netfilter_ipv4/ip_conntrack.h)
--
/Martin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-05-23 22:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-21 8:24 strange phenomena about ip_conntrack pengjie
2003-05-23 22:54 ` Martin Josefsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox