Hey guys,
I am trying to setup this protection by following the instructions below.
http://www.macsat.com/macsat/content/view/62/30/#sshbruteHowever, once I set eveything up and I restart the firewall I get this message
iptables v1.3.3: Unknown arg '-j'
The last line is what it's complaing about. Yes, i installed the iptables-mod-extra package and these to modules are
loaded
ipt_recent
ipt_LOG
And this is added to my firewall.user
iptables -A input_rule -i $WAN -p tcp --dport 22 -j ACCEPT
iptables -t filter -A input_rule -i $WAN -p TCP --dport 22 -m recent --name SSH --rcheck --hitcount 3 --seconds 120 -j LOG --log-prefix "SSH_BRUTE "
iptables -t filter -A input_rule -i $WAN -p TCP --dport 22 -m recent --name SSH --update --hitcount 3 --seconds 120 -j DROP
iptables -t filter -A input_rule -i $WAN -p TCP --dport 22 -m recent --name SSH --set -j
Any ideas ?
Thanks
ScarEye