100 lines
2.0 KiB
JSON
100 lines
2.0 KiB
JSON
{
|
|
"log": {
|
|
"level": "info",
|
|
"timestamp": true
|
|
},
|
|
"dns": {
|
|
"servers": [
|
|
{
|
|
"type": "https",
|
|
"tag": "dns-remote",
|
|
"server": "dns.google",
|
|
"server_port": 443,
|
|
"path": "/dns-query",
|
|
"detour": "auto",
|
|
"domain_resolver": {
|
|
"server": "dns-bootstrap",
|
|
"strategy": "ipv4_only"
|
|
}
|
|
},
|
|
{
|
|
"type": "udp",
|
|
"tag": "dns-bootstrap",
|
|
"server": "8.8.8.8"
|
|
}
|
|
],
|
|
"final": "dns-remote"
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"type": "mixed",
|
|
"tag": "mixed-in",
|
|
"listen": "127.0.0.1",
|
|
"listen_port": 1080
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"type": "selector",
|
|
"tag": "proxy",
|
|
"outbounds": ["auto", "node-hk", "node-jp", "node-us", "direct"],
|
|
"default": "auto",
|
|
"interrupt_exist_connections": true
|
|
},
|
|
{
|
|
"type": "urltest",
|
|
"tag": "auto",
|
|
"outbounds": ["node-hk", "node-jp", "node-us"],
|
|
"url": "https://www.gstatic.com/generate_204",
|
|
"interval": "3m",
|
|
"tolerance": 50,
|
|
"idle_timeout": "30m",
|
|
"interrupt_exist_connections": true
|
|
},
|
|
{
|
|
"type": "{{PROTOCOL}}",
|
|
"tag": "node-hk",
|
|
"server": "hk.example.com",
|
|
"server_port": 443
|
|
},
|
|
{
|
|
"type": "{{PROTOCOL}}",
|
|
"tag": "node-jp",
|
|
"server": "jp.example.com",
|
|
"server_port": 443
|
|
},
|
|
{
|
|
"type": "{{PROTOCOL}}",
|
|
"tag": "node-us",
|
|
"server": "us.example.com",
|
|
"server_port": 443
|
|
},
|
|
{
|
|
"type": "direct",
|
|
"tag": "direct"
|
|
},
|
|
{
|
|
"type": "block",
|
|
"tag": "block"
|
|
}
|
|
],
|
|
"route": {
|
|
"rules": [
|
|
{ "action": "sniff" },
|
|
{ "protocol": "dns", "action": "hijack-dns" },
|
|
{ "ip_is_private": true, "action": "route", "outbound": "direct" }
|
|
],
|
|
"final": "proxy",
|
|
"auto_detect_interface": true
|
|
},
|
|
"experimental": {
|
|
"cache_file": {
|
|
"enabled": true
|
|
},
|
|
"clash_api": {
|
|
"external_controller": "127.0.0.1:9090",
|
|
"secret": ""
|
|
}
|
|
}
|
|
}
|