radkesvat / FakeTlsTunnel

Tunneling tool for custom tls handshake, with resistance against MiTM,Active detection and more!
MIT License
352 stars 45 forks source link

Some packet loss or EOF ! #41

Open hawshemi opened 1 year ago

hawshemi commented 1 year ago

First of all, good job.

I ran it and connected successfully on Iran and EU VPSs.

But I noticed sometimes I get EOF (1 out of 5 times when I tcping), especially on MCI and MTN ISPs. It's like packet-loss-ish or something! Is it for SNI which has disruption on those ISPs? or is it the nature of the FTT?

Also, this happens when I first connect to the server and make the first ping. after one or two pings, the tunnel is connected. (it's like it has some delay for starting up?)

I run the FTT with nohup and exit the SSH.

radkesvat commented 1 year ago

ببینید این بحث EOF رو من ایفون دارم و اونجا مثل v2rayng هند شیک تایم نمیده ولی به هرحال یه اندروید اوردم و تست کردیم هم ایرانسل و هم همراه اول با حدودا ۲۰ بار هرکودوم هند شیک گرفتم و یک بار هم EOF فایل مشاهده نکردم ؛ در ستاپتون اول sni های مختلف رو تست کنید و احتمالا مشکل رفع میشه ولی اگه مشکل رفع نشد یا ایپی سرور خارج کامل تمیز نیست یا اینکه کیفیت اینترنت دیتا سنتر ایران مناسب نیست هردوش ممکنه

روی v2rayng ؛ tcp ping هم تست کردم و مشکل یا اختلالی ندیدم

روی سرور هاتون بهتره که bbr اتسفاده کنید

hawshemi commented 1 year ago

So it can be for v2rayng application? I tested with v2rayng v1.8.5 xray-core 1.8.1 on Android 12 and saw these EOFs on that. (more on MCI). But they are not in high amounts. the connection and experience are like a normal VPN without tunnelling. I was just curious about what those EOFs are.

SNI: data.services.jetbrains.com IR VPS: Arvancloud

radkesvat commented 1 year ago

Try these sni's and see if they can improve the results:

superuser.com

alexa.com

i.stack.imgur.com

hawshemi commented 1 year ago

Tried those SNIs and some other SNIs with the ISPs I have.

No matter the ISP and SNI, all of the First pings are almost always EOF. It's like the tunnel goes into some sort of sleep after no data transmission and when the first data is requested it returns EOF and then the tunnel is transmitting the data after the second request. Or it could be just the nature of the Arvancloud to the foreign VPS TLS connection...

radkesvat commented 1 year ago

اینو میشه بیشتر برسی کرد شاید از تونل باشه که اولین کانکشن fail بشه شایدم نباشه ؛‌ بعدا دقیق تر توضیح میدم اگه چیزی پیدا کنم

danyalfa79 commented 1 year ago

من هم مشکل مشابهی رو در اولین نصب داشتم با نصب مجدد پنل سرور خارج + نصب مجدد فایل تونل روی سرور داخل مشکل برطرف شد و الان پینگ EOF نمیده ولی با این حال اولین اتصال بعد از مدتی استفاده نکردن حداقل 10-20 ثانیه طول میکشه که ببینیم واقعا کانکت میشه یا خیر

behroozaez commented 1 year ago

روی دو تا دیتا سنتر مختلف ایران تست کردم . سرور های خارج آی پی کاملا تمیز بوده . ترکیه ، آلمان ، فرانسه . در همه حالات EOF گرفتم .