设为首页 加入收藏

TOP

openwrt临时封禁ip(二)
2023-07-23 13:30:29 】 浏览:46
Tags:openwrt 时封禁
IpListNew" ];then #邮箱填自己常用邮箱,方便及时收到通知 echo -e "subject:MyOpenwrt IP封禁提醒\n\n$dropIpListNew" | msmtp 1234567@qq.com fi } #检查当前进程是否存在 PocessNum=$(ps | grep $0 | grep -v grep | wc -l) if [ "$PocessNum" -gt 2 ];then #已经存在进程,直接退出当前进程 kill -9 $$ else intEnv while : do sleep $timesleep dropIpList="" startGetDropIp ipsetAddIp sendmail done fi

/etc/msmtprc 这里用的163邮箱,其他邮箱这里不列举

defaults

account 163
host smtp.163.com
port 25
from <这里填你发邮件的邮箱>
auth plain
tls on
user <这里填你发邮件的邮箱>
password <这里填你发邮件的邮箱的密码>

account default : 163
首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Linux —用户和组 下一篇Rocky Linux8升级9随记

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目