111 lines
2.2 KiB
JSON
111 lines
2.2 KiB
JSON
{
|
|
"dns": {
|
|
"servers": [
|
|
{
|
|
"type": "local",
|
|
"tag": "zapret-android-dns"
|
|
},
|
|
{
|
|
"type": "https",
|
|
"tag": "zapret-doh-1",
|
|
"server": "1.1.1.1",
|
|
"tls": {
|
|
"enabled": true,
|
|
"server_name": "cloudflare-dns.com"
|
|
},
|
|
"detour": "selected-proxy"
|
|
},
|
|
{
|
|
"type": "https",
|
|
"tag": "zapret-doh-2",
|
|
"server": "8.8.8.8",
|
|
"tls": {
|
|
"enabled": true,
|
|
"server_name": "dns.google"
|
|
},
|
|
"detour": "selected-proxy"
|
|
},
|
|
{
|
|
"type": "https",
|
|
"tag": "zapret-doh-3",
|
|
"server": "208.67.222.222",
|
|
"tls": {
|
|
"enabled": true,
|
|
"server_name": "dns.opendns.com"
|
|
},
|
|
"detour": "selected-proxy"
|
|
},
|
|
{
|
|
"type": "fallback",
|
|
"tag": "zapret-secure-dns",
|
|
"servers": [
|
|
"zapret-doh-1",
|
|
"zapret-doh-2",
|
|
"zapret-doh-3"
|
|
],
|
|
"strategy": "parallel"
|
|
}
|
|
],
|
|
"rules": [
|
|
{
|
|
"domain_suffix": [
|
|
".example"
|
|
],
|
|
"action": "route",
|
|
"server": "zapret-secure-dns"
|
|
}
|
|
],
|
|
"final": "zapret-android-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"
|
|
},
|
|
{
|
|
"domain": [
|
|
"probe.example.net",
|
|
"probe.example.org",
|
|
"probe.example.com"
|
|
],
|
|
"action": "route",
|
|
"outbound": "selected-proxy"
|
|
},
|
|
{
|
|
"domain_suffix": [
|
|
".example"
|
|
],
|
|
"action": "route",
|
|
"outbound": "selected-proxy"
|
|
}
|
|
],
|
|
"final": "direct",
|
|
"default_domain_resolver": "zapret-android-dns",
|
|
"auto_detect_interface": true
|
|
}
|
|
}
|