Update Str3.sh
This commit is contained in:
1 parent
125ceb4bae
commit
c63edb870b
1 file changed
+13
-12
@@ -50,18 +50,8 @@ cat <<'EOF' >> /etc/config/zapret
|
|||||||
--dpi-desync-fake-quic=/opt/zapret/files/fake/quic_initial_www_google_com.bin
|
--dpi-desync-fake-quic=/opt/zapret/files/fake/quic_initial_www_google_com.bin
|
||||||
'
|
'
|
||||||
EOF
|
EOF
|
||||||
# Редактируем /etc/hosts
|
# Добавляем исключение и домены Youtube
|
||||||
echo -e "${GREEN}🔴 ${CYAN}Добавляем домены для ${NC}Youtube${CYAN} и редактируем ${NC}/etc/hosts"
|
echo -e "${GREEN}🔴 ${CYAN}Добавляем домены для ${NC}Youtube"
|
||||||
file="/etc/hosts"
|
|
||||||
cat <<'EOF' | grep -Fxv -f "$file" 2>/dev/null >> "$file"
|
|
||||||
130.255.77.28 ntc.party
|
|
||||||
57.144.222.34 instagram.com www.instagram.com
|
|
||||||
173.245.58.219 rutor.info d.rutor.info
|
|
||||||
193.46.255.29 rutor.info
|
|
||||||
157.240.9.174 instagram.com www.instagram.com
|
|
||||||
EOF
|
|
||||||
/etc/init.d/dnsmasq restart >/dev/null 2>&1
|
|
||||||
# добавление исключения
|
|
||||||
file="/opt/zapret/ipset/zapret-hosts-user-exclude.txt"
|
file="/opt/zapret/ipset/zapret-hosts-user-exclude.txt"
|
||||||
rm -f "$file"
|
rm -f "$file"
|
||||||
cat <<'EOF' > "$file"
|
cat <<'EOF' > "$file"
|
||||||
@@ -94,6 +84,17 @@ EOF
|
|||||||
# дкопируем tls_clienthello_t2_ru.bin
|
# дкопируем tls_clienthello_t2_ru.bin
|
||||||
echo -e "${GREEN}🔴 ${CYAN}Копируем ${NC}tls_clienthello_t2_ru.bin${CYAN} на устройство${NC}"
|
echo -e "${GREEN}🔴 ${CYAN}Копируем ${NC}tls_clienthello_t2_ru.bin${CYAN} на устройство${NC}"
|
||||||
curl -sLo /opt/zapret/files/fake/tls_clienthello_t2_ru.bin https://github.com/StressOzz/Zapret-Manager/raw/refs/heads/main/tls_clienthello_t2_ru.bin
|
curl -sLo /opt/zapret/files/fake/tls_clienthello_t2_ru.bin https://github.com/StressOzz/Zapret-Manager/raw/refs/heads/main/tls_clienthello_t2_ru.bin
|
||||||
|
# Редактируем /etc/hosts
|
||||||
|
echo -e "${GREEN}🔴 ${CYAN}Редактируем ${NC}/etc/hosts"
|
||||||
|
file="/etc/hosts"
|
||||||
|
cat <<'EOF' | grep -Fxv -f "$file" 2>/dev/null >> "$file"
|
||||||
|
130.255.77.28 ntc.party
|
||||||
|
57.144.222.34 instagram.com www.instagram.com
|
||||||
|
173.245.58.219 rutor.info d.rutor.info
|
||||||
|
193.46.255.29 rutor.info
|
||||||
|
157.240.9.174 instagram.com www.instagram.com
|
||||||
|
EOF
|
||||||
|
/etc/init.d/dnsmasq restart >/dev/null 2>&1
|
||||||
# Применяем конфиг
|
# Применяем конфиг
|
||||||
echo -e "${GREEN}🔴 ${CYAN}Применяем новую стратегию и настройки${NC}\n"
|
echo -e "${GREEN}🔴 ${CYAN}Применяем новую стратегию и настройки${NC}\n"
|
||||||
chmod +x /opt/zapret/sync_config.sh && /opt/zapret/sync_config.sh && /etc/init.d/zapret restart >/dev/null 2>&1
|
chmod +x /opt/zapret/sync_config.sh && /opt/zapret/sync_config.sh && /etc/init.d/zapret restart >/dev/null 2>&1
|
||||||
|
|||||||
Reference in new issue
Block a user