CentOS防火墙配置端口转发方式
sudo systemctl enable firewalld.service
sudo systemctl start firewalld
sudo firewall-cmd --list-all
sudo firewall-cmd --add-port=80/tcp --permanent
sudo firewall-cmd --list-services
sudo firewall-cmd --add-port=8081/tcp --permanent
sudo firewall-cmd --add-port=22/tcp --permanent
sudo firewall-cmd --reload
sudo firewall-cmd --add-port=443/tcp --permanent
sudo firewall-cmd --reload
sudo firewall-cmd --state
sudo firewall-cmd --permanent --add-forward-port=port=443:proto=tcp:toport=10443
sudo firewall-cmd --reload
sudo firewall-cmd --permanent --add-forward-port=port=9009:proto=tcp:toport=10443