Waujito / youtubeUnblock

Bypasses Deep Packet Inspection (DPI) systems that rely on SNI
GNU General Public License v3.0
765 stars 59 forks source link

Проблема с фиксингом скорости для Youtube #76

Closed h4ckee closed 2 months ago

h4ckee commented 2 months ago

Привет. Пробую на тарифе для роутеров от Мегафона (роутер ramips/mt7621), с дефолтными настройками и так-же игрался с разными флагами, но никак не получается поднять скорость. Провайдер заметно тормозит Youtube в отличии от того-же Rutube. Вот тесты скоростей:

x@dell:/home/x/Downloads$ curl -o/dev/null -k --connect-to ::google.com -k -L -H Host:\ mirror.gcr.io https://test.googlevideo.com/v2/cimg/android/blobs/sha256:6fd8bdac3da660bde7bd0b6f2b6a46e1b686afb74b9a4614def32532b73f5eaa % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1144 100 1144 0 0 1111 0 0:00:01 0:00:01 --:--:-- 1111 0 664M 0 588k 0 0 70708 0 2:44:15 0:00:08 2:44:07 52603^C x@dell:/home/x/Downloads$ curl -o/dev/null -k --connect-to ::google.com -k -L -H Host:\ mirror.gcr.io https://test.googlevideo.com/v2/cimg/android/blobs/sha256:6fd8bdac3da660bde7bd0b6f2b6a46e1b686afb74b9a4614def32532b73f5eaa % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1144 100 1144 0 0 986 0 0:00:01 0:00:01 --:--:-- 987 0 664M 0 540k 0 0 56563 0 3:25:19 0:00:09 3:25:10 17711^C x@dell:/home/x/Downloads$ curl -o/dev/null -k --connect-to ::google.com -k -L -H Host:\ mirror.gcr.io https://test.googlevideo.com/v2/cimg/android/blobs/sha256:6fd8bdac3da660bde7bd0b6f2b6a46e1b686afb74b9a4614def32532b73f5eaa % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1144 100 1144 0 0 909 0 0:00:01 0:00:01 --:--:-- 909 0 664M 0 32012 0 0 3628 0 53:21:10 0:00:08 53:21:02 0^C

Тест обычной скорости:

x@dell:/home/x/Downloads$ curl -o/dev/null -k --connect-to ::google.com -k -L -H Host:\ mirror.gcr.io https://mirror.gcr.io/v2/cimg/android/blobs/sha256:6fd8bdac3da660bde7bd0b6f2b6a46e1b686afb74b9a4614def32532b73f5eaa % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1144 100 1144 0 0 843 0 0:00:01 0:00:01 --:--:-- 843 11 664M 11 78.3M 0 0 7545k 0 0:01:30 0:00:10 0:01:20 9.9M^C

Может кто подскажет куда копать? Спасибо.

Waujito commented 2 months ago

Смотрите troubleshooting в readme и играйте с флагами. Можете посмотреть другие issues для возможных решений. На ветке Dev сейчас еще больше флагов, бинарники на ней доступны через GitHub actions.

h4ckee commented 2 months ago

выяснил что эта опция из bol-van/zapret пока работает у меня:

./nfqws --hostlist=list --qnum=537 --dpi-desync=syndata,disorder2 --dpi-desync-split-pos=1 --dpi-desync-ttl=4 --dpi-desync-fooling=md5sig --dpi-desync-repeats=6 --dpi-desync-any-protocol=1 --dpi-desync-cutoff=d4

возможно её как-то повторить на youtubeUnblock?

Waujito commented 2 months ago

Попробуйте /usr/bin/youtubeUnblock --frag-sni-faked=1 --frag-sni-pos=1 --faking-ttl=4 --fake-sni-seq-len=6 --faking-strategy=ttl --faking-strategy стоит попробовать заменять на pastseq, tcp_check, ack.

Waujito commented 2 months ago

