设置Windows流量转发

##在Power Shell或cmd命令行下执行##

##添加流量转发
netsh interface portproxy add v4tov4 listenport=8040 connectaddress=192.168.1.19 connectport=8040
netsh interface portproxy add v4tov4 listenport=1521 connectaddress=192.168.1.10 connectport=1521
netsh interface portproxy add v4tov4 listenport=8088 connectaddress=192.168.1.10 connectport=8088
netsh interface portproxy add v4tov4 listenport=9889 connectaddress=192.168.1.11 connectport=3389
netsh interface portproxy add v4tov4 listenport=8889 connectaddress=192.168.1.9 connectport=1433
netsh interface portproxy add v4tov4 listenaddress=192.168.1.71 listenport=8889 connectaddress=192.168.1.9 connectport=1433

##删除流量转发
netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=8889

##显示当前所有流量转发的配置
netsh interface portproxy show all