Блокировка брутфорса на SSH с помощью iptables

Jan 29, 2013 15:23



/sbin/iptables -N LOGDROP
/sbin/iptables -A LOGDROP -j LOG
/sbin/iptables -A LOGDROP -j DROP
iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --set
iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --update --seconds 60 --hitcount 4 -j DROP

отсюда: http://www.rackaid.com/resources/how-to-block-ssh-brute-force-attacks/

bruteforce, attack, terminal, deny, server, iptables, tricks, ssh, linux, shell

Previous post Next post
Up