RE: Connection throttling POP3.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On Mon, 21 May 2007, Matthew Schumacher wrote:
>
>> List,
>>
>> And this spammer is racking up a zillion processes which 
is killing 
>> my machine.  I need a way to throttle this somehow where 
he is only 
>> allowed one connection per IP at a time, or perhaps a way 
to ignore 
>> them after so many invalid passwords.
>>
>> Anyone know of a way to do this?

If you are on Linux, you can do something like this, which I use for SSH for the same reasons:

iptables -A INPUT -p tcp --dport 22 \
         -m state --state NEW \
         -m recent --update --seconds 60 -j DROP

iptables -A INPUT -p tcp --dport 22 \
         -m state --state NEW \
         -m recent --set -j ACCEPT

This limits connections to once a minute.

David

----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux