GitHub Repository for https://github.com/zizifn/edgetunnel
ask question and cloudflare ips: https://t.me/edtunnel
Branch Name | Description |
---|---|
remote-socks5 | Branch for remote SOCKS5 proxy pool used implementation |
socks5 | Branch for SOCKS5 proxyIP implementation |
vless | Branch for outbound VLESS protocol implementation |
vless2 | Branch for alternative outbound VLESS protocol implementation |
code1 | Branch for code1 feature development |
code2 | Branch for code2 alternative feature development |
dns | Branch for DNS alternative related development |
main | Main branch for the project |
pages | New version for deployment on Cloudflare Pages |
-
See YouTube Video:
-
Clone this repository deploy in cloudflare pages.
-
Copy
_worker.js
code from here. -
Alternatively, you can click the button below to deploy directly.
- copy
ProxyIP:proxyport
tohttps://proxyip.edtunnel.best/
and clickCheck
button. - if
Proxy IP
istrue
, you can use thisProxyIP:proxyport
asProxyIP
- if
Proxy IP
isfalse
, you can seeOrigin
is443
this means the port can be accessed website. - edit worker
PROXYIP
variable example211.230.110.231:50008
Note: the proxyIP with port may not vaild some cloudflare site that use http only.
- edit
wrangler.toml
fileUUID
variable(not recommended at public repo) - edit
UUID
in cloudflare dashboard secret enviroment variable (recommended)
Variable | Required | Example | Description |
---|---|---|---|
UUID |
No | 12345678-1234-1234-1234-123456789012 |
Unique identifier |
PROXYIP |
No | 1.1.1.1 or cdn.xn--b6gac.eu.org or with port 1.1.1.1:9443 or [2a01:4f8:c2c:123f:64:5:6810:c55a]:443 or use multiple proxyIPs 1.1.1.1:80,2.2.2.2:443,example.com:443 |
Redirect cloudflare ips to ProxyIP |
SOCKS5 |
No | 1.1.1.1:1080 or user:pass@host:port |
SOCKS5 proxy cloudflare ips |
SOCKS5_RELAY |
No | true or false |
Enable SOCKS5 relaying all traffic |
subscribe linkhttps://sub.xf.free.hr/auto
(auto detect client config)
-
When deploy in cloudflare pages, you can set uuid in
wrangler.toml
file. variable name isUUID
.wrangler.toml
file is also supported. (recommended) in case deploy in webpages, you can not set uuid inwrangler.toml
file. -
When deploy in worker.dev, you can set uuid in
_worker.js
file. variable name isuserID
.wrangler.toml
file is also supported. (recommended) in case deploy in webpages, you can not set uuid inwrangler.toml
file. in this case, you can also set uuid inUUID
enviroment variable.
Note: UUID
is the uuid you want to set. pages.dev and worker.dev all of them method supported, but depend on your deploy method.
-
single uuid environment variable
UUID = "uuid here your want to set"
-
multiple uuid environment variable
UUID = "uuid1,uuid2,uuid3"
note: uuid1, uuid2, uuid3 are separated by commas
,
. when you set multiple uuid, you can usehttps://edtunnel.pages.dev/uuid1
to get the clash config and vless:// link.
-
visit
https://edtunnel.pages.dev/uuid your set
to get the subscribe link. -
visit
https://edtunnel.pages.dev/sub/uuid your set
to get the subscribe content withuuid your set
path.Note:
uuid_your_set
is the uuid you set in UUID enviroment orwrangler.toml
,_worker.js
file. when you set multiple uuid, you can usehttps://edtunnel.pages.dev/sub/uuid1
to get the subscribe content withuuid1
path.(only support first uuid in multiple uuid set) -
visit
https://edtunnel.pages.dev/sub/uuid_your_set/?format=clash
to get the subscribe content withuuid_your_set
path andclash
format. content will return with base64 encode.Note:
uuid_your_set
is the uuid you set in UUID enviroment orwrangler.toml
,_worker.js
file. when you set multiple uuid, you can will usehttps://edtunnel.pages.dev/sub/uuid1/?format=clash
to get the subscribe content withuuid1
path andclash
format.(only support first uuid in multiple uuid set)
-
visit
https://edtunnel.pages.dev/bestip/uuid_your_set
to get subscribe info. -
cpoy subscribe url link
https://edtunnel.pages.dev/bestip/uuid_your_set
to any clients(clash/v2rayN/v2rayNG) you want to use. -
done. if have any questions please join @edtunnel
For a list of Cloudflare supported ports, please refer to the official documentation.
By default, the port is 80 and 443. If you want to add more ports, you can use the following ports:
80, 8080, 8880, 2052, 2086, 2095, 443, 8443, 2053, 2096, 2087, 2083
http port: 80, 8080, 8880, 2052, 2086, 2095
https port: 443, 8443, 2053, 2096, 2087, 2083
if you deploy in cloudflare pages, https port is not supported. Simply add multiple ports node drictly use subscribe link, subscribe content will return all Cloudflare supported ports.
-
When deploy in cloudflare pages, you can set proxyIP in
wrangler.toml
file. variable name isPROXYIP
. -
When deploy in worker.dev, you can set proxyIP in
_worker.js
file. variable name isproxyIP
. -
You can now set multiple proxy IPs by separating them with commas. For example:
PROXYIP = "1.1.1.1:443,2.2.2.2:8443,example.com:443"
The system will randomly select one of these proxy addresses for each request, providing basic load balancing.
Note: proxyIP
is the ip or domain you want to set. This means that the proxyIP is used to route traffic through a proxy rather than directly to a website that is using Cloudflare's (CDN). If you don't set this variable, connection to the Cloudflare IP will be cancelled (or blocked).
Reasons: Outbound TCP sockets to Cloudflare IP ranges are temporarily blocked, please refer to the tcp-sockets documentation
frist, open your pages.dev domain https://edtunnel.pages.dev/
in your browser, then you can see the following page:
The path /uuid_your_set
to get the clash config and vless:// link.
you will see the following page: