2023-11-17 01:44:01 -05:00
|
|
|
{
|
|
|
|
"dns": {
|
|
|
|
"rules": [
|
|
|
|
{
|
2024-05-14 13:06:41 -04:00
|
|
|
"outbound": ["any"],
|
2023-11-17 01:44:01 -05:00
|
|
|
"server": "local"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"clash_mode": "global",
|
|
|
|
"server": "remote"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"clash_mode": "direct",
|
|
|
|
"server": "local"
|
|
|
|
},
|
|
|
|
{
|
2024-06-10 00:27:13 -04:00
|
|
|
"rule_set": ["geosite-cn"],
|
2023-11-17 01:44:01 -05:00
|
|
|
"server": "local"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"servers": [
|
|
|
|
{
|
|
|
|
"address": "https://1.1.1.1/dns-query",
|
|
|
|
"detour": "节点选择",
|
|
|
|
"tag": "remote"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"address": "https://223.5.5.5/dns-query",
|
|
|
|
"detour": "direct",
|
|
|
|
"tag": "local"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"address": "rcode://success",
|
|
|
|
"tag": "block"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"strategy": "prefer_ipv4"
|
|
|
|
},
|
|
|
|
"experimental": {
|
2024-06-10 00:27:13 -04:00
|
|
|
"cache_file": {
|
|
|
|
"enabled": true,
|
|
|
|
"path": "cache.db",
|
|
|
|
"cache_id": "cache_db",
|
|
|
|
"store_fakeip": true
|
2023-11-17 01:44:01 -05:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"inbounds": [
|
|
|
|
{
|
|
|
|
"auto_route": true,
|
|
|
|
"domain_strategy": "prefer_ipv4",
|
|
|
|
"endpoint_independent_nat": true,
|
2024-12-19 02:34:58 -05:00
|
|
|
"address": [
|
|
|
|
"172.19.0.1/30",
|
|
|
|
"2001:0470:f9da:fdfa::1/64"
|
|
|
|
],
|
2023-11-17 01:44:01 -05:00
|
|
|
"mtu": 9000,
|
|
|
|
"sniff": true,
|
|
|
|
"sniff_override_destination": true,
|
|
|
|
"stack": "system",
|
|
|
|
"strict_route": true,
|
|
|
|
"type": "tun"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"domain_strategy": "prefer_ipv4",
|
|
|
|
"listen": "127.0.0.1",
|
|
|
|
"listen_port": 2333,
|
|
|
|
"sniff": true,
|
|
|
|
"sniff_override_destination": true,
|
|
|
|
"tag": "socks-in",
|
|
|
|
"type": "socks",
|
|
|
|
"users": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"domain_strategy": "prefer_ipv4",
|
|
|
|
"listen": "127.0.0.1",
|
|
|
|
"listen_port": 2334,
|
|
|
|
"sniff": true,
|
|
|
|
"sniff_override_destination": true,
|
|
|
|
"tag": "mixed-in",
|
|
|
|
"type": "mixed",
|
|
|
|
"users": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"outbounds": [
|
2024-05-14 13:06:41 -04:00
|
|
|
{
|
|
|
|
"tag": "节点选择",
|
|
|
|
"type": "selector",
|
|
|
|
"default": "自动选择",
|
|
|
|
"outbounds": ["自动选择"]
|
|
|
|
},
|
|
|
|
{ "tag": "direct", "type": "direct" },
|
|
|
|
{ "tag": "block", "type": "block" },
|
|
|
|
{ "tag": "dns-out", "type": "dns" },
|
|
|
|
{
|
|
|
|
"tag": "自动选择",
|
|
|
|
"type": "urltest",
|
|
|
|
"outbounds": []
|
|
|
|
}
|
2023-11-17 01:44:01 -05:00
|
|
|
],
|
|
|
|
"route": {
|
|
|
|
"auto_detect_interface": true,
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"outbound": "dns-out",
|
|
|
|
"protocol": "dns"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"clash_mode": "direct",
|
|
|
|
"outbound": "direct"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"clash_mode": "global",
|
|
|
|
"outbound": "节点选择"
|
|
|
|
},
|
|
|
|
{
|
2024-06-10 00:27:13 -04:00
|
|
|
"ip_is_private": true,
|
2023-11-17 01:44:01 -05:00
|
|
|
"outbound": "direct"
|
|
|
|
},
|
|
|
|
{
|
2024-06-10 00:27:13 -04:00
|
|
|
"rule_set": ["geosite-cn", "geoip-cn"],
|
2023-11-17 01:44:01 -05:00
|
|
|
"outbound": "direct"
|
|
|
|
}
|
2024-06-10 00:27:13 -04:00
|
|
|
],
|
|
|
|
"rule_set": [
|
|
|
|
{
|
|
|
|
"tag": "geosite-cn",
|
|
|
|
"type": "remote",
|
|
|
|
"format": "binary",
|
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-cn.srs",
|
2024-07-18 14:33:27 -04:00
|
|
|
"download_detour": "自动选择"
|
2024-06-10 00:27:13 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag": "geoip-cn",
|
|
|
|
"type": "remote",
|
|
|
|
"format": "binary",
|
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs",
|
2024-07-18 14:33:27 -04:00
|
|
|
"download_detour": "自动选择"
|
2024-06-10 00:27:13 -04:00
|
|
|
}
|
2023-11-17 01:44:01 -05:00
|
|
|
]
|
|
|
|
}
|
2024-05-14 13:06:41 -04:00
|
|
|
}
|