关闭防火墙
#禁用,禁止开机启动: systemctl disable firewalld
#停止运行: systemctl stop firewalld
yum -y install iptables-services
systemctl start iptables
vim /etc/sysconfig/iptables
开机启动iptables
systemctl enable iptables
systemctl stop iptables
systemctl start iptables
systemctl restart iptables
systemctl reload iptables
原文:https://www.cnblogs.com/mingerlcm/p/14098379.html