? tunnelmole 是一款開源的內網穿透工具,一行命令就能把本地http服務映射成公網可訪問的鏈接
? 提供公共免費的網絡服務,直接下載運行命令即可使用,也支持自行配置搭建私有客戶端、服務端
? 參考開源地址:客戶端:https://github.com/robbie-cahill/tunnelmole-client服務端:https://github.com/robbie-cahill/tunnelmole-service?
? tunnelmole 工作原理圖參考:
curl -O https://install.tunnelmole.com/t357g/install && sudo bash install
npm install -g tunnelmole
下載地址:https://tunnelmole.com/downloads/tmole.exe
tmole -V
? 本文直接使用的是 tunnelmole 提供的公共網絡服務
? 暴露本機運行在9000端口上的portainer服務,只需要打開命令行工具,運行下面命令
tmole.exe 9000
可以在命令行看到分配的隨機域名
...https://ni1ye4-ip-14-145-41-75.tunnelmole.net ? http://localhost:9000http://ni1ye4-ip-14-145-41-75.tunnelmole.net ? http://localhost:9000...
? 可以作為臨時網絡穿透服務使用,把本地服務臨時快捷分享出去,作為ngrok的替代品
? 如需長久穩定安全地使用,建議自行部署服務端,使用自己的網絡服務
閱讀原文:原文鏈接