Cloudflare Tunnel 实现内网穿透
本文最后更新于:2024年8月9日 晚上
Prepare work
- Cloudflare Account
- A Domain name which register under Cloudflare
Setup steps
Cloudflare Dashboard
–> Zero Trust
–> Networks
–>Tunnels
-> Create new Tunnels
–> Connector(Cloudflared)
Tips
If you have multiple applications on one server, recommend use docker to create multiple connectors for each Application. Here are using Docker for example .
Copy the application token and save it to docker-compose.yml
:
1 |
|
1 |
|
Connectors that is becomes healthy. That means we successfully connected. Then we go to the next step to set proxy.
1 |
|
Now we can access http://localhost:32400 the plex from lan network and access https://plex.azureapp.org from public network.
Cloudflare Tunnel 实现内网穿透
https://git.msft.vip/2024/05/09-Cloudflare-Tunnel-实现内网穿透/