This needs docker, docker-compose Installed
git clone -b main https://github.com/ariadata/mtproxy.git && cd mtproxycp .env.example .envecho $(head -c 16 /dev/urandom | xxd -ps)
echo $(openssl rand -hex 16)
| Variable | Default | Description |
|---|---|---|
INTERNAL_PORT |
443 | Internal proxy port |
EXTERNAL_PORT |
443 | Port exposed to the host |
EXTERNAL_HOST |
(auto) | Your server IP or domain. Auto-detected if empty |
ENABLE_TLS |
true | Use fake TLS (recommended) |
TLS_DOMAIN |
www.cloudflare.com | Domain for fake TLS |
WORKERS |
2 | Number of worker processes |
MAX_SPECIAL_CONNECTIONS |
60000 | Max connections |
SECRET |
(auto) | 32-char hex secret(s), comma-separated. Auto-generated if empty |
TAG |
(empty) | 32-char hex tag for Telegram promotion |
docker compose up -dAfter the container starts, run:
docker compose exec mtproxy get_linksOr view stats:
docker compose exec mtproxy getstatsOpen the link in Telegram (e.g. https://t.me/proxy?server=YOUR_IP&port=443&secret=...) or share the output from get_links.
This project is licensed under the MIT License — see the LICENSE file for details.
