alexbers / mtprotoproxy

Async MTProto proxy for Telegram
MIT License
1.55k stars 343 forks source link

bypass dpi blocking in iran #198

Open hamid-khakzad opened 4 years ago

hamid-khakzad commented 4 years ago

hi dear alex how i can bypass dpi ip blocking in iran? when i run mtproxy and publish in channels afetr some hours my server ip blocked. i saw other mtproxy providers in iran use fake tls and mask host and worked for long time withou server ip filtering. i test tls domain and mask host also,but did nto work for me and i got ip filter again. what i do for bypass dpi blocking in iran?

hamid-khakzad commented 4 years ago

nginx is required for do this?or is optional?

alexbers commented 4 years ago

Here is a few tips to prevent blocking:

Don't share the proxy link in the public sources, they are monitored, checked and blocked Run the proxy in the tls mode like in default config. The classic and secure mode are easier to detect Don't use default secret, it is better to use a random one Pay attention on warnings the proxy prints on launching, they are very important Put REPLAY_CHECK_LEN = 1000000 in the config.py if you have enough ram on the server Run only one instance of the proxy per node, since the replay check cache will be not shared between them Also it is better to use many proxies with the small number of users, because if you have a lot of users, the proxy can be detected by packet statistical patterns.

alexbers commented 4 years ago

nginx is optional

amirsheikhhassan commented 4 years ago

nginx is required for do this?or is optional?

hi You can use Netherlands warez servers (no abuse) and share mtproxy to unlimited users (limited based on your server resources) . To be sure no more blocking enable TLS mode and set to cloudflare.com .