分享一个自制脚本,自动使用iptables和lastb封禁近1天尝试ssh登录错误的ip top5,其大多为ssh爆破轮询,来自美丽之国 shell bin bash BANNED_IPS tmp banned ips TO_BANNED_IPS tmp to_banned ips iptables nL INPUT awk NR 2 print 4 uniq BANNED_  阅读全文