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
参考:
posted on 2020-07-27 16:13 wenbin_ouyang 阅读(800) 评论(0) 编辑 收藏 举报