关闭默认防火墙firewalld
禁止开机启动: systemctl disable firewalld
停止运行: systemctl stop firewalld
安装iptables
yum -y install iptables-services
#启动服务
systemctl start iptables.service
#查看状态
systemctl status iptables.service
#设置iptables的开机自启动
systemctl enable iptables