运行service iptables save发现出错,无法执行,提示
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For otheractions, please try to use systemctl.
无法执行的原因是/etc/sysconfig/iptables 这个文件还没有生成
iptables需要升级
解决方法:
1 systemctl stop firewalld
2 yum install iptables-services
3 systemctl enable iptables
4 systemctl start iptables
之后就可以执行
service iptables save命令了