Firewalld Forward Port 防火牆轉發

2024-11-21 linux firewalld

# firewall-cmd --add-forward-port=port=port-number:proto=tcp|udp|sctp|dccp:toport=port-number

sudo firewall-cmd --query-masquerade # 查詢有IP 偽裝
sudo firewall-cmd --permanent --zone=public --add-masquerade
sudo firewall-cmd --permanent --zone=public --add-forward-port=port=33822:proto=tcp:toport=22:toaddr=203.74.221.35