Skip to content

Instantly share code, notes, and snippets.

@3Kmfi6HP
Last active May 17, 2024 13:31
Show Gist options
  • Save 3Kmfi6HP/8c6e07e892fbb2d190a5ca334dc6ba84 to your computer and use it in GitHub Desktop.
Save 3Kmfi6HP/8c6e07e892fbb2d190a5ca334dc6ba84 to your computer and use it in GitHub Desktop.
Customize edgetunnel Cloudflare IP tutorial with cloudflare tunnel

background: 使用 fly.io 的日本机器安装 cloudflare tunnel 利用它代理部署了 edgetunnel 的 cloudflare worker 的域名 实现指定使用日本的IP地址。

同时 也可以通过使用指定中转IP 实现使用全球任意地区的cloudflare IP

菜单点击 Access -> Tunnels

2. 选择一个tunnel

点 Configure 按钮

3. Add a public hostname

配置如下

image image image

连接方法

image *图中的flyio-jp-server-cf-worker.exmaple.com为cloudflare tunnel 设置的域名 并不是cloudflare worker 域名

使用zearbur的方法

通过 Uptime Kuma 内置的 cloudflare tunnel 功能实现

访问 https://dash.zeabur.com/ 创建一个project

创建 add service 点击 marketpalce 找到 Uptime Kuma 部署

部署Uptime Kuma 成功之后

打开 https://zearbur的域名/settings/reverse-proxy 设置 Cloudflare Tunnel Token

image

然后重复上面的步骤。 done

background Using fly.io's Japanese server to install Cloudflare Tunnel, use it to proxy deploy Cloudflare Worker's domain name edgetunnel to achieve using Japan's IP address.

At the same time, you can also use the specified transit IP to achieve using Cloudflare IP anywhere in the world.

Menu click Access -> Tunnels

2. Select a tunnel

Click the Configure button

3. Add a public hostname

Configuration is as follows

image image
image

Connection method

image *The domain name flyio-jp-server-cf-worker.exmaple.com in the figure is the domain name set by Cloudflare Tunnel, not the Cloudflare Worker domain name.

Use Zearbur's method

Through the built-in Cloudflare Tunnel function of Uptime Kuma

Visit https://dash.zeabur.com/ to create a project

Create add service, click marketplace to find Uptime Kuma deployment

After Uptime Kuma is deployed successfully

Open https:// domain of zearbur project/settings/reverse-proxy to set Cloudflare Tunnel Token

image

Then repeat the above steps.
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment