使用 Windows 內建 netsh 進行 Port Forwarding

  1. 將 local listen 的 610 port 轉發至 10.201.80.94 的 4444 port
    netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=610 connectaddress=10.201.80.94 connectport=4444

  2. 將 1 建立的 rule 刪除
    netsh interface portproxy delete v4tov4 listenaddress=127.0.0.1 listenport=610

  3. 秀出目前建立的 rule
    netsh interface portproxy show all

This entry was posted in Windows. Bookmark the permalink.