该介绍目前仅提供英文版本。
A proxy tool based on Cloudflare Workers and Pages, supporting multiple protocols and configuration options.
Overview
EDtunnel is a powerful proxy solution that leverages Cloudflare’s infrastructure to provide secure and efficient tunneling capabilities. Built on Cloudflare Workers and Pages, it offers flexibility and reliability for various networking needs.
Key Features
- Multiple Deployment Options: Deploy on Cloudflare Workers or Pages
- Protocol Support: Compatible with various proxy protocols including VLESS
- UUID Management: Support for multiple UUIDs with easy configuration
- Custom Proxy: Configure custom proxy IP addresses and ports
- SOCKS5 Integration: Full SOCKS5 proxy support with authentication
- Load Balancing: Built-in proxy load balancing capabilities
- Auto Configuration: Subscription links for easy client setup
Quick Start
Deployment Options
Deploy on Cloudflare Pages
- Fork the repository
- Log in to Cloudflare Dashboard
- Create a new Pages project from the forked repository
- Configure build settings:
- Build command: (leave empty)
- Build output directory: (leave empty)
- Deploy your project
Deploy on Workers.dev
- Copy the
_worker.jscode from the repository - Create a new Worker in Cloudflare Dashboard
- Paste the code and deploy
Alternatively, click the Deploy button in the repository for one-click deployment.
Configuration Guide
Environment Variables
| Variable | Required | Example | Description |
|---|---|---|---|
| UUID | No | Single: 12345678-1234-1234-1234-123456789012Multiple: uuid1,uuid2,uuid3 |
User identification |
| PROXYIP | No | Single: 1.1.1.1Multiple: 1.1.1.1:9443,2.2.2.2:8443 |
Custom proxy IP and port |
| SOCKS5 | No | user:pass@host:portMultiple: user1:pass1@host1:port1,user2:pass2@host2:port2 |
SOCKS5 proxy configuration |
| SOCKS5_RELAY | No | true or false |
Enable SOCKS5 traffic relay |
Non-443 Port Configuration
EDtunnel supports non-standard ports through custom proxy IP configuration:
- Visit
https://proxyip.edtunnel.best/ - Enter your
ProxyIP:proxyportand click Check - When it shows “Proxy IP: true,” the configuration is valid
- Configure in Workers with
PROXYIP=211.230.110.231:50008
UUID Configuration Methods
Method 1: wrangler.toml File
[vars]
UUID = "your-uuid-here"
Method 2: Cloudflare Dashboard (Recommended)
Set up environment variables in your Cloudflare Dashboard settings for Workers or Pages.
Advanced Configuration
Multiple UUID Support
Configure multiple UUIDs by separating them with commas:
UUID=uuid1,uuid2,uuid3
SOCKS5 Proxy Configuration
EDtunnel supports various SOCKS5 configurations:
Basic Format
SOCKS5=192.168.1.1:1080
With Authentication
SOCKS5=user:[email protected]:1080
Multiple Proxies
SOCKS5=192.168.1.1:1080,192.168.1.2:1080,192.168.1.3:1080
Mixed Format
SOCKS5=192.168.1.1:1080,user:[email protected]:1080,192.168.1.3:1080
SOCKS5 Proxy Load Balancing
When multiple SOCKS5 proxies are configured, EDtunnel automatically provides:
- Random proxy selection
- Automatic failover
- Support for mixed authentication methods
Global SOCKS5 Relay
Enable global SOCKS5 traffic forwarding:
SOCKS5_RELAY=true
Using EDtunnel
Auto Configuration Subscribe
For easy client setup, use the automatic configuration subscription:
https://sub.xf.free.hr/auto
Viewing Configuration
- Visit your domain:
https://your-domain.pages.dev - Use specific UUID:
/sub/[uuid] - View full configuration: Access the domain root path
- Get subscription content: Visit
/sub/[uuid]
Important Notes
- Always use English commas (,) to separate multiple configurations
- Proxy IPs with non-standard ports may not work on HTTP-only Cloudflare sites
- Regularly update to get the latest features and security fixes
- Set sensitive information via environment variables rather than in code
Requirements
- Cloudflare account
- Domain registered with Cloudflare (for best results)
- Basic understanding of proxy configurations
License
This project is licensed under the MIT License - see the LICENSE file for details.