Пробовать надо на последнем релизе (v0.3.1)

h4ckee commented 2 months ago

ramips-mt7621-openwrt-23.05.zip из 0.3.1 убрали? или он теперь называется mipsel_24kc-openwrt-23.05.zip ?

Waujito commented 2 months ago

Да, смотрите через grep ARCH /etc/openwrt_release

h4ckee commented 2 months ago

у вас версия осталась старая в 0.3.1: youtubeUnblock-0.3.0-78ed6a1-mipsel_24kc-openwrt-23.05.ipk

Waujito commented 2 months ago

Да название поменять забыл)

h4ckee commented 2 months ago

там и версию поменять нужно root@Router:~# opkg list | grep youtube youtubeUnblock - 0.3.0-78ed6a1-1

h4ckee commented 2 months ago

те что есть к сожалению не работают (

oot@Router:~# youtubeUnblock --frag-sni-faked=1 --frag-sni-pos=1 --faking-ttl=4 --fake-sni-seq-len=6 --faking-strategy=ttl youtubeUnblock Bypasses deep packet inspection systems that relies on SNI

Using TCP segmentation Fake SNI will be sent before each target client hello Fragmentation Client Hello will be reversed Fooling packets will be sent near the original Client Hello Faking sequence of length 6 will be built as fake sni TTL faking strategy will be used with TTL 4 GSO is enabled Queue 537 started ^C root@Router:~# youtubeUnblock --frag-sni-faked=1 --frag-sni-pos=1 --faking-ttl=4 --fake-sni-seq-len=6 --faking-strategy=randseq youtubeUnblock Bypasses deep packet inspection systems that relies on SNI

Using TCP segmentation Fake SNI will be sent before each target client hello Fragmentation Client Hello will be reversed Fooling packets will be sent near the original Client Hello Faking sequence of length 6 will be built as fake sni Random seq faking strategy will be used GSO is enabled Queue 537 started ^C root@Router:~# youtubeUnblock --frag-sni-faked=1 --frag-sni-pos=1 --faking-ttl=4 --fake-sni-seq-len=6 --faking-strategy=tcp_check youtubeUnblock Bypasses deep packet inspection systems that relies on SNI

Using TCP segmentation Fake SNI will be sent before each target client hello Fragmentation Client Hello will be reversed Fooling packets will be sent near the original Client Hello Faking sequence of length 6 will be built as fake sni TCP checksum faking strategy will be used GSO is enabled Queue 537 started ^C root@Router:~# youtubeUnblock --frag-sni-faked=1 --frag-sni-pos=1 --faking-ttl=4 --fake-sni-seq-len=6 --faking-strategy=pastseq youtubeUnblock Bypasses deep packet inspection systems that relies on SNI

Using TCP segmentation Fake SNI will be sent before each target client hello Fragmentation Client Hello will be reversed Fooling packets will be sent near the original Client Hello Faking sequence of length 6 will be built as fake sni Past seq faking strategy will be used GSO is enabled Queue 537 started Target SNI detected: youtubei.googleapis.com Packet split in portion 1 574 Packet split in portion 535 39 Target SNI detected: redirector.googlevideo.com Packet split in portion 1 545 Packet split in portion 375 170 Target SNI detected: redirector.googlevideo.com Packet split in portion 1 545 Packet split in portion 190 355 ^C

x@dell:~/Downloads$ curl -o/dev/null -k --connect-to ::google.com -4 -k -L -H Host:\ mirror.gcr.io https://test.googlevideo.com/v2/cimg/android/blobs/sha256:6fd8bdac3da660bde7bd0b6f2b6a46e1b686afb74b9a4614def32532b73f5eaa % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1144 100 1144 0 0 1389 0 --:--:-- --:--:-- --:--:-- 1388 0 664M 0 1231k 0 0 221k 0 0:51:06 0:00:05 0:51:01 308k^C