• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

What is this?

Experienced Elementalist
Joined
Aug 6, 2006
Messages
209
Reaction score
1
markmark - What is this? - RaGEZONE Forums
 
Junior Spellweaver
Joined
Mar 1, 2012
Messages
144
Reaction score
11

The ip_conntrack module, which iptables uses, uses a portion of the system memory to track connections called a connection tracking table. The size of this table is set when the ip_conntrack module is loaded, and is usually determined automatically by a hash of the installed system RAM. For example, a system with 256MB RAM will typically have a conntrack table of 8192 entries by default.

If you are seeing the message in the system's logs, "ip_conntrack: table full, dropping packet." it means that the table is full, and packets that are traversing the system's firewall are being dropped.

In order to increase the maximum value, you must install the kernel-devel package on the system, then reboot the server.

# yum install kernel-devel

# reboot

Now, check to see what the current maximum is set to.

# cat /proc/sys/net/ipv4/ip_conntrack_max
65536

You can now use echo to increase this number. Usually increasing it by double the existing value is good practice.

# echo 131072 > /proc/sys/net/ipv4/ip_conntrack_max

Check to make sure your ip_conntrack table is getting bigger.

# cat /proc/sys/net/ipv4/netfilter/ip_conntrack_count
65750

Since you are inserting this into the live system, when rebooting, this will go back to the default setting. To make this a permanent change in your system, modify the /etc/sysctl.conf file, and add this value, and a comment of your choice.

# echo “net.ipv4.ip_conntrack_max = 131072” >> /etc/sysctl.conf

Some information taken from the Red Hat Knowledgebase.

 
Upvote 0
Joined
Oct 28, 2011
Messages
2,465
Reaction score
1,258
Also, after you follow the above well written instructions.
Please be sure that if this is a VM environment, validate you've increased the amount of memory available before starting it.
By default, most uploaders lower the value extremely. Due to everyone having varying system resources.
This allows you to set them yourself.
 
Upvote 0
Back
Top