Dairenn Lombard wrote:
-----Original Message-----
From: Jake Vickers [mailto:[EMAIL PROTECTED] Sent: Thursday, November 30, 2006 11:57 AM
To: [email protected]
Subject: Re: [qmailtoaster] SMTP Connection Throttling by IP address

Otherwise you'd probably have to do something in the firewall.

Is there a way to do rate shaping with iptables?

---------------------------------------------------------------------
     QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Here we go

iptables -I INPUT -p tcp --dport 25 -i eth0 -m state --state NEW -m recent --set


iptables -I INPUT -p tcp --dport 25 -i eth0 -m state --state NEW -m recent 
--update --seconds 60 --hitcount 10 -j DROP

Same ip is allowed to connect to port 25 10x/60seconds
then it is blocked






---------------------------------------------------------------------
    QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to