windows端口转发设置
使用场景:将内网服务通过可以连外网的内网服务器转发暴露到外网
将本机的18888端口转发到192.168.100.101地址的8888端口
netsh interface portproxy add v4tov4 listenport=18888 connectaddress=10.56.50.134 connectport=8888
将本机的18889端口转发到bc.test.com地址的8889端口
netsh interface portproxy add v4tov4 listenport=18889 connectaddress=abc.test.com connectport=18889
查看转发端口有哪些
netsh interface portproxy show all
删除18888端口的转发
netsh interface portproxy delete v4tov4 listenport=18888