1 简介

如果我们要从本机192.168.0.103访问oss, 直接访问即可, 而阿里云oss要回调到本机的web应用, 则无法实现, 因为本机没有公网IP
image.png
我们可以通过内网穿透技术来实现
常用的工具有: 续断, 花生壳
https://cloud.zhexi.tech/xd/device/terminal

2 安装客户端

以ubuntu为例

sudo curl -o install.sh “http://cloud.zhexi.tech/upgrade/install.sh” && sudo bash ./install.sh —token G3749I

3 新建隧道

image.png
image.png
http://0pzfsdomxb.51xd.pub

4 内网穿透原理

image.png