1.启用防火墙
systemctl start firewalld
防火墙设置开机自启动
systemctl enable firewalld
防火墙禁用开机自启动 systemctl disable firewalld 加载防火墙配置 firewall-cmd --relaod 或者
systemctl reload firewalld
2.查看防火状态
systemctl status firewalld
service iptables status
firewall-cmd --state
3.暂时关闭防火墙
systemctl stop firewalld
service iptables stop
4.永久关闭防火墙
systemctl disable firewalld
chkc