The proxy can be started without Docker (for advanced users)
Single Starting
git clone -b stable https://github.com/alexbers/mtprotoproxy.git; cd mtprotoproxy
- (optional, recommended) edit config.py, set PORT, USERS and AD_TAG
python3 mtprotoproxy.py
The proxy will run until the ssh-session or terminal-session is closed.
Autostarting on Boot
This instruction is valid on Linux with systemd (most modern OSes including Ubuntu, Debian, CentOS, RHEL, Gentoo, etc). You should have Python3 and git installed
git clone -b stable https://github.com/alexbers/mtprotoproxy.git /opt/mtprotoproxy; cd /opt/mtprotoproxy
- (optional, recommended) edit config.py, set PORT, USERS and AD_TAG
- Create tgproxy user:
useradd --no-create-home -s /usr/sbin/nologin tgproxy
- (optional, recommended) install cryptography Python module
- (optional) install uvloop Python module
- Create file /etc/systemd/system/mtprotoproxy.service with the following content:
- Enable autostarting on boot:
systemctl enable mtprotoproxy
- (optional, start the proxy)
systemctl start mtprotoproxy
- (optional, get a link to share the proxy)
journalctl -u mtprotoproxy | cat