141 lines
3.4 KiB
Plaintext
Executable File
141 lines
3.4 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": [
|
|
"test"
|
|
]
|
|
},
|
|
{
|
|
"type": "direct",
|
|
"tag": "direct"
|
|
},
|
|
{
|
|
"type": "block",
|
|
"tag": "block"
|
|
},
|
|
{
|
|
"type": "trojan",
|
|
"tag": "test",
|
|
"server": "119.246.1.143",
|
|
"server_port": 443,
|
|
"password": "BxceQaOe",
|
|
"tls": {
|
|
"server_name": "t.me",
|
|
"insecure": true,
|
|
"utls": {
|
|
"fingerprint": "chrome",
|
|
"enabled": true
|
|
},
|
|
"enabled": true
|
|
},
|
|
"transport": {
|
|
"type": "http"
|
|
}
|
|
}
|
|
],
|
|
"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"
|
|
}
|
|
}
|
|
}
|