Tiny Zig Proxy Masks Telegram Traffic as HTTPS to Evade Censors 🔗
v1.13.0 adds Hysteria2 egress support and fixes live-server bugs undetected by CI
The sleep3r/mtproto.zig project delivers a dependency-free MTProto proxy written in Zig that disguises Telegram traffic as ordinary TLS 1.
3 HTTPS, allowing users in censored regions to maintain access without installing additional software. At just 177 KB and under 1 MB RAM, it runs on minimal VPS instances and requires only a single command to deploy. The proxy generates a shareable link that users tap once in Telegram to establish a connection—no client-side configuration, no sign-ups, and no logging of secrets or metadata.
Recent activity centers on the v1.13.0 release, which integrates Hysteria2 as an egress option (hysteria2:// or hy2:// schemes), enabling UDP-based tunneling for improved performance where supported. More critically, the update patches five bugs uncovered during live-server testing that CI pipelines failed to catch, including a critical flaw where running setup egress without prior setup tunnel left the proxy accepting connections but relaying no data—while falsely reporting success. The release also strengthens error handling for invalid URI parameters like unsupported obfuscation or port hopping, ensuring clear feedback instead of silent degradation.
Built for simplicity and stealth, the project avoids the overhead of traditional VPNs by focusing solely on Telegram traffic and mimicking benign HTTPS patterns to bypass deep packet inspection. Its MIT-licensed, zero-dependency design appeals to developers seeking lightweight, self-hosted anti-censorship tools.
The catch: While effective for Telegram, the proxy’s narrow scope limits reuse for other protocols, and its reliance on TCP desync and TLS mimicry may face evolving DPI countermeasures not yet tested at scale.
Why this leads today It offers a practical, self-hosted Telegram proxy in Zig that evades censorship by blending into HTTPS traffic, enabling open communication in restrictive environments without reliance on third parties.
- Activists accessing Telegram in regions with state-level blocks
- Families sharing a simple link to restore cross-border messaging
- Developers deploying lightweight anti-censorship tools on cheap VPS instances
Source: sleep3r/mtproto.zig — based on the README and release notes.