木心

毕竟几人真得鹿,不知终日梦为鱼

导航

windows下开启端口映射配置

#1.添加一个端口映射 netsh interface portproxy add v4tov4 listenaddress=大网IP listenport=端口  connectaddress=要映射的小网IP   connectport=端口

netsh interface portproxy add v4tov4 listenaddress=172.16.100.225 listenport=2020  connectaddress=172.16.100.225 connectport=5672
netsh interface portproxy add v4tov4 listenaddress=172.16.100.225 listenport=2019  connectaddress=172.16.100.225 connectport=15672

#2.查看存在的转发 netsh interface portproxy show all

#3. 防火墙开启对应映射端口

#4. 删除一个端口 netsh interface portproxy delete v4tov4 listenaddress=IP listenport=端口

netsh interface  portproxy delete v4tov4 listenaddress=xx.xxx.xxx.xxx  listenport=2010

 

参考:

1)https://www.cnblogs.com/xiaoer/p/7771539.html

2)https://blog.csdn.net/shaopengf/article/details/89334987

posted on 2020-07-27 16:13  wenbin_ouyang  阅读(800)  评论(0编辑  收藏  举报