centos7,iptables修改后无法保存
作者:互联网
在centos7上,经常修改了iptables规则后,重启后规则就没了。有些地方使用使用 iptables-save,然而并无卵用;
正确的保存操作是 service iptables save
$ 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.
说明没有安装 iptables-services
yum install -y iptables-services
再次保存,成功后会给出提示信息:
$ service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
标签:iptables,service,reload,actions,centos7,修改,save 来源: https://www.cnblogs.com/cosmos-wong/p/16563065.html