windows网卡数据转发
有时候需要将一个网卡的请求(该网卡与客户端相连)转发到另外一张与服务器相连的网卡(网卡与服务器相连)。
https://www.jb51.net/article/66582.htm
下面的代码在windows下运行后可以讲172.20.53.1的14941端口转发到172.20.53.2的3389端口上
netsh interface ipv6 install
netsh interface portproxy add v4tov4 listenaddress=172.20.53.1 listenport=14941 connectaddress=172.20.53.2 connectport=3389
如果要取消上面的端口转发,使用下面的代码
netsh interface portproxy delete v4tov4 listenaddress=172.20.53.1 listenport=14941
如果想查看已经配置了哪些端口转发,可以用如下语句:
netsh interface portproxy show v4tov4
相关推荐
Summer的小屋 2015-07-24
farwang 2020-08-25
BraveWangDev 2020-08-19
ThinkBigWinBig 2020-06-13
Wytheme 2020-06-11
LiHansiyuan 2020-06-06
yongzhang 2020-05-04
wintelx 2020-04-20
wvfeng 2020-04-16
OwenJi 2020-03-01
85407718 2020-02-26
OwenJi 2020-02-16
xuezhengyyy 2020-02-15
huangzonggui 2020-01-30
TinyDolphin 2020-01-19
sansan 2020-01-10
Strongding 2020-01-06
iOS开发笔记 2013-06-09