This is an interactive installer script for alexbers/mtprotoproxy.
It helps you easily install, configure, edit, or remove the MTProto proxy server on your system.
📦 Features
- Full interactive installation
- Asks for:
- Number of users
- Proxy port
- TLS mask address
- Auto-restart interval (via cronjob)
- Automatically generates
config.py - Creates a persistent systemd service (
mtproto.service) - Supports editing current config:
- Add users
- Change port or TLS mask address
- Change auto-restart interval
- Clean removal of:
- Proxy files
- Systemd service
- Cronjob
⚙️ Installation
git clone https://github.com/web-elite/mtproto-proxy-installer.git
cd mtproto-proxy-installer
chmod +x mtproto_proxy_installer.sh
sudo ./mtproto_proxy_installer.sh📖 How to Use
After running the script:
sudo ./mtproto_installer.shYou will see an interactive menu:
=== MTProto Proxy Manager ===
1) Install MTProto Proxy
2) Edit Existing Configuration
3) Uninstall Everything
0) ExitEnter how many users you want (e.g. 100 or 200) Enter the proxy port (default: 443) Enter TLS masking address (e.g. www.cloudflare.com) Enter auto-restart interval in minutes (e.g. 10)
The script will: Clone and install the proxy Create config.py with random secrets Set up systemd service Add a cronjob for auto-restarts
Add more users Change port or masking address Change auto-restart interval
Stops and disables systemd service Removes all proxy files Removes auto-restart cronjob
🌟 Show Some Love
If you found this project useful, please consider giving it a ⭐️ star!
📄 License
MIT License