keenetic-configs/opt/etc/xray/configs/05_routing.json

257 lines
7.6 KiB
JSON

{
"routing": {
"domainStrategy": "AsIs",
"balancers": [
{
"tag": "balancer-eu",
"selector": [
"vless-ams",
"vless-de",
"vless-zu",
"vless-se"
// "vless-he"
],
"strategy": {
"type": "leastPing"
},
"fallbackTag": "direct"
},
{
"tag": "balancer-ru",
"selector": ["vless-mow-1"],
"strategy": {
"type": "leastPing"
},
"fallbackTag": "direct"
},
{
"tag": "balancer-uni",
"selector": ["vless-ru-de"],
"strategy": {
"type": "leastPing"
},
"fallbackTag": "direct"
},
{
"tag": "balancer-us",
"selector": ["vless-ca", "vless-us"],
"strategy": {
"type": "leastPing"
},
"fallbackTag": "direct"
}
],
"rules": [
// -------------------------------
// Domains BLOCKED
// -------------------------------
{
"type": "field",
"domain": [
// "ext:geosite_v2fly.dat:category-ads-all",
// "ext:adlist.dat:hagezi-pro",
"kaspersky"
],
"outboundTag": "block"
},
// -------------------------------
// DIRECT
// -------------------------------
// {
// "type": "field",
// // "inboundTag": ["redirect"],
// "ip": ["ext:geoip_v2fly.dat:private"],
// "outboundTag": "direct"
// },
// {
// "type": "field",
// // "inboundTag": ["redirect", "tproxy"],
// "protocol": ["bittorrent"],
// "outboundTag": "direct"
// },
// // -------------------------------
// // RU Domains DIRECT
// // -------------------------------
// {
// "type": "field",
// // "inboundTag": ["redirect"],
// "domain": [
// "ext:geosite_v2fly.dat:category-ru",
// "ext:geosite_v2fly.dat:category-gov-ru",
// "ext:geosite_v2fly.dat:category-bank-ru",
// "ext:geosite_v2fly.dat:category-retail-ru",
// "ext:geosite_v2fly.dat:category-ecommerce-ru",
// "ext:geosite_v2fly.dat:category-entertainment-ru",
// "ext:geosite_v2fly.dat:category-travel-ru",
// "ext:geosite_v2fly.dat:yandex",
// "ext:geosite_v2fly.dat:mailru-group",
// "ext:geosite_v2fly.dat:vk"
// ],
// "outboundTag": "direct"
// },
// // -------------------------------
// // RU IP DIRECT
// // -------------------------------
// {
// "type": "field",
// // "inboundTag": ["redirect"],
// "ip": ["ext:zkeenip.dat:ru"],
// "outboundTag": "direct"
// },
// -------------------------------
// Domains DIRECT
// -------------------------------
{
"type": "field",
"domain": [
// // NFQWS
// "ext:geosite_zkeen.dat:youtube",
// //
// "ext:geosite_v2fly.dat:category-doh",
// "ext:geosite_v2fly.dat:connectivity-check",
// "ext:geosite_v2fly.dat:category-ip-geo-detect",
// "ext:geosite_v2fly.dat:steam",
// "ext:geosite_v2fly.dat:category-game-platforms-download",
// "ext:geosite_v2fly.dat:category-games",
// // "ext:geosite_v2fly.dat:category-companies", // Breaks AI, Meta, etc.
// "ext:geosite_v2fly.dat:xiaomi",
// "ext:geosite_v2fly.dat:samsung",
// "ext:geosite_v2fly.dat:apple",
// "ext:geosite_v2fly.dat:microsoft",
// "ext:geosite_v2fly.dat:spotify",
// "ext:geosite_v2fly.dat:alibaba",
"ext:geosite_v2fly.dat:tiktok"
// "keenetic",
// "craze"
],
"outboundTag": "direct"
},
// // -------------------------------
// // IP DIRECT
// // -------------------------------
// {
// "type": "field",
// // "inboundTag": ["redirect"],
// "ip": [
// // NFQWS
// "ext:zkeenip.dat:youtube"
// ],
// "outboundTag": "direct"
// },
// -------------------------------
// Domains Sora PROXY
// -------------------------------
{
"type": "field",
"domain": ["domain:sora.chatgpt.com"],
"balancerTag": "balancer-us"
},
// -------------------------------
// Other Domains PROXY
// -------------------------------
{
"type": "field",
// "inboundTag": ["redirect"],
"domain": [
"ext:geosite_v2fly.dat:category-ai-!cn",
"ext:geosite_v2fly.dat:google-gemini",
"ext:geosite_v2fly.dat:openai",
"ext:geosite_zkeen.dat:other",
"ext:geosite_v2fly.dat:category-proxy-tunnels",
"ext:geosite_v2fly.dat:tmdb",
"domain:seerr.dev",
"domain:radarr.video",
"domain:sonarr.tv"
],
"balancerTag": "balancer-eu"
},
// -------------------------------
// Domains PROXY
// -------------------------------
{
"type": "field",
// "inboundTag": ["redirect"],
"domain": [
"ext:geosite_zkeen.dat:domains",
"ext:geosite_v2fly.dat:meta",
// "ext:geosite_v2fly.dat:soundcloud",
// "ext:geosite_v2fly.dat:medium",
// "ext:geosite_v2fly.dat:cloudflare",
// "ext:geosite_v2fly.dat:speedtest",
"ext:geosite_v2fly.dat:xda",
// "ext:geosite_v2fly.dat:roblox",
// "4pda.to",
"amnezia",
"ext:geosite_v2fly.dat:rutracker",
"rutor",
"nnmclub"
],
"balancerTag": "balancer-eu"
},
// -------------------------------
// IP PROXY
// -------------------------------
{
"type": "field",
"ip": ["ext:zkeenip.dat:meta"],
"balancerTag": "balancer-eu"
},
// -------------------------------
// Domains Messengers PROXY
// -------------------------------
{
"type": "field",
// "inboundTag": ["redirect"],
"domain": [
"ext:geosite_v2fly.dat:telegram",
"2ip.io"
// , "ext:geosite_v2fly.dat:discord"
],
"balancerTag": "balancer-eu"
},
// -------------------------------
// IP Messengers PROXY
// -------------------------------
{
"type": "field",
// "inboundTag": ["redirect"],
"ip": [
"ext:zkeenip.dat:telegram"
// , "ext:zkeenip.dat:discord"
],
"balancerTag": "balancer-eu"
},
// // -------------------------------
// // IP Datacenters PROXY
// // -------------------------------
// {
// "type": "field",
// "ip": [
// // "ext:zkeenip.dat:akamai",
// "ext:zkeenip.dat:amazon",
// // "ext:zkeenip.dat:cdn77",
// // "ext:zkeenip.dat:contabo",
// "ext:zkeenip.dat:cloudflare",
// "ext:zkeenip.dat:digitalocean",
// // "ext:zkeenip.dat:fastly",
// // "ext:zkeenip.dat:gcore",
// "ext:zkeenip.dat:hetzner"
// // "ext:zkeenip.dat:meta",
// // "ext:zkeenip.dat:oracle",
// // "ext:zkeenip.dat:ovh",
// // "ext:zkeenip.dat:scaleway",
// // "ext:zkeenip.dat:vultr"
// ],
// "balancerTag": "balancer-eu"
// },
// -- All other direct
{
"type": "field",
// "inboundTag": ["redirect"],
"network": "tcp,udp",
"outboundTag": "direct"
}
]
}
}