Cloudflare-vless-trojan is a proxy script that leverages Cloudflare Workers and Pages to tunnel traffic through VLESS and Trojan protocols.
The tool addresses the need to route network traffic through Cloudflare's infrastructure to bypass restrictions and censorship. It works by deploying proxy scripts on Cloudflare Workers or Pages, which then handle VLESS-ws(tls) and Trojan-ws(tls) connections. For local proxy use, it provides a Socks5 and HTTP proxy script that can run on local platforms like soft routers, supporting three distinct proxy modes: ECH-TLS, standard TLS, and non-TLS configurations to adapt to different blocking scenarios.
Developers should choose this tool if they need a free proxy solution deployable on Cloudflare's edge network without purchasing additional infrastructure. It suits projects requiring flexible protocol support and the ability to switch between encryption modes. The tool accepts configuration through environment variables for the Cloudflare domain, optional authentication token, local client port, preferred IP or domain selection, proxy IP specification, DNS over HTTPS settings, ECH toggle, and domestic-international traffic splitting. The README distinguishes this approach by emphasizing it as a comprehensive Cloudflare Socks5/HTTP proxy rather than narrowly focusing on ECH or Workers alone, positioning it alongside other Cloudflare-based protocols like VLESS.
The project shows active maintenance with documentation covering deployment methods, configuration tables for all three proxy modes, port recommendations for Cloudflare's systems, and troubleshooting guidance. A video tutorial demonstrates the setup process and explains the trade-offs of different proxy modes. The tool includes Docker image support for simplified deployment on various platforms.