From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Taylor, Grant" Subject: Re: matchlimit Date: Wed, 20 Apr 2005 17:39:53 -0500 Message-ID: <4266DA39.8090907@riverviewtech.net> References: <4266383E.5000002@eccotours.dyndns.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4266383E.5000002@eccotours.dyndns.org> 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: Brent Clark Cc: iptables > What would be the recommended the rule for matchlimit FROM a specfic > ipaddess. iptables -t filter -A INPUT -s $Source_IP_of_attack -d $Your_IP -m limit ! --limit 5/minute --limit-burst 5 -j DROP I think you will want the "!" in there as you want to drop any packets that are over the limit. You will need to reference the man page and play with this for a while. One think to keep in mind is that this will only limit attacks coming from $Source_IP_of_attack and this may never happen again. Thus I don't know how practice this rule is. But this is my answer to your question. Grant. . . .