hashlimit for ssh and ....

Live forum: /viewtopic.php?t=199


05-01-2006 19:25:12

This little jewel helps with brute force ssh attempts

$IPTABLES -A INPUT -m hashlimit -m tcp -p tcp --dport 22 --hashlimit 1/min --hashlimit-mode srcip --hashlimit-name ssh -m state --state NEW -j ACCEPT

you need to make sure your kernel has the hashlimit module of course, but besides that it should work just fine. Make sure $IPTABLES is defined if you cut and paste this :)


06-01-2006 07:49:10

rawkin, thanks wolfie. I get about 400 hits an hour :-/