配置防火墙规则
1、[root@localhost ~]# iptables -P OUTPUT ACCEPT
2、[root@localhost ~]#service iptables save
(1)到这里,如果出现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
[root@localhost ~]#systemctl stop firewalld
[root@localhost ~]#yum install iptables-services
然后等待,完成后
[root@localhost ~]#systemctl enable iptables
[root@localhost ~]#systemctl start iptables
现在,你可以save了,重复1、2、
在centOS7中配置防火墙规则时遇到iptables save失败,可通过停止firewalld服务,安装并启用iptables-services,然后启动iptables来解决。
2万+

被折叠的 条评论
为什么被折叠?



