Linux或Windows上实现端口映射(2)

配置并查看端口映射情况

netsh interface portproxy add v4tov4 listenaddress=172.16.2.105 listenport=8081 connectaddress=192.168.50.11 connectport=8080 netsh interface portproxy add v4tov4 listenaddress=172.16.2.105 listenport=8082 connectaddress=192.168.50.12 connectport=8080 netsh interface portproxy show v4tov4

Linux或Windows上实现端口映射

检查效果

在client节点上

curl :8081/index.html curl :8082/index.html curl :8080/index.html

Linux或Windows上实现端口映射

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/12197.html