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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM