Skip to contentSkip to conversation

ip_conntrack

DISCUSSION Michał Margula 3 participants 7 messages Mar 4, 2003 – Mar 6, 2003 2 messages not in the archive netfilter

lore
Share & tools
lore
#0 lore raw

Hello!

Still not having time to try ctnetlink so currently another problem to solve. Number of ip_conntrack entries varies from 40 000 to about 120 000. I get messages:

ip_conntrack: table full, dropping packet.

I understand source of problems and solution.

Doing

echo 256000 > /proc/net/ip_conntrack

Does not help.

Signature · 2 lines
Michał Margula, [email protected], http://alchemyx.uznam.net.pl/ +)
"W życiu piękne są tylko chwile" [Ryszard Riedel]
#1 lore raw
Quoted 4 lines

ip_conntrack: table full, dropping packet.
Doing
echo 256000 > /proc/net/ip_conntrack
Does not help.

Sigh. Your command is not supposed to work. Use:

echo 256000 > /proc/sys/net/ipv4/ip_conntrack_max

regards
Patrick

#2 lore raw
Quoted 7 lines · Patrick Schaaf

Sigh. Your command is not supposed to work. Use:

echo 256000 > /proc/sys/net/ipv4/ip_conntrack_max

regards
Patrick

Works. So my solution was bad :). Thank you!

Signature · 2 lines
Michał Margula, [email protected], http://alchemyx.uznam.net.pl/ +)
"W życiu piękne są tylko chwile" [Ryszard Riedel]
#3 lore raw
Quoted 1 line · Michał Margula

Works. So my solution was bad :). Thank you!

After few tens of hours of working, got that message once again. So should I rise that number to let say 512000 or maybe one million? Or maybe something wrong with my system?

Signature · 2 lines
Michał Margula, [email protected], http://alchemyx.uznam.net.pl/ +)
"W życiu piękne są tylko chwile" [Ryszard Riedel]
#4 lore raw
Quoted 3 lines · Micha? Margula

After few tens of hours of working, got that message once again. So should I rise that number to let say 512000 or maybe one million? Or maybe something wrong with my system?

is there something particular about your installation?

Possible causes:

Do you have asymmetric routing?
Are you running a 2.4.20 kernel without applying 'submitted' from p-o-m?

BTW: If you really have 256k/512k connections: remember to increase the hash bucket size.

Quoted 2 lines

Micha? Margula, [email protected], http://alchemyx.uznam.net.pl/ +) "W ?yciu pi?kne s? tylko chwile" [Ryszard Riedel]

Signature · 5 lines
- Harald Welte <[email protected]>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#7 lore raw
Quoted 4 lines · Harald Welte

is there anything particular about the /proc/net/ip_conntrack entries? like lots of UNREPLIED entries, ...?

Main problem with ip_conntrack entries is that when I scan it, let say with "wc -l" my network traffic stops for one or two minutes.

Quoted 6 lines
Quoted 1 line

Please tell me how. Thank you!

modinfo ip_conntrack

please refer to the mailinglists(s), I cannot support all tens of thousands of netfilter users on my own.

Sorry. Didn't notice it was comming directly to you.
Another solution given by few people on other lists is to play with timeouts on ip_conntrack?

Signature · 2 lines
Michał Margula, [email protected], http://alchemyx.uznam.net.pl/ +)
"W życiu piękne są tylko chwile" [Ryszard Riedel]
#8 lore raw
Quoted 2 lines

Another solution given by few people on other lists is to play with timeouts on ip_conntrack?

So far, you have given NO indication of what type of traffic is the culprit, and why it does create so many connections. Until you find out, nobody will be able to tell you more than random hearsay.

We tend not to give such third hand cristal ball advice, on this list.

best regards
Patrick