120 lines
2.9 KiB
Plaintext
Executable File
120 lines
2.9 KiB
Plaintext
Executable File
{
|
|
"log": {
|
|
"level": "error"
|
|
},
|
|
"dns": {
|
|
"servers": [
|
|
{
|
|
"tag": "local",
|
|
"address": "local"
|
|
}
|
|
],
|
|
"rules": [
|
|
{
|
|
"outbound": "any",
|
|
"server": "local"
|
|
}
|
|
],
|
|
"final": "local",
|
|
"strategy": "prefer_ipv6"
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"type": "tun",
|
|
"inet4_address": "172.19.0.1\/30",
|
|
"auto_route": true,
|
|
"strict_route": true,
|
|
"endpoint_independent_nat": true,
|
|
"udp_timeout": 60,
|
|
"platform": {
|
|
"http_proxy": {
|
|
"enabled": true,
|
|
"server": "127.0.0.1",
|
|
"server_port": 7891
|
|
}
|
|
},
|
|
"sniff": true
|
|
},
|
|
{
|
|
"type": "mixed",
|
|
"listen": "127.0.0.1",
|
|
"listen_port": 7891,
|
|
"sniff": true,
|
|
"domain_strategy": "prefer_ipv6"
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"type": "selector",
|
|
"tag": "default",
|
|
"outbounds": []
|
|
},
|
|
{
|
|
"type": "direct",
|
|
"tag": "direct"
|
|
},
|
|
{
|
|
"type": "block",
|
|
"tag": "block"
|
|
}
|
|
],
|
|
"route": {
|
|
"rules": [
|
|
{
|
|
"clash_mode": "Direct",
|
|
"outbound": "direct"
|
|
},
|
|
{
|
|
"clash_mode": "Rule",
|
|
"outbound": "default"
|
|
},
|
|
{
|
|
"clash_mode": "Global",
|
|
"outbound": "default"
|
|
},
|
|
{
|
|
"protocol": "stun",
|
|
"outbound": "block"
|
|
},
|
|
{
|
|
"ip_is_private": true,
|
|
"outbound": "direct"
|
|
},
|
|
{
|
|
"rule_set": "geoip-cn",
|
|
"outbound": "direct"
|
|
},
|
|
{
|
|
"rule_set": "geosite-cn",
|
|
"outbound": "direct"
|
|
}
|
|
],
|
|
"rule_set": [
|
|
{
|
|
"tag": "geoip-cn",
|
|
"type": "remote",
|
|
"format": "binary",
|
|
"url": "https:\/\/fastly.jsdelivr.net\/gh\/SagerNet\/sing-geoip@rule-set\/geoip-cn.srs",
|
|
"download_detour": "direct"
|
|
},
|
|
{
|
|
"tag": "geosite-cn",
|
|
"type": "remote",
|
|
"format": "binary",
|
|
"url": "https:\/\/fastly.jsdelivr.net\/gh\/SagerNet\/sing-geosite@rule-set\/geosite-cn.srs",
|
|
"download_detour": "direct"
|
|
}
|
|
],
|
|
"auto_detect_interface": true
|
|
},
|
|
"experimental": {
|
|
"cache_file": {
|
|
"enabled": true,
|
|
"cache_id": "clashfreenode"
|
|
},
|
|
"clash_api": {
|
|
"external_controller": "127.0.0.1:9090"
|
|
}
|
|
}
|
|
}
|