TelegramMessenger / MTProxy

5k stars 829 forks source link

cannot connect from Iran #319

Closed sahareh closed 5 years ago

sahareh commented 5 years ago

I recently used this proxy on Hetzner data center (Germany) but cannot connect from Iran. I know this is not your business but just for knowledge sharing I explain the situation: when I listen on a port by nc command and then communicate with it from iran by telnet command just first message is sent and other messages never sent while connection is still open without closing from server or client. can anyone help me or make this proxy works on such situations?

Momenimahdi2 commented 5 years ago

Manam az hamin data center gereftam vali vasl shod vali bad az 20 min filter shod chikar konam ke filter nashe?

mostafaznv commented 5 years ago

I have this problem too. mtproto configuration is ok but I can't connect to server from iran

abbasnaqdi commented 5 years ago

I also have this problem

ParsDev commented 5 years ago

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.

update it please the ip server is filtered after 10 minutes in iran

HirbodBehnam commented 5 years ago

Sometimes to check if your server is blocked, you can establish an SSH connection. If it gets stuck on expecting ssh key or something your server is blocked

ParsDev commented 5 years ago

We need a new way to pass filtering in iran example : change secret format

HirbodBehnam commented 5 years ago

They are working on a fake TLS connection. Hope that one work out.

ParsDev commented 5 years ago

as I said, sometimes, IP has been banned. and Random Padding does NOT work at all

most of time you can find out by ping the IP if it works (wait till ping finish) then look for your configure problem

new format of filtering in Iran: only the proxy is inaccessible and we can be connected to the proxy server via the ssh :)

HirbodBehnam commented 5 years ago

Oh I haven't encountered this one.

sahareh commented 5 years ago

It seems there is a complex IP ban algorithms from Iran and you have to change IP address and this is not this repository's business.

FreedomPrevails commented 5 years ago

If you use random padding, it will not be detected by DPI systems. I have a private one shared by friends and family working for months. But if it detected, your only solution is to change the IP address and wait for old one to be unblocked.

Momenimahdi2 commented 4 years ago

i enable random padding but my vps ip was banned

‫‪FreedomPrevails‬‏ ‪notifications@github.com‬‏ در تاریخ سه‌شنبه ۳۰ ژوئیهٔ ۲۰۱۹ ساعت ۴:۰۵ نوشت:‬

If you use random padding, it will not be detected by DPI systems. I have a private one shared by friends and family working for months. But if it detected, your only solution is to change the IP address and wait for old one to be unblocked.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/TelegramMessenger/MTProxy/issues/319?email_source=notifications&email_token=AKYVLHI4RIVKPUK4V4FPN3DQB55DVA5CNFSM4H6ZV4A2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3CJXOA#issuecomment-516201400, or mute the thread https://github.com/notifications/unsubscribe-auth/AKYVLHO4Z44HR6KI6Z72WGTQB55DVANCNFSM4H6ZV4AQ .