Last active
February 16, 2025 10:02
-
-
Save Nasgern/56bbef8e89bb0bcf9afb72187c0d2868 to your computer and use it in GitHub Desktop.
ИНСТРУКЦИЯ УСТАРЕЛА / Обход блокировки Youtube с помощью zapret от bol-van на роутерах с прошивкой Openwrt 23.05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Установка и настройка zapret на роутер Beeline Smartbox Turbo+ с OpenWRT 23.05.4 | |
### устанавливаем необходимые пакеты | |
opkg update && opkg install ipset curl gzip grep git-http libcurl4 nano | |
### создаём папки и скачиваем zapret | |
mkdir /opt | |
cd /opt | |
git clone --depth 1 https://github.com/bol-van/zapret | |
cd zapret | |
### запускаем установочные скрипты, нужно правильно ответить на вопросы исходя из особенностей системы | |
### выбираем файрвол nftables(2), метод обхода - nfqws(3). IPv6 - на своё усмотрение, HTTP - да, HTTPS - да, QUIC - да, тип фильтрации - hostlist (3), flow offloading - donottouch (1). На остальные вопросы жмём Enter. | |
./install_bin.sh | |
./install_prereq.sh | |
./install_easy.sh | |
### заполняем файл со списком доменов | |
nano /opt/zapret/ipset/zapret-hosts-user.txt | |
## список доменов на 10.08.2024, копируем их в zapret-hosts-user.txt (в список можно добавлять интересующие вас недоступные в вашей стране ресурсы) | |
googlevideo.com | |
ggpht.com | |
ytimg.com | |
l.google.com | |
youtube.com | |
play.google.com | |
youtubei.googleapis.com | |
youtu.be | |
nhacmp3youtube.com | |
googleusercontent.com | |
### настраиваем конфигурацию | |
nano /opt/zapret/config | |
### опытным путем мне помогли следующие параметры: | |
MODE=nfqws | |
MODE_HTTP=1 | |
MODE_HTTPS=1 | |
MODE_QUIC=1 | |
NFQWS_OPT_DESYNC="--dpi-desync=fake,disorder2 --dpi-desync-split-pos=1 --dpi-desync-ttl=0 --dpi-desync-fooling=md5sig,badsum --dpi-desync-repeats=15 --dpi-desync-any-protocol --dpi-desync-cutoff=d4 --dpi-desync-fake-tls=/opt/zapret/files/fake/tls_clienthello_www_google_com.bin" | |
#NFQWS_OPT_DESYNC_HTTP="" | |
#NFQWS_OPT_DESYNC_HTTPS="" | |
#NFQWS_OPT_DESYNC_HTTP6="" | |
#NFQWS_OPT_DESYNC_HTTPS6="" | |
NFQWS_OPT_DESYNC_QUIC="--dpi-desync=fake --dpi-desync-repeats=15 --dpi-desync-ttl=0 --dpi-desync-any-protocol --dpi-desync-cutoff=d4 --dpi-desync-fooling=md5sig,badsum --dpi-desync-fake-quic=/opt/zapret/files/fake/quic_initial_google_com.bin" | |
###выставляем их в настройках и сохраняем | |
### перезапускаем службу | |
/etc/init.d/zapret restart | |
################ ВАЖНО ############### | |
#### У кого НЕ РАБОТАЕТ НА ТЕЛЕВИЗОРАХ, подбираем Ваш вариант тут: https://gist.github.com/Nasgern/56bbef8e89bb0bcf9afb72187c0d2868?permalink_comment_id=5192035#gistcomment-5192035 | |
###################################### | |
### Удаление. | |
cd /opt/zapret | |
./uninstall_easy.sh | |
rm -R /opt/zapret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
У товарища Remittor есть решение с luci-интерфейсом, работающее практически искаропки: https://github.com/remittor/zapret-openwrt?tab=readme-ov-file .
Единственное, в пункт "User hostname entries" желательно вставить список доменов:
googlevideo.com
ggpht.com
ytimg.com
l.google.com
youtube.com
play.google.com
youtubei.googleapis.com
youtu.be
nhacmp3youtube.com
googleusercontent.com