DEV Community

Set proxy
Set proxy

Posted on • Originally published at telegra.ph

How MTProto Fake-TLS Makes Your Telegram Undetectable

How MTProto Fake-TLS Makes Your Telegram Undetectable

In regions with strict internet censorship, Telegram’s MTProto protocol has evolved beyond simple encryption. One of its most effective cloaking mechanisms is Fake-TLS (Transport Layer Security). This technique makes Telegram traffic appear indistinguishable from standard HTTPS web traffic, bypassing deep packet inspection (DPI) systems that would otherwise block or throttle it.

The Principle: Mimicking Legitimate Web Traffic

Normal MTProto proxies send raw encrypted data over a custom port. Censors quickly learn to identify Telegram’s protocol fingerprint by analyzing packet headers, sizes, and handshake patterns. Fake-TLS solves this by wrapping MTProto traffic inside a valid TLS handshake—the exact same cryptographic protocol used by every HTTPS website.

When a client connects to an MTProto proxy with Fake-TLS enabled, the proxy first performs a legitimate TLS handshake, presenting a real SSL/TLS certificate (often from a trusted certificate authority). To a DPI system, this looks identical to a user visiting an ordinary HTTPS website—no unusual binary signatures, no odd ports. After the handshake, the proxy silently switches to Telegram’s MTProto encryption channel, utterly transparent to the observer.

How It Bypasses Censorship

  1. Port Agnosticism: Fake-TLS works over standard HTTPS ports (443, 8443) which are rarely blocked completely.
  2. Signature Obfuscation: Packet lengths, timing, and cipher suites are tailored to match popular browsers like Chrome or Firefox.
  3. Certificate Validation: Many DPI systems only block connections with self-signed or suspicious certificates. Fake-TLS uses valid upstream certificates, making whitelist-based blocking ineffective.
  4. Protocol Ambiguity: The censors cannot distinguish between a Telegram user and someone fetching a web page, forcing them to either block all HTTPS (impossible) or allow Telegram through.

Practical Deployment: Frankfurt, Germany

MTProto proxies with Fake-TLS are particularly effective when hosted in jurisdictions with robust internet infrastructure. Frankfurt, Germany, a major European internet exchange hub, offers low-latency, high-bandwidth connections with excellent peering to the Middle East, Asia, and Africa—regions where Telegram is frequently targeted. Proxies in Frankfurt benefit from German data protection laws and are less likely to face government blocking, while the Fake-TLS mask ensures the traffic is invisible even if monitored domestically.

Limitations

Fake-TLS is not immune to advanced attacks. Censors can:

  • Perform active probing: attempting to force the proxy to reveal its true nature.
  • Analyze traffic patterns: long-lived, high-volume connections to a single IP may still raise suspicion.
  • Use Bayesian analysis on packet timing histograms.

However, for most users, Fake-TLS raises the cost of blocking beyond what censors are willing to invest.

Getting Started

To use MTProto Fake-TLS, you need a compatible proxy server configured with the tls flag. Many public proxy lists now include servers with this feature enabled.

Get free proxies at t.me/SetProxy.

Top comments (0)