Home

Awesome

EDtunnel

<p align="center"> <img src="https://raw.githubusercontent.com/6Kmfi6HP/EDtunnel/refs/heads/main/image/logo.png" alt="edgetunnel" style="margin-bottom: -50px;"> </p>

EDtunnel 是一个基于 Cloudflare Workers 和 Pages 的代理工具,支持多种协议和配置选项。

EDtunnel is a proxy tool based on Cloudflare Workers and Pages, supporting multiple protocols and configuration options.

Repository Telegram

✨ 特性 | Features

🚀 快速部署 | Quick Deployment

在 Pages.dev 部署 | Deploy on Pages.dev

  1. 观看部署教程视频 | Watch deployment tutorial video: YouTube Tutorial

  2. 克隆此仓库并在 Cloudflare Pages 中部署 | Clone this repository and deploy in Cloudflare Pages

在 Worker.dev 部署 | Deploy on Worker.dev

  1. 这里复制 _worker.js 代码 | Copy _worker.js code from here

  2. 或者点击下方按钮一键部署 | Or click the button below to deploy directly:

    Deploy to Cloudflare Workers

⚙️ 配置说明 | Configuration Guide

环境变量配置 | Environment Variables

变量名 (Variable)是否必需 (Required)示例 (Example)说明 (Description)
UUID否 (No)单个 (Single): 12345678-1234-1234-1234-123456789012<br>多个 (Multiple): uuid1,uuid2,uuid3用户识别码 / User identification
PROXYIP否 (No)1.1.1.1 或 (or) example.com<br>多个 (Multiple): 1.1.1.1:9443,2.2.2.2:8443自定义代理IP和端口 / Custom proxy IP and port
SOCKS5否 (No)user:pass@host:port<br>多个 (Multiple): user1:pass1@host1:port1,user2:pass2@host2:port2SOCKS5代理配置 / SOCKS5 proxy configuration
SOCKS5_RELAY否 (No)true 或 (or) false启用SOCKS5流量转发 / Enable SOCKS5 traffic relay

非443端口配置 | Non-443 Port Configuration

  1. 访问 (Visit) https://proxyip.edtunnel.best/
  2. 输入 (Enter) ProxyIP:proxyport 并点击检查 (and click Check)
  3. 当显示 (When showing) Proxy IP: true 时可用 (it's available)
  4. 在 Worker 中配置 (Configure in Worker): PROXYIP=211.230.110.231:50008

注意:带端口的代理IP可能在某些仅支持HTTP的Cloudflare站点上无效。 Note: Proxy IPs with ports may not work on HTTP-only Cloudflare sites.

UUID 配置方法 | UUID Configuration

方法一 | Method 1

wrangler.toml 文件中设置(不推荐在公共仓库中使用) Set in wrangler.toml file (not recommended for public repositories)

[vars]
UUID = "your-uuid-here"

方法二 | Method 2

在 Cloudflare Dashboard 的环境变量中设置(推荐方式) Set in Cloudflare Dashboard environment variables (recommended method)

⚠️ 重要提示:多项配置分隔符 | Important Note: Multiple Configuration Separator

所有多项配置必须使用英文逗号(,)分隔,不能使用中文逗号(,) All multiple configurations MUST use English comma(,) as separator, NOT Chinese comma(,)

✅ 正确示例 | Correct Examples:

# UUID多个配置 | Multiple UUID
UUID=uuid1,uuid2,uuid3

# SOCKS5多个代理 | Multiple SOCKS5 proxies
SOCKS5=192.168.1.1:1080,192.168.1.2:1080

# PROXYIP多个地址 | Multiple PROXYIP
PROXYIP=1.1.1.1:443,2.2.2.2:443

❌ 错误示例 | Wrong Examples:

# 错误:使用中文逗号 | Wrong: Using Chinese comma
UUID=uuid1,uuid2,uuid3

# 错误:使用中文逗号 | Wrong: Using Chinese comma
SOCKS5=192.168.1.1:1080,192.168.1.2:1080

📱 快速使用 | Quick Start

自动配置订阅 | Auto Configuration Subscribe

使用以下链接获取自动配置 | Use the following link for auto configuration:

https://sub.xf.free.hr/auto

查看配置 | View Configuration

🔧 高级配置 | Advanced Configuration

多UUID支持 | Multiple UUID Support

您可以通过以下方式配置多个UUID | You can configure multiple UUIDs in these ways:

  1. 环境变量方式 | Via environment variables:

    UUID=uuid1,uuid2,uuid3
    
  2. 配置文件方式 | Via configuration file:

    [vars]
    UUID = "uuid1,uuid2,uuid3"
    

SOCKS5代理配置 | SOCKS5 Proxy Configuration

支持以下格式 | Supports the following formats:

配置示例 | Configuration Examples:

  1. 单个代理 | Single Proxy:
# 基础格式 | Basic format
SOCKS5=192.168.1.1:1080

# 带认证格式 | With authentication
SOCKS5=user:pass@192.168.1.1:1080
  1. 多个代理(使用英文逗号分隔)| Multiple Proxies (separated by English comma):
# 多个基础代理 | Multiple basic proxies
SOCKS5=192.168.1.1:1080,192.168.1.2:1080,192.168.1.3:1080

# 多个带认证代理 | Multiple proxies with authentication
SOCKS5=user1:pass1@host1:port1,user2:pass2@host2:port2

# 混合格式 | Mixed format
SOCKS5=192.168.1.1:1080,user:pass@192.168.1.2:1080,192.168.1.3:1080

SOCKS5 代理负载均衡 | SOCKS5 Proxy Load Balancing

当配置多个代理时,系统会自动进行负载均衡: When multiple proxies are configured, the system will automatically perform load balancing:

SOCKS5_RELAY 设置 | SOCKS5_RELAY Settings

启用 SOCKS5 全局转发 | Enable SOCKS5 global relay:

SOCKS5_RELAY=true

注意事项 | Notes:

🚨 注意事项 | Notes

🔧 环境变量设置 | Environment Variable Settings

Workers.dev 设置 | Workers.dev Settings

在 Workers 设置页面配置环境变量 | Configure environment variables in Workers settings page workers

Pages.dev 设置 | Pages.dev Settings

在 Pages 设置页面配置环境变量 | Configure environment variables in Pages settings page pages

💬 获取帮助 | Get Help

📝 贡献指南 | Contributing

欢迎提交 Pull Request 来改进项目!请确保: Welcome Pull Requests to improve the project! Please ensure:

  1. 代码符合项目规范 | Code follows project standards
  2. 添加必要的测试 | Add necessary tests
  3. 更新相关文档 | Update relevant documentation
  4. 描述清楚改动原因 | Clearly describe the reasons for changes

📜 许可证 | License

本项目采用 MIT 许可证 - 查看 LICENSE 文件了解详情 This project is licensed under the MIT License - see the LICENSE file for details

Star History

<a href="https://star-history.com/#6Kmfi6HP/EDtunnel&Date"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=6Kmfi6HP/EDtunnel&type=Date&theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=6Kmfi6HP/EDtunnel&type=Date" /> <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=6Kmfi6HP/EDtunnel&type=Date" /> </picture> </a>