@dulipeng: https://x.com/dulipeng/status/2067450611529093311
Summary
This article is a practical tutorial that details how to use the Cloudflare Workers/Pages free tier to deploy a low-cost VPN, based on the open-source project edgetunnel, and used with clients like Clash and Shadowrocket.
View Cached Full Text
Cached at: 06/18/26, 06:09 AM
How to Leverage Cloudflare Workers / Pages Free Tier to Deploy a Zero-Cost VPN – Practical Tutorial
This article shares a hands-on tutorial for setting up a free VPN based on the GitHub open-source project edgetunnel.
The main idea is to use Cloudflare Workers/Pages as an edge entry point, accept client connections via WebSocket, parse protocols, forward traffic, and generate subscription links at Cloudflare’s edge nodes. It then works with clients like Clash, Shadowrocket, v2rayN, Hiddify, etc.
It supports three deployment methods: Workers, Pages GitHub, and Pages Upload. This tutorial uses Pages Upload as an example, because that method requires no specialized knowledge.
1️⃣ Create a Pages Application
- Click
direct-upload-demo.zipto download the Cloudflare Pages demo project archive. - Prepare a Cloudflare account, and go to Compute and AI > Workers and Pages > Create Application.
- Select the Pages tab, then click Drop files > Get started.
- Project Name: enter any value, but it must be a brand new name to avoid a 1101 error. It is recommended to append a random number, e.g.,
edt123123123. - Click Upload from computer, select the
direct-upload-demo.ziparchive downloaded in step 1, and wait for the upload to complete. - Click Deploy site and wait for deployment to finish.
- A success message indicates the initial deployment is complete! Click Continue with project to proceed with setting up variable bindings and KV.
2️⃣ Set Up Admin Variables
- Go to the project settings page, click the Settings tab, then add variables and secrets:
- Click + Add. Set Type to Text, Variable name to
ADMIN, and Value to the WebUI admin password. Use a strong password to avoid brute‑force attacks. - The variable is now set. If you forget the password, you can return to this page to view it.
3️⃣ Bind a KV Namespace
- Go to Storage and Databases > Workers KV > + Create Instance to create a namespace.
- Name the namespace as you like. It is recommended to name it
EDT2for clarity. Click Create to finish. - Return to the project settings page, click Settings > Bindings > + Add > KV Namespace.
- Variable name must be the uppercase
KV. Select the namespace you just created (EDT2). Click Save to complete the binding. - Go back to the project settings page to confirm the binding is successful.
4️⃣ Redeploy to Activate the Variables!
- Click
edgetunnel-main.zipto download the latest project archive. - Click Create deployment, and upload the edgetunnel-main.zip archive you just downloaded.
- Select Production as the deployment environment. Click Upload from computer, choose the archive, and wait for the upload.
- Click Save and Deploy, then wait for the deployment to complete.
Note: If you need to change the admin password, you must re‑upload and deploy after modifying the variable, otherwise the variable will not take effect!
5️⃣ Bind a Custom Domain
- Go to the Pages application, click the Custom domains tab, then click Set up a custom domain.
- Add a custom domain.
- Choose Begin CNAME setup.
- Record name:
edt2; CNAME record value:edt123123123.pages.dev. - Go to your domain registrar and add the CNAME record.
- Return to the Custom domains tab, click Finish DNS setup later, and wait for domain verification.
- After 10–30 minutes, if verification succeeds, you will see a domain bound successfully message.
6️⃣ Log In to the EDT2 Admin Panel
- Visit
/adminto reach the login page. For example, if your custom domain isedt2.fxxk.cloudns.org, you would visithttps://edt2.fxxk.cloudns.org/admin. - Enter the admin password and click Log in to access the admin panel.
- After successful login, you will see the management page. If you are a beginner, you can simply use the subscription without any further tweaking.
Similar Articles
@afly813: https://x.com/afly813/status/2061989786215444949
Detailed tutorial on how to use Cloudflare's free services (Workers, Pages, KV, etc.) and free domain names to build a long-term network proxy node at zero cost for accessing services like ChatGPT and Gemini.
@brucexu_eth: Damn, my internet just went down out of nowhere, all the VPN nodes were down. I messed around for a while, including trying to use Tailscale exit node, and I was just about to get it working when I realized I logged into Tailscale with Google. It was a dead loop, wtf. Finally, @draken_zeng recommended E…
Recommended an open-source project called edgetunnel, an edge computing tunnel decryption based on Cloudflare Workers/Pages, which can serve as a free replacement for paid VPN services.
@huoshan007: Still paying for airport proxies? You can really stop now. This trick is a bit crazy: Prepare two things: 1. Cloudflare account, free registration 2. A domain, a few dollars a year. Then configure it with this open-source tool, basically done in ten minutes. Unlimited nodes, Cloudflare CDN channels, YouT…
edgetunnel is an open-source tool based on Cloudflare Workers/Pages, using edge computing tunnel technology to build proxy nodes, supporting VLESS, Trojan, Shadowsocks and other protocols, which can freely replace paid VPN services.
@Suu766: It's 2026 now, and I'm sure many friends are still struggling with VPN subscription costs and stability. Here I recommend a zero-cost self-built node solution: set up your personal node through Cloudflare. The whole process requires no server purchase or coding—just operate on a web page, and it takes about 10-15 minutes to complete. Deploy...
Introduces a method to build a free VPN node through Cloudflare, no server or coding required, suitable for unlocking AI tools like ChatGPT, with a step-by-step tutorial.
@ai_laotie: https://x.com/ai_laotie/status/2068953327279485075
This tutorial explains how to use Cloudflare's free serverless services (including Pages and KV) to set up a high-speed private VLESS node at zero cost, enabling smooth playback of 4K/8K videos and access to AI services.