查看防火墙状态
systemctl status firewalld.service
启动firewall
systemctl stop firewalld.service
停止firewall
systemctl stop firewalld.service
重新启动服务
systemctl restart friewalld.service
firewall开机启动
systemctl enable firewalld.service
禁止firewall开机启动
systemctl disable firewalld.service
查看所有已启动的服务
systemctl list-units –type=service
添加防火墙规则
iptables -A DOCKER -p tcp –dport 10083 -j ACCEPT
添加即时生效策略
firewall-cmd –zone=public –add-port=10083/tcp
添加永久生效策略
firewall-cmd –permanent –zone=public –add-port=10083/tcp
删除及时生效策略
firewall-cmd –zone=public –remove-port=80/tcp
删除永久生效策略
firewall-cmd –permanent –zone=public –remove-port=80/tcp
永久保存配置
firewall-cmd –permanent
重新加载配置
firewall-cmd –reload