启用防火墙
sudo systemctl start firewalld sudo systemctl enable firewalld
开放1到10010端口范围
sudo firewall-cmd --zone=public --add-port=1-10010/tcp --permanent
重新加载防火墙以应用更改
sudo firewall-cmd --reload
检查端口范围是否已开放 s
sudo firewall-cmd --zone=public --query-port=1-10010/tcp