检测是否开启了firewall
systemctl status firewalld.service关闭firewall
systemctl stop firewalld.service禁止firewall开机自启
sytsemctl disable firewalld.service2、检测并安装iptables
yum install iptables-services vim /etc/sysconfig/iptables配置内容可参考Ubuntu iptables设置 原文链接:https://www.f2er.com/centos/378909.html