From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Lopes Subject: Re: Limit Date: Fri, 26 Aug 2005 23:28:35 +0200 Message-ID: <430F8983.5000006@lopsch.com> References: <20050826145640.A122EA5CAC9@smtp.orbitel.bg> <002d01c5aa7e$191a1c70$0300a8c0@office> <430F842A.8060501@riverviewtech.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <430F842A.8060501@riverviewtech.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter@lists.netfilter.org Taylor, Grant schrieb: > Take a look at the connlimit match extension. > > iptables -t filter -A INPUT -i ${WAN} -d ${WANIPAddress} -p tcp --dport 3333 -m connlimit --connlimit-above 10 -j DROP > > > > Grant. . . . > > Lyubomir Louisov wrote: > >>So how can i limit the number of connections on port 3333 to no more than 10 >>at a time with iptable? >>Is it posible? > > > > I first thought about the same thing. But that will allow more than 10 connections in total. It will allow only 10 connections per IP but afaik in total it can then be alot more than 10 depending on the IPs connecting. Don't know how you can limit it to 10 connections in total but there must be a way with so much options being available for iptables ;). Please correct me if I am wrong.