MTProxy for Telegram on Rust + Tokio
Go to file
Alexey a0c7a9e62c
Update CODE_OF_CONDUCT.md
2026-04-09 23:17:06 +03:00
.cargo security: harden handshake/masking flows and add adversarial regressions 2026-03-16 20:04:41 +04:00
.github Rename test.yml to check.yml 2026-04-06 11:19:35 +03:00
benches Update crypto_bench.rs 2026-03-21 15:48:28 +03:00
contrib systemd contrib, add sysuser & tmpfiles configs, fix service 2026-03-12 12:47:03 +05:00
docs Merge branch 'main' into main 2026-04-09 19:21:28 +03:00
src Round-bounded Retries + Bounded Retry-Round Constant 2026-04-07 19:19:40 +03:00
tools Dashboards: add grafana dashboard by user 2026-04-09 15:55:35 +03:00
.dockerignore Add Docker build context ignore file 2026-03-18 12:36:48 +03:00
.gitignore feat: enhance quota user lock management and testing 2026-03-18 23:55:08 +04:00
AGENTS.md Refactor and enhance security in proxy and handshake modules 2026-03-18 01:40:38 +04:00
CODE_OF_CONDUCT.md Update CODE_OF_CONDUCT.md 2026-04-09 23:17:06 +03:00
CONTRIBUTING.md Update CONTRIBUTING.md 2026-03-29 01:51:51 +03:00
Cargo.lock Bump 2026-04-07 19:28:05 +03:00
Cargo.toml Bump 2026-04-07 19:28:05 +03:00
Dockerfile Update Dockerfile 2026-03-24 22:36:20 +03:00
IMPLEMENTATION_PLAN.md Implementation plan + Phase 1 finished 2026-04-02 20:08:47 +04:00
LICENSE Update LICENSE 2026-04-06 13:21:16 +03:00
LICENSING.md Update LICENSING.md 2026-03-14 15:59:21 +03:00
README.md Merge branch 'main' into main 2026-04-09 21:26:40 +03:00
README.ru.md Update README.ru.md 2026-04-09 21:53:08 +03:00
ROADMAP.md Update ROADMAP.md 2026-02-18 19:04:39 +03:00
config.toml Update metrics configuration to support custom listen address 2026-03-17 12:58:40 +05:00
docker-compose.yml Update docker-compose.yml 2026-04-09 12:55:38 +03:00
install.sh Update install.sh - Add interactive domain prompt, EN/RU support, and script optimizations 2026-04-07 21:43:22 +03:00

README.md

Telemt - MTProxy on Rust + Tokio

Latest Release Stars Forks Telegram

Löst Probleme, bevor andere überhaupt wissen, dass sie existieren / It solves problems before others even realize they exist

[!NOTE]

Fixed TLS ClientHello is now available in official clients for Desktop / Android / iOS

To work with EE-MTProxy, please update your client!

Telemt is a fast, secure, and feature-rich server written in Rust: it fully implements the official Telegram proxy algo and adds many production-ready improvements

One-command Install and Update

curl -fsSL https://raw.githubusercontent.com/telemt/telemt/main/install.sh | sh

Our implementation of TLS-fronting is one of the most deeply debugged, focused, advanced and almost "behaviorally consistent to real": we are confident we have it right - see evidence on our validation and traces

Our Middle-End Pool is fastest by design in standard scenarios, compared to other implementations of connecting to the Middle-End Proxy: non dramatically, but usual

  • Full support for all official MTProto proxy modes:
    • Classic;
    • Secure - with dd prefix;
    • Fake TLS - with ee prefix + SNI fronting;
  • Replay attack protection;
  • Optional traffic masking: forward unrecognized connections to a real web server, e.g. GitHub 🤪;
  • Configurable keepalives + timeouts + IPv6 and "Fast Mode";
  • Graceful shutdown on Ctrl+C;
  • Extensive logging via trace and debug with RUST_LOG method.

FAQ

Learn more about Telemt

Build

# Cloning repo
git clone https://github.com/telemt/telemt 
# Changing Directory to telemt
cd telemt
# Starting Release Build
cargo build --release

# Current release profile uses lto = "fat" for maximum optimization (see Cargo.toml).
# On low-RAM systems (~1 GB) you can override it to "thin".

# Move to /bin
mv ./target/release/telemt /bin
# Make executable
chmod +x /bin/telemt
# Lets go!
telemt config.toml

Why Rust?

  • Long-running reliability and idempotent behavior
  • Rust's deterministic resource management - RAII
  • No garbage collector
  • Memory safety and reduced attack surface
  • Tokio's asynchronous architecture

telemt_scheme