Skip to main content
To run your own Telegram MTProto proxy, install Docker on a Linux VPS, start Telegram’s official telegrammessenger/proxy image with a secret you generate, and open the tg:// link from the container logs in Telegram. Only people who have the link and secret can use it. An MTProto proxy relays Telegram traffic through your server, which helps when Telegram is slow or unreliable on your network. Check that using a proxy is legal where you and your users are.
Want a server for it? Docker VPS hosting is a KVM Ubuntu VPS with full root and a real kernel in Phoenix or Paris, from $11.99/mo.
Keep it private. FlashRDP’s Acceptable Use Policy doesn’t allow open or public proxies. Use this proxy yourself or share it with a small group you know. Don’t post the link publicly, list it in proxy directories or channels, or register it for public promotion. A proxy anyone can find and use counts as an open proxy and can get your server suspended.

Prerequisites

  1. A FlashRDP Linux VPS with Ubuntu 22.04/24.04 or Debian 12. BRONZE is enough for personal use.
  2. An SSH connection as root.

Step 1: Install Docker

Install Docker Engine with Docker’s official convenience script:
You can read get-docker.sh before running it. Docker also documents a manual repository install for production servers.

Step 2: Generate a secret

The proxy needs a 32-character hexadecimal secret (16 random bytes):
Copy the output. Treat it like a password: anyone with the server address and secret can use your proxy.

Step 3: Start the proxy container

Run Telegram’s official image, replacing YOUR_SECRET with the value from Step 2:
Port 443 is the default. To use another port, change the left side (for example -p 8443:443) and use that port in your link.
--restart=always starts the proxy again after a reboot. Telegram’s image fetches Telegram’s server addresses when it starts, so its documentation suggests restarting it about once a day, for example with a daily docker restart mtproto-proxy in cron.
Telegram’s official image hasn’t had a new latest release since 2020. It still works, but if you need newer features such as fake-TLS secrets, look at a maintained alternative such as mtg and follow its own documentation.
The container logs show your links:
Look for lines like these:
If you changed the port, change port=443 in the link to match.

Step 5: Connect in Telegram

  1. Copy the tg://proxy?... link.
  2. Open it on a device with Telegram installed, or paste it into your Saved Messages and tap it.
  3. Tap Connect Proxy. Telegram now routes its messaging traffic through your server.
Share the link only privately with the people you want to use it.

Linux VPS Overview

Connecting via SSH

Acceptable Use Policy

Last modified on October 31, 2026