Skip to contentSkip to conversation

now to increase ip_conntrack_max in 2.6.28?

DISCUSSION Alec Matusis 2 participants 3 messages Jul 28, 2009

lore
Share & tools
lore
#0 lore raw

I need to increase the number of connections that netfilter can track on a production server, to avoid "ip_conntrack: table full, dropping packet" messages.
On 2.6.24 (ubuntu 8.04) it was:
echo 524288 > /proc/sys/net/ipv4/netfilter/ip_conntrack_max

On 2.6.28 (ubuntu 9.04) the entire /proc/sys/net/ipv4/netfilter directory is missing. Moreover,

find / -name ip_conntrack_max

returns NOTHING.

How do I increase this?

#1 lore raw

Hi Alec,

Quoted 2 lines

On 2.6.28 (ubuntu 9.04) the entire /proc/sys/net/ipv4/netfilter directory is missing. Moreover,

Make sure you have nf_conntrack loaded. It you do, then file you're looking for is here:
/proc/sys/net/nf_conntrack_max

Cheers,
Marek Kierdelewicz

#2 lore raw

Thank you Marek, in Ubuntu 9.04 server edition nf_conntrack module apparently is not loaded by default. I wonder why... What confused me was that iptables rules actually worked, so I thought the module must have been loaded.
I loaded it, and the file appeared.

Quoted 18 lines

-----Original Message-----
From: Marek Kierdelewicz [mailto:[email protected]]
Sent: Monday, July 27, 2009 11:53 PM
To: Alec Matusis
Cc: [email protected]
Subject: Re: now to increase ip_conntrack_max in 2.6.28?

Hi Alec,

Quoted 2 lines

On 2.6.28 (ubuntu 9.04) the entire /proc/sys/net/ipv4/netfilter directory is missing. Moreover,

Make sure you have nf_conntrack loaded. It you do, then file you're looking for is here:
/proc/sys/net/nf_conntrack_max

Cheers,
Marek Kierdelewicz