CentOS 7 防火牆配置
在CentOS 7或RHEL 7或Fedora中防火牆由firewalld來管理,當然你可以還原傳統的管理方式。或則使用新的命令進行管理。
假如採用傳統請執行一下命令:
systemctl stop firewalld
systemctl mask firewalld
並且安裝iptables-services:
yum install iptables-services
設置開機啓動:
systemctl enable iptables
systemctl [stop|start|restart] iptables
#or
service iptables [stop|start|restart]
service iptables save
#or
/usr/libexec/iptables/iptables.init save