iptablesTag:
记录 Linux Iptables 防火墙 Dropped Packets 日志
JavasBoy | Script | 2014-01-24
最近VPS深受垃圾评论所害,而且IP都是福建莆田的,而且是不停的访问一两个URL!
以下是屏蔽一个IP列表的脚本中的一段,完整的脚本Google一下就出来了。
[shell]
IPT="/sbin/iptables"
SPAMLIST="blockedip"
SPAMDROPMSG="BLOCKED IP DROP: "
[ -f /root/scripts/blocked.ips.txt ] && BADIPS=$(egrep -... [阅读全文]