107 lines
2 KiB
JSON
107 lines
2 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-block-domains",
|
|
"action": "reject"
|
|
}
|
|
],
|
|
"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"
|
|
},
|
|
{
|
|
"domain": [
|
|
"probe.example.net",
|
|
"probe.example.org"
|
|
],
|
|
"action": "route",
|
|
"outbound": "selected-proxy"
|
|
},
|
|
{
|
|
"rule_set": [
|
|
"zapret-block-domains",
|
|
"zapret-block-ip"
|
|
],
|
|
"action": "reject"
|
|
},
|
|
{
|
|
"ip_is_private": true,
|
|
"action": "route",
|
|
"outbound": "direct"
|
|
}
|
|
],
|
|
"rule_set": [
|
|
{
|
|
"type": "inline",
|
|
"tag": "zapret-block-domains",
|
|
"rules": [
|
|
{
|
|
"domain_suffix": [
|
|
".blocked.example"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "inline",
|
|
"tag": "zapret-block-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
|
|
}
|
|
}
|