Intelligent MTProto Telegram Proxy Installer for Ubuntu Linux servers.
SudoMTProto automatically installs and configures a high-performance MTProto proxy using mtg, creates a systemd service, generates a valid Fake-TLS secret, and provides a direct Telegram connection link.
- Automatic MTProto proxy deployment
- Uses modern
mtgcore - Automatic Fake-TLS secret generation
- Systemd service auto configuration
- Auto-detect public IP
- Interactive installer
- Easy deployment
- Lightweight and fast
- Production-ready base structure
- Ubuntu 20.04+
- Ubuntu 22.04+
- Debian-based Linux servers
- AMD64 / x86_64
Run this command on your server:
bash <(curl -fsSL https://raw.githubusercontent.com/roseshayan/SudoMTProto/main/install.sh)Or using wget:
bash <(wget -qO- https://raw.githubusercontent.com/roseshayan/SudoMTProto/main/install.sh)apt update
apt install -y git python3 curl wgetgit clone https://github.com/roseshayan/SudoMTProto.gitcd SudoMTProtochmod +x installer.py
sudo python3 installer.pyDuring installation you will be asked for:
Default:
443
Default:
cloudflare.com
Examples:
- google.com
- cloudflare.com
- amazon.com
- microsoft.com
The installer prints:
- Server IP
- Port
- Secret
- Fake-TLS domain
- Direct Telegram proxy link
Example:
https://t.me/proxy?server=1.2.3.4&port=443&secret=YOUR_SECRET
Open the generated link inside Telegram.
systemctl status mtgsystemctl restart mtgsystemctl stop mtgjournalctl -u mtg -fsystemctl stop mtg
systemctl disable mtg
rm -f /etc/systemd/system/mtg.service
rm -f /usr/local/bin/mtg
systemctl daemon-reloadActual capacity depends on:
- VPS CPU power
- Network quality
- Bandwidth
- Server location
- ISP filtering
- Latency
Approximate real-world capacity:
| VPS Type | Estimated Concurrent Users |
|---|---|
| 1 GB RAM VPS | 300 - 1200 |
| 2 GB RAM VPS | 2000 - 5000 |
| Dedicated Server | 10000+ |
mtg itself is very lightweight. Network quality is usually the main bottleneck.
Recommended:
- Use port 443
- Use high-quality VPS providers
- Enable firewall
- Disable SSH password login
- Use SSH keys
- Keep system updated
SudoMTProto/
├── installer.py
├── install.sh
├── README.md
└── README_FA.md
Planned features:
- Docker support
- Docker Compose
- ARM support
- IPv6 support
- Web panel
- Auto-update
- Multi-user support
- Metrics & monitoring
- Fail2Ban integration
- System tuning
MIT License