Cool way to do automatic SSH brute force blocking in iptables:
iptables -A INPUT -m tcp -p tcp --dport 22 -m state \ --state ESTABLISHED,RELATED -j ACCEPT iptables -A INPUT -m tcp -p tcp -s My.local.Lan.0/24 \ --dport 22 -j ACCEPT iptables -A INPUT -m tcp -p tcp -s \ Trusted.Internet.Machine --dport 22 -j ACCEPT iptables -A INPUT -m tcp -p tcp --dport 22 -m state \ --state NEW -m limit --limit 3/min --limit-burst 3 \ -j ACCEPT iptables -A INPUT -m tcp -p tcp --dport 22 -j LOG \ --log-prefix SSHBRUTE iptables -A INPUT -m tcp -p tcp --dport 22 -j DROP
Or alternatively, use BlockSSHD.
No Comments/Pingbacks for this post yet...
An ERROR has occured!
Here you might send email-notification to webmaster or something like that.