首先执行 systemctl stop firewalld 然后执行systemctl mask firewalld 在执行yum install iptables-services 然后执行 systemctl enable iptables
然后执行 systemctl stop iptables 在执行 systemctl start iptables 在执行 systemctl restart iptables 在执行 service iptables
这样就有了iptables文件了