Skip to content

Support for ipv6 #93

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

Merged
merged 4 commits into from
Aug 27, 2024
Merged

Support for ipv6 #93

merged 4 commits into from
Aug 27, 2024

Conversation

Waujito
Copy link
Owner

@Waujito Waujito commented Aug 27, 2024

Fixes #27 and finally implements support for IP version 6.

@Waujito Waujito self-assigned this Aug 27, 2024
This was referenced Aug 27, 2024
@Waujito Waujito merged commit 3b5276c into main Aug 27, 2024
@Waujito Waujito deleted the ipv6 branch August 27, 2024 20:03
@Klink0v
Copy link

Klink0v commented Aug 27, 2024

А запуште пожалуйста в ветку "openwrt", я тогда тоже потестирую.

@Waujito
Copy link
Owner Author

Waujito commented Aug 28, 2024

А запуште пожалуйста в ветку "openwrt", я тогда тоже потестирую.

Я обновил хеш коммита для SDK, но рекомендую использовать уже готовые бинарники, собранные Github Actions.

@Klink0v
Copy link

Klink0v commented Aug 29, 2024

Проверил на Debian 12 (мой десктоп) + Ростелеком + IPv6. Работает (TLS 1.3, тянет с GGC в сети оператора).
Запускал вот так

./youtubeUnblock --faking-strategy=ttl --faking-ttl=3 --fake-sni=1

Единственное, оно почему-то постоянно сыпет варнингами:

WARNING! Client Hello packet is too big and may cause issues!

При работе через IPv4 таких варнингов нет.

@Klink0v
Copy link

Klink0v commented Aug 29, 2024

При сборке еще выдает вот такие предупреждения.

../include/libnetfilter_queue/libnetfilter_queue.h:135:27: warning: ISO C restricts enumerator values to range of 'int' [-Wpedantic]
  135 |         NFQ_XML_ALL     = ~0U,
      |                           ^

/usr/src/unblocker/build/deps/include/libnfnetlink/libnfnetlink.h:40:27: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
   40 |         (((void *) (nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))
      |                           ^

/usr/src/unblocker/build/deps/include/libnfnetlink/libnfnetlink.h:176:9: warning: ISO C forbids braced-groups within expressions [-Wpedantic]
  176 |         ({      type *__ret = NULL;                     \
      |         ^

../include/libnetfilter_queue/libnetfilter_queue.h:135:27: warning: ISO C restricts enumerator values to range of 'int' [-Wpedantic]
  135 |         NFQ_XML_ALL     = ~0U,
      |                           ^

    4 | #warning "libnetfilter_queue/linux_nfnetlink_queue.h is deprecated, add #include <linux/netfilter/nfnetlink_queue.h> to your source code before #include <libnetfilter_queue/libnetfilter_queue.h>"
      |  ^~~~~~~

/usr/src/unblocker/build/deps/include/libnetfilter_queue/linux_nfnetlink_queue.h:4:2: warning: #warning "libnetfilter_queue/linux_nfnetlink_queue.h is deprecated, add #include <linux/netfilter/nfnetlink_queue.h> to your source code before #include <libnetfilter_queue/libnetfilter_queue.h>" [-Wcpp]

In file included from youtubeUnblock.c:17:
quic.h:41:48: warning: binary constants are a C2X feature or GCC extension
   41 | #define quic_convtype_v2(type) (((type) + 1) & 0b11)
      |                                                ^~~~

@Waujito
Copy link
Owner Author

Waujito commented Aug 29, 2024

Что те, что те варнинги не страшны. Client Hello packet is too big - варнинг от kyber на хроме.

@Klink0v
Copy link

Klink0v commented Aug 29, 2024

На OpenWRT 23.05.4 (ramips/mt7621) тоже проверил. Тоже работает IPv6 + TCP на том же провайдере.

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

Successfully merging this pull request may close these issues.

ipv6 support
2 participants