Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fake tls #3

Open
ZarinNegah opened this issue Oct 8, 2019 · 27 comments
Open

fake tls #3

ZarinNegah opened this issue Oct 8, 2019 · 27 comments

Comments

@ZarinNegah
Copy link

hi
good time
please add fake-tls to your nodejs script

https://github.com/HirbodBehnam/MTProtoProxyInstaller
and
https://github.com/seriyps/mtproto_proxy

Also like the above scripts , is it possible to build an automatic installer and config port and secret or secrets and tag?

@MTProto
Copy link
Owner

MTProto commented Oct 11, 2019

Hi, the support was added. Some APIs have changed. I will try to add an automatic installer in future in other repositories. But currently this repository is aimed at only creating a module. This module is for programmers only.

@ZarinNegah
Copy link
Author

Hello
Thanks for the update
I'm waiting for another repository for automatic installation

@MTProto
Copy link
Owner

MTProto commented Oct 12, 2019

I have added a fast set-up part. Could you please test it and tell me your opinion?

@ZarinNegah
Copy link
Author

Hello
Yes,thanks you
Installed and enabled
But the installation needs to be more automated
And also select more and multi secret
You can use the example below to build more
https://git.io/fjo3u

@MTProto
Copy link
Owner

MTProto commented Oct 12, 2019

It supports multi secret. Just separate secrets with space.

@MTProto
Copy link
Owner

MTProto commented Oct 12, 2019

It does not need root access nor it requires to install any package. May be setting firewall requires root password.

@ZarinNegah
Copy link
Author

Thankful
For you too, the number of connections increases, ping increases

@MTProto
Copy link
Owner

MTProto commented Oct 12, 2019

I have not tested it under severe conditions. Currently it uses inter-process communication to create reports of each process. num_cpus should always be less than or equal to your cpu cores. Please tell me your experience with this proxy. Also remember that you can access the report through web. Full report is enabled by default and you can access it by log1.txt in the current directory.

@ZarinNegah
Copy link
Author

After a few minutes it will be disconnected and you will need to resubmit the following command to activate it
bash ./fastsetup.sh

@ZarinNegah
Copy link
Author

ping increases

@MTProto
Copy link
Owner

MTProto commented Oct 12, 2019

After it terminated, just check the log file by typing "tail log.txt".

@MTProto
Copy link
Owner

MTProto commented Oct 14, 2019

عزیز اگر ایرادی داشت بهم بگو اصلاح کنم. چون برای من مشکلی پیش نمیاد. فقط یه مساله. اگر سرعت کامپیوترت خیلی کم باشه، سیستم عامل به برنامه سیگنال
SIGXCPU
میفرسته که البته این سیگنال نود رو میبنده چون من هندلش نکردم. فکر کنم ایراد از اون باشه که برنامه بسته میشه. این ایراد را خیلی راحت میتونم برطرف کنم. اگر بتونی فایل لاگ رو ببینی و بهم بگی چه خبره توش میتونم راحتتر عیب احتمالی کد رو تشخیص بدم.
در مورد زیاد شدن پینگ هم برای من مشکلی نداره. باید روش کار کنم ببینم دلیل چیه که برای شما پینگ زیاد میشه. این کد چند هسته ای رو قدیم دادم به یکی اونم همین ایراد رو گفت. شاید کلا چند هسته ای رو حذف کنم.

@ZarinNegah
Copy link
Author

نمیدونستم ایرانی هستین
بی زحمت به تلگرامم پیام بدید
@MTProtoConfiger

@gost-serb
Copy link

Hi. Thanks for cool proxy!
For some reason, I'm facing error while trying to connect to my proxy via fake-tls.

Here is error message:

 Client left: {
  id: 262,
  bytesWritten: 0,
  bytesRead: 132,
  error: 'Error: Assertion failed: No matching secret\n' +
    '    at assertit (/mtproxy/node_modules/mtprotoproxy/index.js:110:9)\n' +
    '    at handleClient (/mtproxy/node_modules/mtprotoproxy/index.js:655:2)\n' +
    '    at runMicrotasks (<anonymous>)\n' +
    '    at processTicksAndRejections (internal/process/task_queues.js:93:5)'
} on core  2

