[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh howto for debian?



On Wed January 28 2009, Paul Cartwright wrote:
> > references at :
> >
> > http://www.la-samhna.de/library/brutessh.html
> > http://www.ducea.com/2006/06/28/using-iptables-to-block-brute-force-attac
> >ks /
> >
> > /sbin/iptables -A ssh-connection -i $EXT -p tcp --dport 22 -m recent
> > --update --seconds 600 --hitcount 4 --rttl --name SSH -j LOG
> > --log-prefix "SSH_brute_force "
>
> # /sbin/iptables -A ssh-connection -i $EXT -p tcp --dport 22 -m
> recent  --update --seconds 600 --hitcount 4 --rttl --name SSH -j
> LOG --log-prefix "SSH_brute_force "
> Bad argument `tcp'
> Try `iptables -h' or 'iptables --help' for more information.

I think I get it now..
you have to change $EXT to NEW:
/sbin/iptables -A ssh-connection -i NEW -p tcp --dport 22 -m recent


-- 
Paul Cartwright
Registered Linux user # 367800
Registered Ubuntu User #12459


Reply to: