mirror of
https://github.com/routerich/RouterichAX3000_configs.git
synced 2026-01-03 15:18:44 +03:00
Fix calls WhatsApp and Telegram
This commit is contained in:
@@ -95,3 +95,39 @@ config section
|
||||
list sni_domains 'twitteroauth.com'
|
||||
list sni_domains 'twitterstat.us'
|
||||
|
||||
config section
|
||||
option name 'CallsWhatsAppTelegram'
|
||||
option tls_enabled '0'
|
||||
option all_domains '0'
|
||||
list sni_domains 'cdn-telegram.org'
|
||||
list sni_domains 'comments.app'
|
||||
list sni_domains 'contest.com'
|
||||
list sni_domains 'fragment.com'
|
||||
list sni_domains 'graph.org'
|
||||
list sni_domains 'quiz.directory'
|
||||
list sni_domains 't.me'
|
||||
list sni_domains 'tdesktop.com'
|
||||
list sni_domains 'telega.one'
|
||||
list sni_domains 'telegra.ph'
|
||||
list sni_domains 'telegram-cdn.org'
|
||||
list sni_domains 'telegram.dog'
|
||||
list sni_domains 'telegram.me'
|
||||
list sni_domains 'telegram.org'
|
||||
list sni_domains 'telegram.space'
|
||||
list sni_domains 'telesco.pe'
|
||||
list sni_domains 'tg.dev'
|
||||
list sni_domains 'tx.me'
|
||||
list sni_domains 'usercontent.dev'
|
||||
list sni_domains 'graph.facebook.com'
|
||||
list sni_domains 'whatsapp.biz'
|
||||
list sni_domains 'whatsapp.com'
|
||||
list sni_domains 'whatsapp.net'
|
||||
option sni_detection 'parse'
|
||||
option quic_drop '0'
|
||||
option udp_mode 'fake'
|
||||
option udp_faking_strategy 'none'
|
||||
option udp_fake_seq_len '6'
|
||||
option udp_fake_len '64'
|
||||
option udp_filter_quic 'disabled'
|
||||
option enabled '1'
|
||||
option udp_stun_filter '1'
|
||||
@@ -35,3 +35,40 @@ config section
|
||||
list sni_domains 'gstatic.com'
|
||||
list sni_domains 'l.google.com'
|
||||
option quic_drop '1'
|
||||
|
||||
config section
|
||||
option name 'CallsWhatsAppTelegram'
|
||||
option tls_enabled '0'
|
||||
option all_domains '0'
|
||||
list sni_domains 'cdn-telegram.org'
|
||||
list sni_domains 'comments.app'
|
||||
list sni_domains 'contest.com'
|
||||
list sni_domains 'fragment.com'
|
||||
list sni_domains 'graph.org'
|
||||
list sni_domains 'quiz.directory'
|
||||
list sni_domains 't.me'
|
||||
list sni_domains 'tdesktop.com'
|
||||
list sni_domains 'telega.one'
|
||||
list sni_domains 'telegra.ph'
|
||||
list sni_domains 'telegram-cdn.org'
|
||||
list sni_domains 'telegram.dog'
|
||||
list sni_domains 'telegram.me'
|
||||
list sni_domains 'telegram.org'
|
||||
list sni_domains 'telegram.space'
|
||||
list sni_domains 'telesco.pe'
|
||||
list sni_domains 'tg.dev'
|
||||
list sni_domains 'tx.me'
|
||||
list sni_domains 'usercontent.dev'
|
||||
list sni_domains 'graph.facebook.com'
|
||||
list sni_domains 'whatsapp.biz'
|
||||
list sni_domains 'whatsapp.com'
|
||||
list sni_domains 'whatsapp.net'
|
||||
option sni_detection 'parse'
|
||||
option quic_drop '0'
|
||||
option udp_mode 'fake'
|
||||
option udp_faking_strategy 'none'
|
||||
option udp_fake_seq_len '6'
|
||||
option udp_fake_len '64'
|
||||
option udp_filter_quic 'disabled'
|
||||
option enabled '1'
|
||||
option udp_stun_filter '1'
|
||||
@@ -66,3 +66,40 @@ config section
|
||||
list sni_domains 'discord.gg'
|
||||
list sni_domains 'discordapp.net'
|
||||
list sni_domains 'discord.media'
|
||||
|
||||
config section
|
||||
option name 'CallsWhatsAppTelegram'
|
||||
option tls_enabled '0'
|
||||
option all_domains '0'
|
||||
list sni_domains 'cdn-telegram.org'
|
||||
list sni_domains 'comments.app'
|
||||
list sni_domains 'contest.com'
|
||||
list sni_domains 'fragment.com'
|
||||
list sni_domains 'graph.org'
|
||||
list sni_domains 'quiz.directory'
|
||||
list sni_domains 't.me'
|
||||
list sni_domains 'tdesktop.com'
|
||||
list sni_domains 'telega.one'
|
||||
list sni_domains 'telegra.ph'
|
||||
list sni_domains 'telegram-cdn.org'
|
||||
list sni_domains 'telegram.dog'
|
||||
list sni_domains 'telegram.me'
|
||||
list sni_domains 'telegram.org'
|
||||
list sni_domains 'telegram.space'
|
||||
list sni_domains 'telesco.pe'
|
||||
list sni_domains 'tg.dev'
|
||||
list sni_domains 'tx.me'
|
||||
list sni_domains 'usercontent.dev'
|
||||
list sni_domains 'graph.facebook.com'
|
||||
list sni_domains 'whatsapp.biz'
|
||||
list sni_domains 'whatsapp.com'
|
||||
list sni_domains 'whatsapp.net'
|
||||
option sni_detection 'parse'
|
||||
option quic_drop '0'
|
||||
option udp_mode 'fake'
|
||||
option udp_faking_strategy 'none'
|
||||
option udp_fake_seq_len '6'
|
||||
option udp_fake_len '64'
|
||||
option udp_filter_quic 'disabled'
|
||||
option enabled '1'
|
||||
option udp_stun_filter '1'
|
||||
@@ -382,7 +382,7 @@ deleteByPassGeoBlockComssDNS()
|
||||
install_youtubeunblock_packages() {
|
||||
PKGARCH=$(opkg print-architecture | awk 'BEGIN {max=0} {if ($3 > max) {max = $3; arch = $2}} END {print arch}')
|
||||
VERSION=$(ubus call system board | jsonfilter -e '@.release.version')
|
||||
BASE_URL="https://github.com/Waujito/youtubeUnblock/releases/download/v1.0.0/"
|
||||
BASE_URL="https://github.com/Waujito/youtubeUnblock/releases/download/v1.1.0/"
|
||||
PACK_NAME="youtubeUnblock"
|
||||
|
||||
AWG_DIR="/tmp/$PACK_NAME"
|
||||
@@ -410,7 +410,7 @@ install_youtubeunblock_packages() {
|
||||
fi
|
||||
done
|
||||
|
||||
YOUTUBEUNBLOCK_FILENAME="youtubeUnblock-1.0.0-10-f37c3dd-${PKGARCH}-openwrt-23.05.ipk"
|
||||
YOUTUBEUNBLOCK_FILENAME="youtubeUnblock-1.1.0-2-2d579d5-${PKGARCH}-openwrt-23.05.ipk"
|
||||
DOWNLOAD_URL="${BASE_URL}${YOUTUBEUNBLOCK_FILENAME}"
|
||||
echo $DOWNLOAD_URL
|
||||
wget -O "$AWG_DIR/$YOUTUBEUNBLOCK_FILENAME" "$DOWNLOAD_URL"
|
||||
@@ -437,7 +437,7 @@ install_youtubeunblock_packages() {
|
||||
echo "$PACK_NAME already installed"
|
||||
else
|
||||
PACK_NAME="luci-app-youtubeUnblock"
|
||||
YOUTUBEUNBLOCK_FILENAME="luci-app-youtubeUnblock-1.0.0-10-f37c3dd.ipk"
|
||||
YOUTUBEUNBLOCK_FILENAME="luci-app-youtubeUnblock-1.1.0-1-473af29.ipk"
|
||||
DOWNLOAD_URL="${BASE_URL}${YOUTUBEUNBLOCK_FILENAME}"
|
||||
echo $DOWNLOAD_URL
|
||||
wget -O "$AWG_DIR/$YOUTUBEUNBLOCK_FILENAME" "$DOWNLOAD_URL"
|
||||
@@ -490,6 +490,11 @@ checkPackageAndInstall "jq" "1"
|
||||
checkPackageAndInstall "curl" "1"
|
||||
checkPackageAndInstall "unzip" "1"
|
||||
checkPackageAndInstall "sing-box" "1"
|
||||
checkPackageAndInstall "opera-proxy" "1"
|
||||
checkPackageAndInstall "youtubeUnblock" "1"
|
||||
opkg upgrade youtubeUnblock
|
||||
opkg upgrade luci-app-youtubeUnblock
|
||||
manage_package "youtubeUnblock" "enable" "start"
|
||||
|
||||
#проверяем установлени ли пакет dnsmasq-full
|
||||
if opkg list-installed | grep -q dnsmasq-full; then
|
||||
@@ -545,21 +550,6 @@ uci set dhcp.cfg01411c.strictorder='1'
|
||||
uci set dhcp.cfg01411c.filter_aaaa='1'
|
||||
uci commit dhcp
|
||||
|
||||
if opkg list-installed | grep -q opera-proxy; then
|
||||
echo "Opera-proxy already installed..."
|
||||
else
|
||||
echo "Install opera-proxy client..."
|
||||
service stop vpn > /dev/null
|
||||
rm -f /usr/bin/vpns /etc/init.d/vpn
|
||||
|
||||
url="https://github.com/NitroOxid/openwrt-opera-proxy-bin/releases/download/1.8.0/opera-proxy_1.8.0-1_aarch64_cortex-a53.ipk"
|
||||
destination_file="/tmp/opera-proxy.ipk"
|
||||
|
||||
echo "Downloading opera-proxy..."
|
||||
wget "$url" -O "$destination_file" || { echo "Failed to download the file"; exit 1; }
|
||||
echo "Installing opera-proxy..."
|
||||
opkg install $destination_file
|
||||
|
||||
cat <<EOF > /etc/sing-box/config.json
|
||||
{
|
||||
"log": {
|
||||
@@ -587,19 +577,18 @@ cat <<EOF > /etc/sing-box/config.json
|
||||
}
|
||||
EOF
|
||||
|
||||
echo "Setting sing-box..."
|
||||
uci set sing-box.main.enabled='1'
|
||||
uci set sing-box.main.user='root'
|
||||
uci add_list sing-box.main.ifaces='wan'
|
||||
uci add_list sing-box.main.ifaces='wan2'
|
||||
uci add_list sing-box.main.ifaces='wan6'
|
||||
uci add_list sing-box.main.ifaces='wwan'
|
||||
uci add_list sing-box.main.ifaces='wwan0'
|
||||
uci add_list sing-box.main.ifaces='modem'
|
||||
uci add_list sing-box.main.ifaces='l2tp'
|
||||
uci add_list sing-box.main.ifaces='pptp'
|
||||
uci commit sing-box
|
||||
fi
|
||||
echo "Setting sing-box..."
|
||||
uci set sing-box.main.enabled='1'
|
||||
uci set sing-box.main.user='root'
|
||||
uci add_list sing-box.main.ifaces='wan'
|
||||
uci add_list sing-box.main.ifaces='wan2'
|
||||
uci add_list sing-box.main.ifaces='wan6'
|
||||
uci add_list sing-box.main.ifaces='wwan'
|
||||
uci add_list sing-box.main.ifaces='wwan0'
|
||||
uci add_list sing-box.main.ifaces='modem'
|
||||
uci add_list sing-box.main.ifaces='l2tp'
|
||||
uci add_list sing-box.main.ifaces='pptp'
|
||||
uci commit sing-box
|
||||
|
||||
nameRule="option name 'Block_UDP_443'"
|
||||
str=$(grep -i "$nameRule" /etc/config/firewall)
|
||||
|
||||
Reference in New Issue
Block a user