Centos7关闭firewall防火墙,启用iptables防火墙

从Centos7开始默认使用firewall防火墙了

换成iptables防火墙,操作步骤如下:

关闭firewalld防火墙,关闭开机自启

安装iptables防火墙,设置开机自启

然后编辑iptables防火墙规则就好了

来个示例:

猜你喜欢

转载自www.cnblogs.com/yinwutuan/p/8856122.html