CentOS 7 :Failed to start IPv4 firewall with iptables

版权声明:小妖666个人笔记 https://blog.csdn.net/weixin_38883338/article/details/86323208

关闭firewalld:

systemctl stop firewalld  
systemctl mask firewalld

使用iptables服务:

#开放443端口(HTTPS)
iptables -A INPUT -p tcp --dport 443 -j ACCEPT

#保存上述规则
service iptables save

#开启服务
systemctl restart iptables.service

一切正常。

猜你喜欢

转载自blog.csdn.net/weixin_38883338/article/details/86323208
今日推荐