Skip to contentSkip to conversation

SSH Brute force attacks

DISCUSSION [email protected] 1 participant 1 message May 11, 2005

lore
Share & tools
lore
#0 lore raw
Quoted 11 lines

iptables -A SSH_Brute_Force -m recent --name SSH ! --rcheck --seconds 60 -m recent --hitcount 4 --set --name SSH -j RETURN

this what I get back:
=====================
[root@abc root]# iptables -A SSH_Brute_Force -m recent --name SSH ! --rcheck --seconds 60 -m recent --hitcount 4 --set --name SSH -j RETURN iptables v1.2.9: Unknown arg `4'
Try `iptables -h' or 'iptables --help' for more information. [root@ns root]#

Try it with a different target. For some reason the recent module doesn't like some targets (or no target) when matching on hitcount or seconds.

-Bob