Skip to content

testica/MTProxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MTProxy

Functional and dockerized MT-Proto proxy

Docker

Build

docker build . -t mtproxy

Run

docker run --rm --name mtproxy \
    -e PROXY_SECRETS="<your_secret>" \
    -p 8443:8443 \
    mtproxy

Params

  • 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

Random padding

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.

Connect to proxy

Using the following URI you can connect to your proxy directly

tg://proxy?server=<your_public_ip>&port=8443&secret=<your_secret>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.4%
  • Other 0.6%