admin
发布于 2024-05-19 / 64 阅读
0

windows端口转发

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\Administrator>netsh interface portproxy add v4tov4 listenaddress=0.0.0.
0 listenport=8001 connectaddress=8.8.8.8 connectport=8001


C:\Users\Administrator>netsh interface portproxy add v4tov4 listenaddress=0.0.0.
0 listenport=3000 connectaddress=8.8.8.8 connectport=3000


C:\Users\Administrator>netsh interface portproxy show v4tov4

侦听 ipv4:                 连接到 ipv4:

地址            端口        地址            端口
--------------- ----------  --------------- ----------
0.0.0.0         8001        8.8.8.8  8001
0.0.0.0         3000        8.8.8.8  3000



C:\Users\Administrator>netsh interface portproxy delete v4tov4 listenaddress=0.0
.0.0 listenport=8001


C:\Users\Administrator>netsh interface portproxy show v4tov4

侦听 ipv4:                 连接到 ipv4:

地址            端口        地址            端口
--------------- ----------  --------------- ----------
0.0.0.0         3000        8.8.8.8  3000


C:\Users\Administrator>