2025-12-30 21:29:04 +03:00
# Telemt - MTProxy on Rust + Tokio
2026-03-03 04:06:26 +03:00
***Löst Probleme, bevor andere überhaupt wissen, dass sie existieren*** / * * *It solves problems before others even realize they exist***
2026-04-07 17:07:18 +03:00
> [!NOTE]
>
2026-04-08 11:35:37 +03:00
> Fixed TLS ClientHello is now available:
> - in **Telegram Desktop** starting from version **6.7.2**
> - in **Telegram Android Client** starting from version **12.6.4**
> - **release for iOS is "work in progress"**
2026-04-08 11:50:50 +03:00
>
2026-04-08 11:35:37 +03:00
> To work with EE-MTProxy, please update your client!
2026-04-03 19:13:57 +03:00
2026-04-07 17:07:18 +03:00
<p align="center">
<a href="https://t.me/telemtrs">
2026-04-08 15:12:58 +03:00
<img src="/docs/assets/telegram_button.svg" width="200"/>
2026-04-07 17:07:18 +03:00
</a>
</p>
2026-04-01 11:52:13 +03:00
2026-03-05 12:40:04 +03:00
**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 such as:
2026-04-07 23:06:11 +03:00
- [ME Pool + Reader/Writer + Registry + Refill + Adaptive Floor + Trio-State + Generation Lifecycle ](https://github.com/telemt/telemt/blob/main/docs/Architecture/Model/MODEL.en.md );
- [Full-covered API w/ management ](https://github.com/telemt/telemt/blob/main/docs/Architecture/API/API.md );
2026-04-07 17:07:18 +03:00
- Anti-Replay on Sliding Window;
- Prometheus-format Metrics;
- TLS-Fronting and TCP-Splicing for masking from "prying" eyes.

2025-12-30 21:29:04 +03:00
2026-04-09 01:12:27 +03:00
## Features
2026-04-08 15:18:38 +03:00
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 ](docs/FAQ.en.md#recognizability-for-dpi-and-crawler )
2026-02-18 21:31:58 +03:00
2026-04-08 15:12:58 +03:00
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
2026-01-20 11:09:24 +03:00
2025-12-30 21:29:04 +03:00
- Full support for all official MTProto proxy modes:
2026-04-07 17:07:18 +03:00
- 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.
2025-12-30 21:29:04 +03:00
2026-04-08 15:12:58 +03:00
## One-command installation (update on re-ru)
```bash
curl -fsSL https://raw.githubusercontent.com/telemt/telemt/main/install.sh | sh
```
See more in the [Quick Start Guide ](docs/Quick_start/QUICK_START_GUIDE.en.md ).
2026-03-07 00:16:03 +03:00
# GOTO
2026-03-08 06:22:20 +03:00
- [FAQ ](#faq )
2026-04-07 17:07:18 +03:00
- [Architecture ](docs/Architecture )
- [Quick Start Guide ](#quick-start-guide )
- [Config parameters ](docs/Config_params )
2026-03-08 06:22:20 +03:00
- [Build ](#build )
- [Why Rust? ](#why-rust )
2026-03-04 14:23:48 +03:00
2026-03-07 00:16:03 +03:00
## Quick Start Guide
2026-04-07 17:07:18 +03:00
- [Quick Start Guide RU ](docs/Quick_start/QUICK_START_GUIDE.ru.md )
- [Quick Start Guide EN ](docs/Quick_start/QUICK_START_GUIDE.en.md )
2026-03-04 14:23:48 +03:00
2026-03-07 00:16:03 +03:00
## FAQ
- [FAQ RU ](docs/FAQ.ru.md )
- [FAQ EN ](docs/FAQ.en.md )
2026-01-07 18:54:44 +03:00
2026-01-07 19:06:28 +03:00
## Build
```bash
# Cloning repo
git clone https://github.com/telemt/telemt
# Changing Directory to telemt
cd telemt
# Starting Release Build
cargo build --release
2026-03-11 20:49:51 +04:00
2026-04-09 01:12:27 +03:00
# Current release profile uses lto = "fat" for maximum optimization (see Cargo.toml).
# On low-RAM systems (~1 GB) you can override it to "thin".
2026-03-11 20:49:51 +04:00
2026-01-07 19:06:28 +03:00
# Move to /bin
mv ./target/release/telemt /bin
# Make executable
chmod +x /bin/telemt
# Lets go!
telemt config.toml
```
2026-03-11 20:49:51 +04:00
### OpenBSD
2026-04-07 17:07:18 +03:00
- Build and service setup guide: [OpenBSD Guide (EN) ](docs/Quick_start/OPENBSD_QUICK_START_GUIDE.en.md )
2026-03-11 20:49:51 +04:00
- Example rc.d script: [contrib/openbsd/telemt.rcd ](contrib/openbsd/telemt.rcd )
- Status: OpenBSD sandbox hardening with `pledge(2)` and `unveil(2)` is not implemented yet.
2025-12-30 22:18:22 +03:00
## Why Rust?
- Long-running reliability and idempotent behavior
2026-02-14 01:44:10 +03:00
- Rust's deterministic resource management - RAII
2025-12-30 22:18:22 +03:00
- No garbage collector
- Memory safety and reduced attack surface
- Tokio's asynchronous architecture