Windows netsh命令 端口數據重定向,端口請求轉發 端口映射?

1、查看所有規則
netsh interface portproxy show all

2、新增

netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=9999 connectaddress=127.0.0.2 connectport=10000

解析:監聽127.0.0.1:9999端口的所有數據,  轉發到127.0.0.2:10000

3、刪除一條規則
netsh interface portproxy delete v4tov4 listenport=9999 listenaddress=127.0.0.1

解析:刪除監聽127.0.0.1:9999端口的規則

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章