{"id":13547145,"url":"https://github.com/3Kmfi6HP/EDtunnel","last_synced_at":"2025-04-02T19:32:35.669Z","repository":{"id":178489621,"uuid":"650579041","full_name":"3Kmfi6HP/EDtunnel","owner":"3Kmfi6HP","description":"Use Cloudflare pages and worker serverless to implement VLESS protocol","archived":false,"fork":false,"pushed_at":"2024-08-02T06:17:07.000Z","size":833,"stargazers_count":6501,"open_issues_count":269,"forks_count":6430,"subscribers_count":59,"default_branch":"main","last_synced_at":"2024-08-02T12:23:21.277Z","etag":null,"topics":["cloudflare-pages","cloudflare-workers","edtunnel","v2ray","v2ray-nodejs","vless","websocket","websocket-proxy"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/3Kmfi6HP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-06-07T11:15:45.000Z","updated_at":"2024-08-02T10:58:39.000Z","dependencies_parsed_at":"2024-01-14T02:40:02.974Z","dependency_job_id":"d3354fa3-e1f2-4298-bd3e-fb9ac0d9738c","html_url":"https://github.com/3Kmfi6HP/EDtunnel","commit_stats":null,"previous_names":["3kmfi6hp/edtunnel"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3Kmfi6HP%2FEDtunnel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3Kmfi6HP%2FEDtunnel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3Kmfi6HP%2FEDtunnel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3Kmfi6HP%2FEDtunnel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3Kmfi6HP","download_url":"https://codeload.github.com/3Kmfi6HP/EDtunnel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222863454,"owners_count":17049403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudflare-pages","cloudflare-workers","edtunnel","v2ray","v2ray-nodejs","vless","websocket","websocket-proxy"],"created_at":"2024-08-01T12:00:51.567Z","updated_at":"2024-11-03T15:30:59.832Z","avatar_url":"https://github.com/3Kmfi6HP.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# EDtunnel\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://cloudflare-ipfs.com/ipfs/bafybeigd6i5aavwpr6wvnwuyayklq3omonggta4x2q7kpmgafj357nkcky\" alt=\"edgetunnel\" style=\"margin-bottom: -50px;\"\u003e\n\u003c/p\u003e\n\nGitHub Repository for [https://github.com/zizifn/edgetunnel](https://github.com/zizifn/edgetunnel)\n\nask question and cloudflare ips: [https://t.me/edtunnel](https://t.me/edtunnel)\n\n[![Repository](https://img.shields.io/badge/View%20on-GitHub-blue.svg)](https://github.com/zizifn/edgetunnel)\n\n## available branches and explain\n\n| Branch Name   | Description                                                   |\n| ------------- | ------------------------------------------------------------- |\n| remote-socks5 | Branch for remote SOCKS5 proxy pool used implementation       |\n| socks5        | Branch for SOCKS5 proxyIP implementation                      |\n| vless         | Branch for outbound VLESS protocol implementation             |\n| vless2        | Branch for alternative outbound VLESS protocol implementation |\n| code1         | Branch for code1 feature development                          |\n| code2         | Branch for code2 alternative feature development              |\n| dns           | Branch for DNS alternative related development                |\n| main          | Main branch for the project                                   |\n| pages         | New version for deployment on Cloudflare Pages                |\n\n## Deploy in pages.dev\n\n1. See YouTube Video:\n\n   [https://www.youtube.com/watch?v=8I-yTNHB0aw](https://www.youtube.com/watch?v=8I-yTNHB0aw)\n\n2. Clone this repository deploy in cloudflare pages.\n\n## Deploy in worker.dev\n\n1. Copy `_worker.js` code from [here](https://github.com/3Kmfi6HP/EDtunnel/blob/main/_worker.js).\n\n2. Alternatively, you can click the button below to deploy directly.\n\n   [![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/3Kmfi6HP/EDtunnel)\n\n## Lazy to deploy\n\n`aHR0cHM6Ly9vc3MudjJyYXlzZS5jb20vcHJveGllcy9kYXRhLzIwMjMtMDctMzAvRnJFS1lvQS50eHQ=` (free clash.meta subscribe config)\n\n## UUID Setting (Optional)\n\n1. When deploy in cloudflare pages, you can set uuid in `wrangler.toml` file. variable name is `UUID`. `wrangler.toml` file is also supported. (recommended) in case deploy in webpages, you can not set uuid in `wrangler.toml` file.\n\n2. When deploy in worker.dev, you can set uuid in `_worker.js` file. variable name is `userID`. `wrangler.toml` file is also supported. (recommended) in case deploy in webpages, you can not set uuid in `wrangler.toml` file. in this case, you can also set uuid in `UUID` enviroment variable.\n\nNote: `UUID` is the uuid you want to set. pages.dev and worker.dev all of them method supported, but depend on your deploy method.\n\n### UUID Setting Example\n\n1. single uuid environment variable\n\n   ```.environment\n   UUID = \"uuid here your want to set\"\n   ```\n\n2. multiple uuid environment variable\n\n   ```.environment\n   UUID = \"uuid1,uuid2,uuid3\"\n   ```\n\n   note: uuid1, uuid2, uuid3 are separated by commas`,`.\n   when you set multiple uuid, you can use `https://edtunnel.pages.dev/uuid1` to get the clash config and vless:// link.\n\n## subscribe vless:// link (Optional)\n\n1. visit `https://edtunnel.pages.dev/uuid your set` to get the subscribe link.\n\n2. visit `https://edtunnel.pages.dev/sub/uuid your set` to get the subscribe content with `uuid your set` path.\n\n   note: `uuid your set` is the uuid you set in UUID enviroment or `wrangler.toml`, `_worker.js` file.\n   when you set multiple uuid, you can use `https://edtunnel.pages.dev/sub/uuid1` to get the subscribe content with `uuid1` path.(only support first uuid in multiple uuid set)\n\n3. visit `https://edtunnel.pages.dev/sub/uuid your set/?format=clash` to get the subscribe content with `uuid your set` path and `clash` format. content will return with base64 encode.\n\n   note: `uuid your set` is the uuid you set in UUID enviroment or `wrangler.toml`, `_worker.js` file.\n   when you set multiple uuid, you can will use `https://edtunnel.pages.dev/sub/uuid1/?format=clash` to get the subscribe content with `uuid1` path and `clash` format.(only support first uuid in multiple uuid set)\n\n## subscribe Cloudflare bestip(pure ip) link\n\n1. visit `https://edtunnel.pages.dev/bestip/uuid your set` to get subscribe info.\n\n2. cpoy subscribe url link `https://edtunnel.pages.dev/bestip/uuid your set` to any clients(clash/v2rayN/v2rayNG) you want to use.\n\n3. done. if have any questions please join [@edtunnel](https://t.me/edtunnel)\n\n## multiple port support (Optional)\n\n   \u003c!-- let portArray_http = [80, 8080, 8880, 2052, 2086, 2095];\n\tlet portArray_https = [443, 8443, 2053, 2096, 2087, 2083]; --\u003e\n\nFor a list of Cloudflare supported ports, please refer to the [official documentation](https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/ports).\n\nBy default, the port is 80 and 443. If you want to add more ports, you can use the following ports:\n\n```text\n80, 8080, 8880, 2052, 2086, 2095, 443, 8443, 2053, 2096, 2087, 2083\nhttp port: 80, 8080, 8880, 2052, 2086, 2095\nhttps port: 443, 8443, 2053, 2096, 2087, 2083\n```\n\nif 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.\n\n## proxyIP (Optional)\n\n1. When deploy in cloudflare pages, you can set proxyIP in `wrangler.toml` file. variable name is `PROXYIP`.\n\n2. When deploy in worker.dev, you can set proxyIP in `_worker.js` file. variable name is `proxyIP`.\n\nnote: `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)...\n\nresons: Outbound TCP sockets to Cloudflare IP ranges are temporarily blocked, please refer to the [tcp-sockets documentation](https://developers.cloudflare.com/workers/runtime-apis/tcp-sockets/#considerations)\n\n## Usage\n\nfrist, open your pages.dev domain `https://edtunnel.pages.dev/` in your browser, then you can see the following page:\nThe path `/uuid your seetting` to get the clash config and vless:// link.\n\n## Star History\n\n\u003ca href=\"https://star-history.com/#3Kmfi6HP/EDtunnel\u0026Date\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://api.star-history.com/svg?repos=3Kmfi6HP/EDtunnel\u0026type=Date\u0026theme=dark\" /\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://api.star-history.com/svg?repos=3Kmfi6HP/EDtunnel\u0026type=Date\" /\u003e\n    \u003cimg alt=\"Star History Chart\" src=\"https://api.star-history.com/svg?repos=3Kmfi6HP/EDtunnel\u0026type=Date\" /\u003e\n  \u003c/picture\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3Kmfi6HP%2FEDtunnel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3Kmfi6HP%2FEDtunnel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3Kmfi6HP%2FEDtunnel/lists"}