3x-ui
Xray panel with limits
VPN / ProxyFree
Proxy for Telegram
The script is free · VPS from $2.79 per month · installs in about 45 seconds
root@vps:~# command -v docker >/dev/null || curl -fsSL https://get.docker.com | sh; S=$(docker run --rm nineseconds/mtg:2 generate-secret --hex google.com) && printf 'secret = "%s"\nbind-to = "0.0.0.0:3128"\n' "$S" > /etc/mtg.toml && docker run -d -v /etc/mtg.toml:/config.toml -p 443:3128 --name mtg-proxy --restart=unless-stopped nineseconds/mtg:2
✓ MTProto Proxy 2.2.8 installed · about 45 seconds
root@vps:~#
MTProto Proxy is a proxy server for Telegram. A user opens a tg://proxy link and Telegram connects through your server.
It uses mtg, a lightweight Go proxy designed for 10–20 thousand concurrent connections. It supports FakeTLS mode with a domain of your choice.
mtg has no user accounting: one link for everyone. mtg v2 does not support the sponsored tag for promoting a channel.
For MTProto Proxy: at least 1 vCPU, 2 GB RAM and 10 GB NVMe.
Three steps in the bot or one command over SSH; installation takes about 45 seconds.
Open @ExpressHost_bot and pay for a VPS. The server will be ready in about 60 seconds.
At the “Add-ons” step pick the script from the library, or run it later: Server settings → Scripts.
docker exec mtg-proxy /mtg access /config.toml
Connect to the server as root and run the command. Supported systems: Ubuntu 22.04, Ubuntu 24.04, Debian 12.
command -v docker >/dev/null || curl -fsSL https://get.docker.com | sh; S=$(docker run --rm nineseconds/mtg:2 generate-secret --hex google.com) && printf 'secret = "%s"\nbind-to = "0.0.0.0:3128"\n' "$S" > /etc/mtg.toml && docker run -d -v /etc/mtg.toml:/config.toml -p 443:3128 --name mtg-proxy --restart=unless-stopped nineseconds/mtg:2| Port | Protocol | Purpose |
|---|---|---|
| 443 | tcp | Telegram client connections |
docker exec mtg-proxy /mtg access /config.toml-p 443:3128 to another portDidn’t find an answer? Message @ExpressHost_SupportBot.
The mtg author designs it for 10–20 thousand concurrent connections. In practice the limit is the server's bandwidth.
Generate a new secret with the desired domain, write it to /etc/mtg.toml and run docker restart mtg-proxy. Old links will stop working.
In /etc/mtg.toml: the secret and the address the proxy listens on.
MTProto Proxy installs at checkout.
Netherlands, Amsterdam
$2.89/mo
$0.10 for 24 hours · $0.72 for 7 days
MTProto Proxy is installed manually: the install command is further down this page.
Germany, Frankfurt
$3.14/mo
$0.11 for 24 hours · $0.79 for 7 days
MTProto Proxy is installed manually: the install command is further down this page.
Poland, Warsaw
$2.79/mo
$0.10 for 24 hours · $0.70 for 7 days
MTProto Proxy is installed manually: the install command is further down this page.
Estonia, Tallinn
$3.10/mo
$0.11 for 24 hours · $0.78 for 7 days
MTProto Proxy is installed manually: the install command is further down this page.