shell结合iptables自动处理攻击

2012-1-16 王健宇 Linux

#!/bin/sh
cd /usr/local/nginx/logs
tail access.log -n 1000 |grep vote.php |awk {'print $2'} |sort |uniq -c |sort -nr |awk '{if ($2!=null && $1>50) {print $2}}' > drop_ip.txt
fo...

阅读全文>>

标签: iptables自动处理攻击

评论(0) 浏览(2396)

Powered by emlog sitemap