Should You Self-Host Your Own MTProto Proxy?
A pragmatic guide to running your own Telegram proxy server — pros, cons and setup.
Why self-host?
Self-hosting gives you full control: your IP, your secret, your bandwidth, your uptime. Reasons to consider it: (1) you have a strong privacy threat model and do not want to trust any third party including TGFast; (2) you have a small audience (family, team) that you want a private proxy for; (3) you want to learn how MTProto works.
Why not self-host
Self-hosting is more work than it sounds. You need a VPS in an unrestricted country ($3-5/month minimum), basic Linux skills, and the willingness to monitor and rotate IPs when your single server gets blocked. TGFast does all of this for you for free with multiple proxies and 99.9% uptime. For most users, self-hosting is not worth it.
Get a free TGFast proxy
Browse the live country grid on the home page and tap any card to connect Telegram in one second — no signup, no logs.
Open the fleetRecommended software
The most popular open-source MTProto proxy implementations are mtg (Go-based, fast, supports "ee" obfuscation) and mtprotopy (Python, easy to read). For production use we recommend mtg. Avoid the official Telegram-published binary — it is unmaintained and lacks modern features.
Setup with mtg in 5 minutes
Get a VPS in Germany, Netherlands or Singapore. Install Docker. Run:
SECRET=$(docker run --rm nineseconds/mtg generate-secret hex google.com)
docker run -d --name=mtg --restart=always -p 443:3128 nineseconds/mtg simple-run -t $SECRET 0.0.0.0:3128
This generates an "ee" secret with fake-TLS to google.com and starts a proxy on port 443. Connect with the printed tg:// link.Stay updated
Join @FastTGProxyMT for instant alerts when servers move or new proxies launch.
Join Telegram ChannelIP rotation
A single self-hosted IP gets blocked in heavily censored countries within days to weeks. To stay alive, you need either: (a) a pool of IPs and a script that rotates the proxy across them; (b) a CDN front that masks the real IP. Both require more work. TGFast does this rotation for you across our multiple proxies.
Bandwidth and capacity
A typical user generates 50-500 KB/s of Telegram traffic during active use, near zero idle. A 1 vCPU / 1 GB RAM VPS with 1 TB monthly bandwidth comfortably handles 50 active users. For larger scale, increase bandwidth and use mtg's built-in rate limiting.
Privacy promise
If you self-host for privacy reasons, remember that the VPS provider can still see your traffic patterns. Choose a VPS provider with strong privacy commitments (e.g. Njalla, BuyVM, FlokiNET). Pay with Monero or pre-paid cards if anonymity is critical.