From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Taylor Subject: Re: Block an IP if there is number of connection within a time limit ?? Date: Wed, 27 Jun 2007 00:18:13 -0500 Message-ID: <4681F315.6060106@riverviewtech.net> References: <4681F1BE.6000108@ditro.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4681F1BE.6000108@ditro.com> 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: Mail List - Netfilter On 6/27/2007 12:12 AM, Ditro - BipinDas wrote: > I do have a Exim mail server with IPTABLES and TCP WRAPPER as > firewall. Yesterday I had noticed that,there is continuous smpt > connection from an IP. I would like to block these IP,if there is > more than 10 connection in 30 second. Is this possible using IPTABLES > command. If yes,Please guide me. Use the IPTables "recent" match extension to match on newly established SMTP sessions and reject them if there have been more than 10 in the last 30 seconds. Grant. . . .