mtg-multi
small utilitiesCurrent version: 1.15.0~ynh3
mtg-multi - MTProto proxy for Telegram (multi-user fork)
mtg-multi is a fork of MTG with multi-secret support and per-user stats. It is a highly-opinionated, standalone MTProto proxy for Telegram. It provides a fast, lightweight proxy that helps bypass network restrictions by using domain fronting.
Features
- Multi-user support: Multiple secrets per instance with per-user stats tracking and zero-downtime secret reload (
SIGHUP) - Domain fronting: Auto-generates a secret tied to a real HTTPS domain (e.g.
google.com), making the traffic look like normal HTTPS - Optional WEB proxy mode: Tunnels MTProto inside real HTTPS sessions (
tg://webproxyon port 443) for Telegram Desktop behind Nginx - Stats API: Lightweight HTTP endpoint showing live per-user connection counts, traffic and active client IPs
- Connection throttling: Automatic per-user connection limits to protect the server from overload
- Automatic IP blocklists: Downloads and applies FireHOL-based blocklists to filter malicious traffic
- Anti-replay protection: Prevents replay attacks via built-in caching
- Prometheus metrics: Optional
/metricsendpoint for monitoring - Minimal footprint: Single binary, no runtime dependencies
How it works
Once installed, the proxy runs on the chosen port. Users connect from Telegram using the generated secret. Traffic is tunneled through an HTTPS-looking connection to Telegram's data centers, bypassing deep-packet inspection.
This app is only compatible with these specific architectures: amd64, arm64