检查iptables服务状态,关闭将会自动开启

如下为shell脚本内容 将脚本添加到crontab计划中,定时检查iptables状态,当异常关闭时从新开启web #!/bin/bash #Check iptables service status #by: Becan #iptables规则中任意1个IP地址 IPADDR=111.111.111.111 #判断当iptables正常开启时规则某IP出现次数,若是iptables服务关闭
相关文章
相关标签/搜索