2022-07-10 08:41:38 +00:00
|
|
|
```json
|
|
|
|
{
|
|
|
|
"dns": {
|
|
|
|
"servers": [
|
|
|
|
{
|
|
|
|
"tag": "google",
|
|
|
|
"address": "tls://8.8.8.8"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag": "local",
|
|
|
|
"address": "223.5.5.5",
|
|
|
|
"detour": "direct"
|
2022-12-03 05:31:25 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag": "block",
|
|
|
|
"address": "rcode://success"
|
2022-07-10 08:41:38 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"rules": [
|
2022-12-03 05:31:25 +00:00
|
|
|
{
|
|
|
|
"geosite": "category-ads-all",
|
|
|
|
"server": "block",
|
|
|
|
"disable_cache": true
|
|
|
|
},
|
2022-07-10 08:41:38 +00:00
|
|
|
{
|
2023-03-29 02:30:31 +00:00
|
|
|
"outbound": "any",
|
|
|
|
"server": "local"
|
|
|
|
},
|
|
|
|
{
|
2022-07-10 08:41:38 +00:00
|
|
|
"geosite": "cn",
|
|
|
|
"server": "local"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"strategy": "ipv4_only"
|
|
|
|
},
|
|
|
|
"inbounds": [
|
|
|
|
{
|
|
|
|
"type": "tun",
|
|
|
|
"inet4_address": "172.19.0.1/30",
|
|
|
|
"auto_route": true,
|
2022-12-03 05:31:25 +00:00
|
|
|
"strict_route": false,
|
2022-07-10 08:41:38 +00:00
|
|
|
"sniff": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"outbounds": [
|
|
|
|
{
|
|
|
|
"type": "shadowsocks",
|
|
|
|
"tag": "proxy",
|
|
|
|
"server": "mydomain.com",
|
|
|
|
"server_port": 8080,
|
|
|
|
"method": "2022-blake3-aes-128-gcm",
|
|
|
|
"password": "8JCsPssfgS8tiRwiMlhARg=="
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "direct",
|
|
|
|
"tag": "direct"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "block",
|
|
|
|
"tag": "block"
|
2022-07-23 01:29:37 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "dns",
|
|
|
|
"tag": "dns-out"
|
2022-07-10 08:41:38 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"route": {
|
|
|
|
"rules": [
|
2022-07-23 01:29:37 +00:00
|
|
|
{
|
|
|
|
"protocol": "dns",
|
|
|
|
"outbound": "dns-out"
|
|
|
|
},
|
2022-07-10 08:41:38 +00:00
|
|
|
{
|
|
|
|
"geosite": "cn",
|
2022-12-03 05:31:25 +00:00
|
|
|
"geoip": [
|
|
|
|
"private",
|
|
|
|
"cn"
|
|
|
|
],
|
2022-07-10 08:41:38 +00:00
|
|
|
"outbound": "direct"
|
2022-12-03 05:31:25 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"geosite": "category-ads-all",
|
|
|
|
"outbound": "block"
|
2022-07-10 08:41:38 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"auto_detect_interface": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|