iptables清除防火墙所有配置规则

命令如下:

flush 清除所有的已定规则

iptables -F

delete 删除所有用户“自定义”的链(tables)

iptables -X

zero 将所有的chain的计数与流量统计都归零

iptables -Z

重启防火墙

/etc/rc.d/init.d/iptables save
systemctl iptables restart

 

© 版权声明
THE END
喜欢就支持一下吧
点赞7 分享