I event tried with default secret: ee00000000000000000000000000000000 in server config, and ee00000000000000000000000000000000676f6f676c652e636f6d on client side. At the same dd secret works fine.

Any ideas?

@MTProto
Copy link
Owner

MTProto commented Nov 23, 2019

Everything seems OK. Have you updated your telegram client? Please install the most recent version of Telegram. Then double check the secret entered to your client. Remember there are 32 consecutive ('0')'s. Please note that this is not an error message, In fact this is the reason for disconnecting client. It's meaning is simple. A client is trying to connect, but it's secret does not match with any of the secrets provided to the proxy. In fact from the proxy point of view, the user was not legitimate to use the proxy.
If you solved the problem, please let us know the reason, even if you made the mistake.

@gost-serb
Copy link

I used latest version of telegram client (also checked on official mobile client). I think problem occurred because server runs in corporate network with firewall which inserts itself as the trusted host for SSL connections.

@masoudzeeb
Copy link

سلام عزیز
این اول سکرت کد که dd و ee رو اضافه که میکنیم
از 32 کارکتر به 35 کارکتر تبدیل میشه
وقتی میخوای کانال اسپانسری رو در بات MTProxy واردکنیم
خطا میده که سکرت کد باید 32 کارکتر باشه

@MTProto
Copy link
Owner

MTProto commented Jan 2, 2020

سلام عزیز
این اول سکرت کد که dd و ee رو اضافه که میکنیم
از 32 کارکتر به 35 کارکتر تبدیل میشه
وقتی میخوای کانال اسپانسری رو در بات MTProxy واردکنیم
خطا میده که سکرت کد باید 32 کارکتر باشه

If you add those two characters to secrets, they would become 34 hex characters. (32+2=34). I think you are adding [SPACE] in between.

@masoudzeeb
Copy link

بله میشه 34 تا اشتباه زدم
ولی موقع ثبت در کانال Mtproto خطا میده
نمیشه این dd و ee رو حذف کرد ؟

یا داخل کد تعداد رو از 34 به 32 تغییر داد که اتصال انجام بشه ؟

@MTProto
Copy link
Owner

MTProto commented Jan 4, 2020

It is not important what you enter inside mtproto bot. Just fill it with 32 consecutive '0's. Although technically this problem should not occur.

@masoudzeeb
Copy link

Since yesterday, ASPs have been denied access to the server by secret code
Where should we change the code mtprotoproxy.js to increase the secret size of the code?

@masoudzeeb
Copy link

از دیروز تا به حال ای اس پی ها بر اساس سایز سکرت کد پروتکل رو تشخص میدند و اجازه دسترسی به سرور رو نمیدند
کجای کد mtprotoproxy.js رو باید تغییر بدیم تا سایز سکرت کد رو بیشتر کنیم ؟

@MTProto
Copy link
Owner

MTProto commented Jan 28, 2020

The size of the secret can not be changed as it is a part of protocol specification, and telegram server would not accept that. Besides, the protocol is already encrypting and padding, there is no need to change the size of packets as it is already implemented. Protocol can not be distinguished from TLS protocol. Choose a suitable SNI and port 443.

@masoudzeeb
Copy link

خیلی از پروکسی هایی که الان در حال استفاده هستند از سکرت کد 66 کارکتر استفاده میکنند
طبق بررسی ها اینجانب سکرت کد بین سرور و سرور تلگرام قابل تغییر نیست ولی سکرت کد بین کلاینت و سرور قابل تغییر هستش

@masoudzeeb
Copy link

تمام سکرت کد هایی که 32 تا 34 کارکتر بوده آی پی هاش فیلتر شده ولی سکرت کد های 66 کارکتر هیچ کدوم فیلتر نشدند

@masoudzeeb
Copy link

Many proxies in use now use the 66-character secret
According to the reviews, the secret code cannot be changed between the server and the telegram server, but the secret code can be changed between the client and the server.

All scripts with 32 to 34 characters were filtered by IPs, but 66 characters were not filtered by any

@VAHID002AM
Copy link

سلام وقت بخیر
ببخشید پشتیبانی میتونه فارسی حرف بزنه؟

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants