1{
2 "log": {
3 "level": "warn"
4 },
5 "dns": {
6 "servers": [
7 {
8 "tag": "dns-remote",
9 "address": "1.1.1.2",
10 "detour": "proxy"
11 },
12 {
13 "tag": "dns-local",
14 "address": "local",
15 "detour": "direct"
16 }
17 ],
18 "rules": [
19 {
20 "outbound": "any",
21 "server": "dns-local"
22 }
23 ],
24 "final": "dns-remote",
25 "strategy": "prefer_ipv4"
26 },
27 "inbounds": [
28 {
29 "type": "tun",
30 "tag": "tun-in",
31 "interface_name": "sbtun0",
32 "address": [
33 "172.19.0.1/30",
34 "fdfe:dcba:9876::1/126"
35 ],
36 "auto_route": true,
37 "route_exclude_address": [
38 "192.168.0.0/16",
39 "fc00::/7"
40 ],
41 "sniff": true,
42 "domain_strategy": "prefer_ipv4"
43 }
44 ],
45 "outbounds": [
46 {
47 "type": "selector",
48 "tag": "proxy",
49 "outbounds": null,
50 "interrupt_exist_connections": true
51 },
52 {
53 "type": "urltest",
54 "tag": "Best Latency",
55 "outbounds": null
56 },
57 {
58 "type": "direct",
59 "tag": "direct"
60 },
61 {
62 "type": "block",
63 "tag": "block"
64 },
65 {
66 "type": "dns",
67 "tag": "dns-out"
68 }
69 ],
70 "route": {
71 "rules": [
72 {
73 "protocol": "dns",
74 "outbound": "dns-out"
75 },
76 {
77 "ip_is_private": true,
78 "outbound": "direct"
79 }
80 ],
81 "final": "proxy",
82 "auto_detect_interface": true,
83 "override_android_vpn": true
84 },
85 "experimental": {
86 "cache_file": {
87 "enabled": true,
88 "store_rdrc": true
89 }
90 }
91}