1、查看iptables配置iptables -L
2、清除默认链的规则iptables -F
3、清除自定义链iptables -X
4、保存当前规则service iptables save
保存时如果报错The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
先安装服务yum install iptables-services
5、重启服务systemctl restart iptables