ZapretKVN-android/testdata/routing/ru-rule-set.json
2026-07-22 14:44:50 +03:00

103 lines
1.9 KiB
JSON

{
"dns": {
"servers": [
{
"type": "local",
"tag": "zapret-android-dns"
},
{
"type": "https",
"tag": "zapret-secure-dns",
"server": "1.1.1.1",
"tls": {
"enabled": true,
"server_name": "cloudflare-dns.com"
},
"detour": "selected-proxy"
}
],
"rules": [
{
"rule_set": "zapret-ru-domains",
"action": "route",
"server": "zapret-android-dns"
}
],
"final": "zapret-secure-dns",
"strategy": "prefer_ipv4",
"cache_capacity": 4096,
"reverse_mapping": true
},
"inbounds": [
{
"type": "tun",
"tag": "tun-in",
"address": [
"172.19.0.1/30",
"fdfe:dcba:9876::1/126"
],
"auto_route": true
}
],
"outbounds": [
{
"type": "direct",
"tag": "selected-proxy"
},
{
"type": "direct",
"tag": "direct"
}
],
"route": {
"rules": [
{
"port": 53,
"action": "hijack-dns"
},
{
"ip_is_private": true,
"action": "route",
"outbound": "direct"
},
{
"rule_set": [
"zapret-ru-domains",
"zapret-ru-ip"
],
"action": "route",
"outbound": "direct"
}
],
"rule_set": [
{
"type": "inline",
"tag": "zapret-ru-domains",
"rules": [
{
"domain_suffix": [
".ru",
".su",
".xn--p1ai"
]
}
]
},
{
"type": "inline",
"tag": "zapret-ru-ip",
"rules": [
{
"ip_cidr": [
"192.0.2.0/24",
"2001:db8::/32"
]
}
]
}
],
"final": "selected-proxy",
"default_domain_resolver": "zapret-android-dns",
"auto_detect_interface": true
}
}