LARTC
[Top] [All Lists]

Re: [LARTC] Conntrack table full and Heavy p2p loaded traffic manager ..

To: Sébastien CRAMATTE <s.cramatte@wanadoo.fr>
Subject: Re: [LARTC] Conntrack table full and Heavy p2p loaded traffic manager ...
From: Andrew Beverley <andy@andybev.com>
Date: Sat, 24 Feb 2007 10:37:45 +0000
Cc: lartc@mailman.ds9a.nl
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
In-reply-to: <45DF4053.8090104@wanadoo.fr>
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
References: <45DF4053.8090104@wanadoo.fr>
Sender: lartc-bounces@mailman.ds9a.nl
> I've setuped a bridge with l7-filter and ipp2p.  We have every day  + or
> -  between 10Mbits and 30 Mbits P2P traffic from + or - 450 customers.
> When traffic  increase. I've got this kind of error message :
> 
> Feb 23 14:26:19 gestor1 kernel: printk: 38 messages suppressed.
> Feb 23 14:26:19 gestor1 kernel: ip_conntrack: table full, dropping packet.

Not necessarily the answer you were looking for, but this is what
connlimit was written for. Connlimit will limit the number of parallel
TCP connections per host. Do something like:

iptables -t mangle -A PREROUTING -p tcp -i eth0 --dport 1024: \
        -m connlimit --connlimit-above 30 -j DROP

connlimit is not in the vanilla kernel at the minute; you need to patch
with pom. You can download pom from
http://ipset.netfilter.org/install.html, but you may need to patch pom
first! See
http://lists.netfilter.org/pipermail/netfilter-devel/2006-July/025090.html

Andy Beverley


_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

<Prev in Thread] Current Thread [Next in Thread>