Centos 7 防火墙
centos 7 继续使用 centos 6 的 iptalbes
centos 7 不再使用 iptables ,改用 firewalld,若不想使用 firewalled,可以停掉 firewalld,并且安装 iptables-services 包
# systemctl stop firewalld.service
# systemctl status firewalld.service
# systemctl disable firewalld.service
# yum install -y iptables-services
# systemctl enable iptables
# systemctl restart iptables
至此,可以安装 centos 6 的方法管理 iptables 规则
# iptables -F
# service iptables save
# systemctl restart i