NetFilter
[Top] [All Lists]

Re: [PATCH 1/2] xt_connlimit (kernel) - connection limiting

To: Andrew Beverley <andy@andybev.com>
Subject: Re: [PATCH 1/2] xt_connlimit (kernel) - connection limiting
From: Jan Engelhardt <jengelh@linux01.gwdg.de>
Date: Sun, 3 Jun 2007 19:18:48 +0200 (MEST)
Cc: Netfilter Developer Mailing List <netfilter-devel@lists.netfilter.org>, Netfilter Mailing List <netfilter@lists.netfilter.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Delivered-to: sp-com-lists@consult.net
Delivered-to: netfilter-list1@securepoint.com
In-reply-to: <1180890022.6601.6.camel@andybev>
List-archive: </pipermail/netfilter>
List-help: <mailto:netfilter-request@lists.netfilter.org?subject=help>
List-id: General discussion and user questions <netfilter.lists.netfilter.org>
List-post: <mailto:netfilter@lists.netfilter.org>
List-subscribe: <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=subscribe>
List-unsubscribe: <https://lists.netfilter.org/mailman/listinfo/netfilter>, <mailto:netfilter-request@lists.netfilter.org?subject=unsubscribe>
References: <Pine.LNX.4.61.0706031248290.10578@yvahk01.tjqt.qr> <Pine.LNX.4.61.0706031312450.10578@yvahk01.tjqt.qr> <1180890022.6601.6.camel@andybev>
Sender: netfilter-bounces@lists.netfilter.org
On Jun 3 2007 18:00, Andrew Beverley wrote:
>On Sun, 2007-06-03 at 13:12 +0200, Jan Engelhardt wrote:
>> Adds the connlimit match that has been in POM-NG for a long time.
>> 
>>     *        works with 2.6.22, xtables'ified and all that
>> 
>>     *        will request nf_conntrack_ipv4 upon load
>>      (otherwise it hotdrops every packet - a glitch that goes back
>>      to at least 2.6.20.2)
>
>Excellent! This has been at the back of my mind for a while.
>
>Is there any chance of getting UDP flows added as well as TCP
>connections?

I dare to say it's easy. The real problem is rather, that UDP is
connectionless, so for one, connlimit can, by definition of the word
'connectionless', not apply to UDP, though it is technically
possible. Second, because UDP "connections" "fly" (timeout after 30
seconds), just spewing one UDP packet out may kill another connection
(e.g. if you use connlimit in conjunction with DROP or REJECT).
What's more, UDP packets can be easily forged, much more than TCP, so
anyone on the same subtree (not subnet, because that's something
different) can send a bogus UDP packet and stop your connections from
working.
Let's see how to implement UDP counting...


        Jan
-- 


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