zapret-kvn/data/templates/xray/default.json
loop-uh 233001df17
Some checks failed
Windows project source guards / test (push) Failing after 18s
Route YouTube cache hosts through the VPN even on Russian addresses
The stock "Russia direct" rule matches by address (geoip-ru). A googlevideo cache inside a
Russian operator network has a Russian address, so the video bypassed the VPN into a channel
where YouTube is blocked (phone field test of 2026-11-13). Every shipped sing-box and Xray
template now carries one native rule by name (googlevideo.com, youtube.com, youtu.be,
ytimg.com, ggpht.com, youtube-nocookie.com, youtubei.googleapis.com) to proxy, above the
broad Russia-direct sets; the sing-box templates also resolve them through proxy-dns.
Regression test pins list, order and DNS; three UI tests pinned the stock rule counts.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 17:05:45 -05:00

351 lines
8.2 KiB
JSON

{
"log": {
"loglevel": "warning"
},
"inbounds": [
{
"tag": "socks-in",
"listen": "0.0.0.0",
"port": 1390,
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
],
"routeOnly": true
}
},
{
"tag": "http-in",
"listen": "0.0.0.0",
"port": 1391,
"protocol": "http",
"settings": {},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
],
"routeOnly": true
}
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "freedom",
"settings": {}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {}
}
],
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"domain": [
"domain:mobileproxy.passport.yandex.net",
"domain:relay-api.eu.2gis.com",
"domain:api.ipify.org",
"domain:checkip.amazonaws.com",
"domain:ifconfig.me",
"domain:ip.mail.ru",
"domain:ipv4-internet.yandex.net",
"domain:ipv6-internet.yandex.net",
"domain:trace-flow.ru",
"domain:api.oneme.ru",
"domain:vk-analytics.ru",
"domain:apptracer.ru"
],
"network": "tcp,udp",
"outboundTag": "block"
},
{
"type": "field",
"process": [
"Яндекс Музыка.exe",
"yandexmusic.exe"
],
"network": "tcp,udp",
"outboundTag": "direct"
},
{
"type": "field",
"protocol": [
"bittorrent"
],
"network": "tcp,udp",
"outboundTag": "direct"
},
{
"type": "field",
"process": [
"qbittorrent.exe",
"qBittorrent.exe",
"utorrent.exe",
"uTorrent.exe",
"bittorrent.exe",
"BitTorrent.exe",
"deluge.exe",
"transmission-qt.exe",
"tixati.exe",
"Tixati.exe",
"vuze.exe",
"Vuze.exe",
"biglybt.exe",
"BiglyBT.exe",
"bitcomet.exe",
"BitComet.exe",
"webtorrent.exe",
"WebTorrent.exe",
"FrostWire.exe"
],
"network": "tcp,udp",
"outboundTag": "direct"
},
{
"type": "field",
"port": "6881-6889,51413",
"network": "tcp,udp",
"outboundTag": "direct"
},
{
"type": "field",
"domain": [
"domain:gov.ru",
"domain:government.ru",
"domain:kremlin.ru",
"domain:gosuslugi.ru",
"domain:mil.ru",
"domain:fsb.ru",
"domain:sudrf.ru",
"domain:sledcom.ru",
"domain:cikrf.ru",
"domain:mos.ru",
"domain:emias.info",
"domain:xn--b1aew.xn--p1ai",
"domain:2gis.com",
"domain:2gis.ru",
"domain:alfabank.com",
"domain:alfabank.ru",
"domain:avito.ru",
"domain:clickstream.ru",
"domain:dzen.ru",
"domain:kinopoisk.ru",
"domain:mail.ru",
"domain:max.ru",
"domain:megafon.ru",
"domain:megamarket.ru",
"domain:mironline.ru",
"domain:mts.ru",
"domain:my.com",
"domain:mytracker.ru",
"domain:nspk.ru",
"domain:ok.ru",
"domain:odnoklassniki.ru",
"domain:oneme.ru",
"domain:ozon.ru",
"domain:privetmir.ru",
"domain:rutube.ru",
"domain:rustore.ru",
"domain:samokat.ru",
"domain:sber.ru",
"domain:sberbank.com",
"domain:sberbank.ru",
"domain:sbrf.ru",
"domain:tbank.ru",
"domain:tinkoff.ru",
"domain:userapi.com",
"domain:vtb.ru",
"domain:vk.com",
"domain:vk.ru",
"domain:vkvideo.ru",
"domain:wb.ru",
"domain:wildberries.ru",
"domain:ya.ru",
"domain:yandex.com",
"domain:yandex.net",
"domain:yandex.ru",
"domain:yastat.net",
"domain:yastatic.net",
"domain:bankdomrf.ru",
"domain:domrfbank.ru",
"domain:gazprombank.ru",
"domain:gazprompay.ru",
"domain:gpb.ru",
"domain:halvacard.ru",
"domain:home.bank",
"domain:homecredit.ru",
"domain:mkb.ru",
"domain:psbank.ru",
"domain:raif.ru",
"domain:raiffeisen.ru",
"domain:raiffeisenbank.ru",
"domain:rosbank.ru",
"domain:rshb.ru",
"domain:sovcombank.ru",
"domain:unicredit.ru",
"domain:unicreditbank.ru",
"domain:akbars.ru",
"domain:bspb.ru",
"domain:tochka.com",
"domain:yoomoney.ru",
"domain:aliexpress.ru",
"domain:kuper.ru",
"domain:lamoda.ru",
"domain:magnitmarket.ru",
"domain:youla.ru",
"domain:beeline.ru",
"domain:rostelecom.ru",
"domain:rt.ru",
"domain:t2.ru"
],
"network": "tcp,udp",
"outboundTag": "direct"
},
{
"type": "field",
"domain": [
"domain:loopy.ru",
"domain:championat.com"
],
"network": "tcp,udp",
"outboundTag": "direct"
},
{
"type": "field",
"domain": [
"domain:4pda.to",
"domain:zapret.moe"
],
"network": "tcp,udp",
"outboundTag": "proxy"
},
{
"type": "field",
"domain": [
"domain:googlevideo.com",
"domain:youtube.com",
"domain:youtu.be",
"domain:ytimg.com",
"domain:ggpht.com",
"domain:youtube-nocookie.com",
"domain:youtubei.googleapis.com"
],
"network": "tcp,udp",
"outboundTag": "proxy"
},
{
"type": "field",
"domain": [
"geosite:ru-blocked"
],
"network": "tcp,udp",
"outboundTag": "proxy"
},
{
"type": "field",
"ip": [
"geoip:ru-blocked"
],
"network": "tcp,udp",
"outboundTag": "proxy"
},
{
"type": "field",
"domain": [
"regexp:(^|\\.)facebook\\.com$",
"regexp:(^|\\.)fbcdn\\.net$",
"regexp:(^|\\.)instagram\\.com$",
"full:ntc.party",
"full:rutracker.org",
"full:static.rutracker.cc"
],
"network": "tcp,udp",
"outboundTag": "proxy"
},
{
"type": "field",
"ip": [
"geoip:private"
],
"network": "tcp,udp",
"outboundTag": "direct"
},
{
"type": "field",
"domain": [
"geosite:private"
],
"network": "tcp,udp",
"outboundTag": "direct"
},
{
"type": "field",
"domain": [
"geosite:category-ru"
],
"network": "tcp,udp",
"outboundTag": "direct"
},
{
"type": "field",
"ip": [
"geoip:ru"
],
"network": "tcp,udp",
"outboundTag": "direct"
},
{
"type": "field",
"process": [
"Telegram.exe",
"AyuGram.exe",
"Discord.exe",
"Vesktop.exe",
"Spotify.exe"
],
"network": "tcp,udp",
"outboundTag": "proxy"
},
{
"type": "field",
"process": [
"chrome.exe",
"firefox.exe",
"waterfox.exe",
"librewolf.exe",
"msedge.exe",
"opera.exe",
"brave.exe",
"vivaldi.exe",
"browser.exe"
],
"network": "tcp,udp",
"outboundTag": "proxy"
},
{
"type": "field",
"network": "tcp,udp",
"outboundTag": "proxy"
}
]
}
}