2024-03-12 14:02:17 -04:00
|
|
|
{
|
|
|
|
"log": {
|
|
|
|
"level": "info",
|
|
|
|
"timestamp": true
|
|
|
|
},
|
|
|
|
"dns": {
|
|
|
|
"servers": [
|
|
|
|
{
|
|
|
|
"tag": "google",
|
|
|
|
"address": "tls://8.8.8.8"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag": "local",
|
|
|
|
"address": "https://223.5.5.5/dns-query",
|
|
|
|
"detour": "direct"
|
|
|
|
},
|
|
|
|
{
|
2024-09-19 06:12:24 -04:00
|
|
|
"tag": "fakeip",
|
2024-03-12 14:02:17 -04:00
|
|
|
"address": "fakeip"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"outbound": "any",
|
2024-09-19 06:12:24 -04:00
|
|
|
"server": "local",
|
|
|
|
"disable_cache": true
|
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"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"query_type": ["A", "AAAA"],
|
|
|
|
"server": "fakeip"
|
2024-03-12 14:02:17 -04:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"fakeip": {
|
|
|
|
"enabled": true,
|
|
|
|
"inet4_range": "198.18.0.0/15",
|
|
|
|
"inet6_range": "fc00::/18"
|
|
|
|
},
|
|
|
|
"independent_cache": true
|
|
|
|
},
|
|
|
|
"route": {
|
|
|
|
"rule_set": [
|
|
|
|
{
|
|
|
|
"tag": "geosite-geolocation-cn",
|
|
|
|
"type": "remote",
|
|
|
|
"format": "binary",
|
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs",
|
|
|
|
"download_detour": "节点选择"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag": "geosite-geolocation-!cn",
|
|
|
|
"type": "remote",
|
|
|
|
"format": "binary",
|
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs",
|
|
|
|
"download_detour": "节点选择"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag": "geoip-cn",
|
|
|
|
"type": "remote",
|
|
|
|
"format": "binary",
|
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs",
|
|
|
|
"download_detour": "节点选择"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag": "geosite-category-ads-all",
|
|
|
|
"type": "remote",
|
|
|
|
"format": "binary",
|
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-category-ads-all.srs",
|
|
|
|
"download_detour": "节点选择"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag": "geosite-microsoft",
|
|
|
|
"type": "remote",
|
|
|
|
"format": "binary",
|
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-microsoft.srs",
|
|
|
|
"download_detour": "节点选择"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag": "geosite-bilibili",
|
|
|
|
"type": "remote",
|
|
|
|
"format": "binary",
|
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-bilibili.srs",
|
|
|
|
"download_detour": "节点选择"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag": "geosite-bahamut",
|
|
|
|
"type": "remote",
|
|
|
|
"format": "binary",
|
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-bahamut.srs",
|
|
|
|
"download_detour": "节点选择"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag": "geosite-category-games@cn",
|
|
|
|
"type": "remote",
|
|
|
|
"format": "binary",
|
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-category-games@cn.srs",
|
|
|
|
"download_detour": "节点选择"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag": "geosite-category-games",
|
|
|
|
"type": "remote",
|
|
|
|
"format": "binary",
|
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-category-games.srs",
|
|
|
|
"download_detour": "节点选择"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"type": "logical",
|
|
|
|
"mode": "or",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"protocol": "dns"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"port": 53
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"outbound": "dns-out"
|
|
|
|
},
|
|
|
|
{
|
2024-04-22 11:44:04 -04:00
|
|
|
"rule_set": "geosite-geolocation-!cn",
|
|
|
|
"outbound": "节点选择"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"rule_set": "geosite-geolocation-cn",
|
2024-03-12 14:02:17 -04:00
|
|
|
"outbound": "direct"
|
|
|
|
},
|
|
|
|
{
|
2024-04-22 11:44:04 -04:00
|
|
|
"rule_set": "geoip-cn",
|
2024-03-12 14:02:17 -04:00
|
|
|
"outbound": "direct"
|
|
|
|
},
|
|
|
|
{
|
2024-04-22 11:44:04 -04:00
|
|
|
"ip_is_private": true,
|
|
|
|
"outbound": "direct"
|
2024-03-12 14:02:17 -04:00
|
|
|
},
|
|
|
|
{
|
2024-04-22 11:44:04 -04:00
|
|
|
"rule_set": "geosite-category-ads-all",
|
|
|
|
"outbound": "Ads"
|
2024-03-12 14:02:17 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"rule_set": "geosite-bilibili",
|
|
|
|
"outbound": "Bilibili"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"rule_set": "geosite-category-games@cn",
|
|
|
|
"outbound": "Games(中国)"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"rule_set": "geosite-category-games",
|
|
|
|
"outbound": "Games(全球)"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"rule_set": "geosite-bahamut",
|
|
|
|
"outbound": "Bahamut"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"final": "节点选择",
|
|
|
|
"auto_detect_interface": true
|
|
|
|
},
|
|
|
|
"inbounds": [
|
|
|
|
{
|
2024-05-18 15:16:05 -04:00
|
|
|
"auto_route": true,
|
2024-03-12 14:02:17 -04:00
|
|
|
"inet4_address": "172.19.0.1/30",
|
|
|
|
"inet6_address": "fdfe:dcba:9876::1/126",
|
|
|
|
"sniff": true,
|
2024-05-18 15:16:05 -04:00
|
|
|
"sniff_override_destination": true,
|
|
|
|
"strict_route": true,
|
|
|
|
"type": "tun",
|
2024-05-23 04:57:19 -04:00
|
|
|
"stack": "mixed"
|
2024-03-12 14:02:17 -04:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"outbounds": [
|
|
|
|
{
|
|
|
|
"type": "selector",
|
|
|
|
"tag": "节点选择",
|
|
|
|
"outbounds": ["<all-proxy-tags>", "direct"],
|
|
|
|
"interrupt_exist_connections": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "selector",
|
|
|
|
"tag": "Ads",
|
|
|
|
"outbounds": ["direct", "block"],
|
|
|
|
"default": "block",
|
|
|
|
"interrupt_exist_connections": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "selector",
|
|
|
|
"tag": "Bilibili",
|
|
|
|
"outbounds": ["节点选择", "<all-proxy-tags>", "direct"],
|
|
|
|
"default": "direct",
|
|
|
|
"interrupt_exist_connections": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "selector",
|
|
|
|
"tag": "Games(全球)",
|
|
|
|
"outbounds": ["节点选择", "<all-proxy-tags>", "direct"],
|
|
|
|
"default": "节点选择",
|
|
|
|
"interrupt_exist_connections": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "selector",
|
|
|
|
"tag": "Games(中国)",
|
|
|
|
"outbounds": ["节点选择", "<all-proxy-tags>", "direct"],
|
|
|
|
"default": "direct",
|
|
|
|
"interrupt_exist_connections": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "selector",
|
|
|
|
"tag": "Bahamut",
|
|
|
|
"outbounds": ["节点选择", "<all-proxy-tags>", "direct"],
|
|
|
|
"default": "节点选择",
|
|
|
|
"interrupt_exist_connections": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "direct",
|
|
|
|
"tag": "direct"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "block",
|
|
|
|
"tag": "block"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "dns",
|
|
|
|
"tag": "dns-out"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"experimental": {
|
|
|
|
"cache_file": {
|
|
|
|
"enabled": true,
|
|
|
|
"store_rdrc": true
|
|
|
|
},
|
|
|
|
"clash_api": {
|
|
|
|
"default_mode": "Enhanced",
|
|
|
|
"external_controller": "127.0.0.1:9090",
|
|
|
|
"external_ui": "./ui",
|
|
|
|
"external_ui_download_detour": "节点选择"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|