发布时间:2016-04-23 16:57:10
把一直尝试登录服务器的非法ip加入防火墙黑名单,可以按这个思路扩展为把攻击的ip加入防火墙黑名单。有问题欢迎指教,感恩啦。#!/bin/bash##block the illegal ip that attempt to access server###1.get the illegal ipcat /var/log/secure |grep 'Failed password for root'| awk '{print $11}' | uniq -c|awk.........【阅读全文】