firewall-cmd --state
systemctl start firewalld.service
systemctl stop firewalld.service
service firewalld restart
firewall-cmd --reload
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=4400-4600/udp --permanen
firewall-cmd --zone=public --remove-port=80/tcp --permanent
firewall-cmd --zone=public --list-ports
扩展 指令说明 firewall-cmd 根命令 –zone #作用域 –add-port=80/tcp #添加端口,格式为:端口/通讯协议 –permanent #永久生效,没有此参数重启后失效
扩展