examplecode/mproxy
Freec 语言实现的一个最小的http代理,代理支持设置加密隧道,可以躲避防火墙的监测
About examplecode/mproxy
mproxy is a minimal HTTP proxy server written in C, with core code under 500 lines and no third-party dependencies (Unix-like only). It supports HTTP proxy, HTTPS tunneling, and a simple encrypted tunnel mode. The encrypted tunnel allows client-server pairing to bypass firewalls (e.g., GFW). It operates in two modes: normal proxy for basic forwarding, and an encrypted tunnel mode where data is encrypted between client and server. Compilation is straightforward with gcc. Usage examples include running as a daemon and configuring browser proxy settings (e.g., using SwitchSharp). The project is a prototype, tested successfully with major sites like Facebook, Twitter, YouTube, and Google, but compatibility is not guaranteed for all websites.
Key Features
Pros & Cons
- Extremely lightweight and simple codebase (under 500 lines)
- No external dependencies, easy to compile on Unix-like systems
- Encrypted tunnel mode provides basic obfuscation for bypassing firewalls
- Tested with popular blocked sites (Facebook, Twitter, YouTube, Google)
- Prototype quality – not fully stable or compatible with all websites
- Only works on Unix-like systems (no native Windows support, but can be shared via network)
- Limited documentation and no active releases or package management
- No caching, authentication, or advanced proxy features