Functional and dockerized MT-Proto proxy
docker build . -t mtproxy
docker run --rm --name mtproxy \
-e PROXY_SECRETS="<your_secret>" \
-p 8443:8443 \
mtproxy
-
PROXY_SECRETS
A secret is a 16-byte in hex mode.
head -c 16 /dev/urandom | xxd -ps
You can pass multiple secrets
-e PROXY_SECRETS="<your_secret1> <your_secret2>"
-
PROXY_HTTP_PORT (optional)
Port used by clients to connect to proxy. By default 8443
Remember to publish the port outside docker
-p 8443:8443
-
PROXY_TAG (optional)
Set receive tag from @MTProxybot on Telegram
-
PUBLIC_IP (optional) Your public IP, by default, is inferred by ipinfo.io
-
NUM_WORKERS (optional)
Number of workers from 1 to 256. By default 1
Due to some ISPs detecting MTProxy by packet sizes, random padding is added to packets if such mode is enabled.
It's only enabled for clients which request it.
Add dd
prefix to secret (cafe...babe
=> ddcafe...babe
) to enable
this mode on client side.
Using the following URI you can connect to your proxy directly
tg://proxy?server=<your_public_ip>&port=8443&secret=<your_secret>