- 查看防火状态systemctl status firewalld service iptables status
- 暂时关闭防火墙systemctl stop firewalld service iptables stop
- 永久关闭防火墙systemctl disable firewalld chkconfig iptables off
- 启动防火墙systemctl start firewalld
- 重启防火墙systemctl enable firewalld service iptables restart
- 设置开机启动systemctl enable firewalld
- 停止并禁用开机启动sytemctl disable firewalld
- 在指定区域打开端口(记得重启防火墙)
 永久生效再加上 --permanentfirewall-cmd --zone=public --add-port=80/tcpfirewall-cmd --zone=public --add-port=5060-5059/udp --permanent