Posts Tagged ‘ssh’

Rate limiting connections with iptables

Wednesday, October 17th, 2007

You may find this iptables based method of limiting packets useful. For example, to drop connection from from someone who is trying to brute force your passwords via ssh.

I have a particular case, where a customer wants to be notified if more than X number of SMTP connections are being generated from a particular IP address over a period of time.

Here are the commands..

(more…)