跳到正文

EDtunnel

维护中
6Kmfi6HP/EDtunnel

基于 Cloudflare Workers 和 Pages 的代理工具,支持多种协议和配置选项,实现安全高效的网络隧道。

在 GitHub 查看
星标
3059
Fork
5331
关注
3059
未关闭 Issue
99

该介绍目前仅提供英文版本。

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

  1. Fork the repository
  2. Log in to Cloudflare Dashboard
  3. Create a new Pages project from the forked repository
  4. Configure build settings:
    • Build command: (leave empty)
    • Build output directory: (leave empty)
  5. Deploy your project

Deploy on Workers.dev

  1. Copy the _worker.js code from the repository
  2. Create a new Worker in Cloudflare Dashboard
  3. 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-123456789012
Multiple: uuid1,uuid2,uuid3
User identification
PROXYIP No Single: 1.1.1.1
Multiple: 1.1.1.1:9443,2.2.2.2:8443
Custom proxy IP and port
SOCKS5 No user:pass@host:port
Multiple: 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:

  1. Visit https://proxyip.edtunnel.best/
  2. Enter your ProxyIP:proxyport and click Check
  3. When it shows “Proxy IP: true,” the configuration is valid
  4. Configure in Workers with PROXYIP=211.230.110.231:50008

UUID Configuration Methods

Method 1: wrangler.toml File

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

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.

按共同分类和标签排序的同类开源项目。

全部网络项目 →