ใช้คำสั่งง่ายๆบน iptables สองคำสั่งในการป้องกันอยู่ IP ใด ๆ ที่ได้พยายาม SSH เข้ามาเกินกว่า 3 ครั้งพร้อมๆกัน หรือพยายามเชื่อมต่อภายใน 3 นาที ดังนั้นผู้ที่จะโจมตีจะถูกล็อคออกอย่างน้อยสามนาที
1.
iptables -I INPUT -i eth1 -p tcp -m tcp –dport 22 -m state –state NEW -m recent –set –name DEFAULT –rsource
2.
iptables -I INPUT -i eth1 -p tcp -m tcp –dport 22 -m state –state NEW -m recent –update –seconds 180 –hitcount 4 –name DEFAULT –rsource -j DROP








A good many valualebs you’ve given me.
[Translate]