2024-03-12 14:02:17 -04:00
|
|
|
{
|
|
|
|
"log": {
|
2024-10-22 08:29:45 -04:00
|
|
|
"level": "info",
|
2024-03-12 14:02:17 -04:00
|
|
|
"timestamp": true
|
|
|
|
},
|
|
|
|
"dns": {
|
2024-10-19 13:04:56 -04:00
|
|
|
"servers": [
|
|
|
|
{
|
|
|
|
"tag": "google",
|
2024-10-22 08:29:45 -04:00
|
|
|
"address": "https://8.8.8.8/dns-query",
|
|
|
|
"detour": "default"
|
2024-10-19 13:04:56 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag": "local",
|
2024-10-22 08:29:45 -04:00
|
|
|
"address": "h3://223.5.5.5/dns-query",
|
2024-10-19 13:04:56 -04:00
|
|
|
"detour": "direct"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag": "refused",
|
|
|
|
"address": "rcode://refused"
|
|
|
|
}
|
|
|
|
],
|
2024-03-12 14:02:17 -04:00
|
|
|
"rules": [
|
2024-10-19 13:04:56 -04:00
|
|
|
{
|
|
|
|
"rule_set": "geosite-category-ads-all",
|
|
|
|
"server": "refused"
|
|
|
|
},
|
2024-03-12 14:02:17 -04:00
|
|
|
{
|
|
|
|
"outbound": "any",
|
2024-09-30 13:27:22 -04:00
|
|
|
"server": "local"
|
2024-03-16 07:24:39 -04:00
|
|
|
},
|
2024-03-12 14:02:17 -04:00
|
|
|
{
|
|
|
|
"clash_mode": "Direct",
|
|
|
|
"server": "local"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"clash_mode": "Global",
|
|
|
|
"server": "google"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"rule_set": "geosite-geolocation-cn",
|
|
|
|
"server": "local"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "logical",
|
|
|
|
"mode": "and",
|
|
|
|
"rules": [
|
|
|
|
{
|
2024-09-19 06:12:24 -04:00
|
|
|
"rule_set": "geosite-geolocation-!cn",
|
|
|
|
"invert": true
|
2024-03-12 14:02:17 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"rule_set": "geoip-cn"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"server": "google",
|
2024-09-19 06:12:24 -04:00
|
|
|
"client_subnet": "114.114.114.114/24"
|
2024-03-12 14:02:17 -04:00
|
|
|
}
|
|
|
|
],
|
2024-10-20 07:05:22 -04:00
|
|
|
"final": "google"
|
2024-09-30 13:27:22 -04:00
|
|
|
},
|
2024-10-22 08:29:45 -04:00
|
|
|
"ntp": {
|
|
|
|
"enabled": true,
|
|
|
|
"interval": "30m0s",
|
|
|
|
"server": "ntp.aliyun.com",
|
|
|
|
"server_port": 123
|
|
|
|
},
|
2024-09-30 13:27:22 -04:00
|
|
|
"inbounds": [
|
|
|
|
{
|
|
|
|
"type": "tun",
|
2024-10-19 13:04:56 -04:00
|
|
|
"address": [
|
|
|
|
"172.16.0.1/30",
|
|
|
|
"fdfe:dcba:9876::1/126"
|
|
|
|
],
|
2024-09-30 13:27:22 -04:00
|
|
|
"auto_route": true,
|
2024-10-19 06:19:51 -04:00
|
|
|
"auto_redirect": true,
|
2024-09-30 13:27:22 -04:00
|
|
|
"strict_route": true,
|
2024-10-19 13:04:56 -04:00
|
|
|
"exclude_interface": "tailscale0",
|
2024-10-20 07:05:22 -04:00
|
|
|
"sniff": true
|
2024-09-30 13:27:22 -04:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"outbounds": [
|
|
|
|
{
|
2024-10-19 13:04:56 -04:00
|
|
|
"type": "selector",
|
2024-09-30 13:27:22 -04:00
|
|
|
"tag": "default",
|
2024-10-19 13:04:56 -04:00
|
|
|
"outbounds": [
|
|
|
|
"\u003call-proxy-tags\u003e",
|
|
|
|
"direct"
|
|
|
|
]
|
2024-09-30 13:27:22 -04:00
|
|
|
},
|
|
|
|
{
|
2024-10-19 13:04:56 -04:00
|
|
|
"type": "direct",
|
|
|
|
"tag": "direct"
|
2024-09-30 13:27:22 -04:00
|
|
|
},
|
|
|
|
{
|
2024-10-19 13:04:56 -04:00
|
|
|
"type": "block",
|
|
|
|
"tag": "block"
|
2024-09-30 13:27:22 -04:00
|
|
|
},
|
|
|
|
{
|
2024-10-19 13:04:56 -04:00
|
|
|
"type": "dns",
|
|
|
|
"tag": "dns"
|
2024-09-30 13:27:22 -04:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"route": {
|
|
|
|
"rules": [
|
2024-03-12 14:02:17 -04:00
|
|
|
{
|
2024-09-30 13:27:22 -04:00
|
|
|
"type": "logical",
|
|
|
|
"mode": "or",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"protocol": "dns"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"port": 53
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"outbound": "dns"
|
2024-03-12 14:02:17 -04:00
|
|
|
},
|
|
|
|
{
|
2024-09-30 13:27:22 -04:00
|
|
|
"ip_is_private": true,
|
|
|
|
"outbound": "direct"
|
2024-03-12 14:02:17 -04:00
|
|
|
},
|
|
|
|
{
|
2024-09-30 13:27:22 -04:00
|
|
|
"clash_mode": "Direct",
|
|
|
|
"outbound": "direct"
|
2024-03-12 14:02:17 -04:00
|
|
|
},
|
|
|
|
{
|
2024-09-30 13:27:22 -04:00
|
|
|
"clash_mode": "Global",
|
|
|
|
"outbound": "default"
|
2024-03-12 14:02:17 -04:00
|
|
|
},
|
|
|
|
{
|
2024-10-19 13:04:56 -04:00
|
|
|
"rule_set": "geosite-google",
|
2024-10-01 03:31:48 -04:00
|
|
|
"outbound": "default"
|
2024-04-22 11:44:04 -04:00
|
|
|
},
|
|
|
|
{
|
2024-10-03 02:30:45 -04:00
|
|
|
"type": "logical",
|
|
|
|
"mode": "or",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"rule_set": [
|
|
|
|
"geoip-cn",
|
|
|
|
"geosite-geolocation-cn",
|
|
|
|
"geosite-cn",
|
|
|
|
"geosite-category-games@cn",
|
|
|
|
"geosite-steam@cn"
|
|
|
|
]
|
2024-10-19 06:19:51 -04:00
|
|
|
}
|
2024-09-30 13:27:22 -04:00
|
|
|
],
|
2024-03-12 14:02:17 -04:00
|
|
|
"outbound": "direct"
|
2024-09-30 13:27:22 -04:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"rule_set": [
|
2024-10-19 13:04:56 -04:00
|
|
|
{
|
|
|
|
"type": "remote",
|
|
|
|
"tag": "geosite-category-ads-all",
|
|
|
|
"format": "binary",
|
2024-10-22 08:29:45 -04:00
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-category-ads-all.srs",
|
2024-10-19 13:04:56 -04:00
|
|
|
"download_detour": "default"
|
|
|
|
},
|
2024-09-30 13:27:22 -04:00
|
|
|
{
|
|
|
|
"type": "remote",
|
|
|
|
"tag": "geosite-geolocation-cn",
|
|
|
|
"format": "binary",
|
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs",
|
|
|
|
"download_detour": "default"
|
2024-03-12 14:02:17 -04:00
|
|
|
},
|
|
|
|
{
|
2024-09-30 13:27:22 -04:00
|
|
|
"type": "remote",
|
|
|
|
"tag": "geosite-geolocation-!cn",
|
|
|
|
"format": "binary",
|
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs",
|
|
|
|
"download_detour": "default"
|
2024-03-12 14:02:17 -04:00
|
|
|
},
|
|
|
|
{
|
2024-09-30 13:27:22 -04:00
|
|
|
"type": "remote",
|
|
|
|
"tag": "geoip-cn",
|
|
|
|
"format": "binary",
|
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs",
|
|
|
|
"download_detour": "default"
|
2024-03-12 14:02:17 -04:00
|
|
|
},
|
|
|
|
{
|
2024-09-30 13:27:22 -04:00
|
|
|
"type": "remote",
|
|
|
|
"tag": "geosite-category-games@cn",
|
|
|
|
"format": "binary",
|
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-category-games@cn.srs",
|
|
|
|
"download_detour": "default"
|
2024-03-12 14:02:17 -04:00
|
|
|
},
|
|
|
|
{
|
2024-09-30 13:27:22 -04:00
|
|
|
"type": "remote",
|
|
|
|
"tag": "geosite-steam@cn",
|
|
|
|
"format": "binary",
|
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-steam@cn.srs",
|
|
|
|
"download_detour": "default"
|
2024-03-12 14:02:17 -04:00
|
|
|
},
|
|
|
|
{
|
2024-09-30 13:27:22 -04:00
|
|
|
"type": "remote",
|
|
|
|
"tag": "geosite-cn",
|
|
|
|
"format": "binary",
|
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-cn.srs",
|
|
|
|
"download_detour": "default"
|
2024-10-01 03:31:48 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "remote",
|
|
|
|
"tag": "geosite-google",
|
|
|
|
"format": "binary",
|
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-google.srs",
|
|
|
|
"download_detour": "default"
|
2024-03-12 14:02:17 -04:00
|
|
|
}
|
|
|
|
],
|
2024-09-30 13:27:22 -04:00
|
|
|
"final": "default",
|
2024-03-12 14:02:17 -04:00
|
|
|
"auto_detect_interface": true
|
|
|
|
},
|
|
|
|
"experimental": {
|
|
|
|
"cache_file": {
|
2024-10-01 00:50:40 -04:00
|
|
|
"enabled": true
|
2024-03-12 14:02:17 -04:00
|
|
|
},
|
|
|
|
"clash_api": {
|
|
|
|
"external_controller": "127.0.0.1:9090",
|
|
|
|
"external_ui": "./ui",
|
2024-10-19 13:04:56 -04:00
|
|
|
"external_ui_download_detour": "default",
|
|
|
|
"default_mode": "Enhanced"
|
2024-03-12 14:02:17 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|