A production-ready one-command installer for MTProto Telegram proxy.
This tool automates the complete setup of an MTProto proxy server. It handles all dependencies, generates secure configuration, and deploys a systemd service for automatic startup.
- Ubuntu 18.04+ or Debian 9+
- Root access
- Internet connection
git clone https://github.com/ndugram/MTProto
cd MTProto
sudo bash setup.sh========================================
MTProto Proxy Installer
========================================
[+] Starting installation process...
[+] Checking system...
[+] OS detected: Ubuntu 22.04 LTS
[+] Checking dependencies...
[+] Dependencies check completed
[+] Detecting network...
[+] Public IP detected: 203.0.113.42
[+] Installing proxy binary...
[+] MTProto proxy installed successfully
[+] Generating configuration...
[+] Configuration generated
[+] Creating system service...
[+] Systemd service created and enabled
[+] Configuring firewall...
[+] Firewall configuration completed
[+] Starting service...
[+] Service started successfully
[+] Installation completed!
========================================
Proxy Connection Link
========================================
tg://proxy?server=203.0.113.42&port=23456&secret=a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6
Service status: active
Click the generated link to connect via Telegram:
tg://proxy?server=YOUR_IP&port=YOUR_PORT&secret=YOUR_SECRET
Or manually configure in Telegram:
- Server IP: The public IP shown after installation
- Port: The port shown after installation
- Secret: The secret shown after installation
# Check service status
sudo systemctl status mtproto-proxy
# Restart service
sudo systemctl restart mtproto-proxy
# Stop service
sudo systemctl stop mtproto-proxy
# View logs
sudo journalctl -u mtproto-proxy -f- The secret is cryptographically random
- Port is automatically selected to avoid conflicts
- Service auto-restarts on failure
- Firewall rules are configured automatically
For issues or questions, please open a GitHub issue.