193 lines
3.6 KiB
JSON
Executable File
193 lines
3.6 KiB
JSON
Executable File
{
|
|
"log": {
|
|
"level": "debug",
|
|
"timestamp": true
|
|
},
|
|
"dns": {
|
|
"servers": [
|
|
{
|
|
"type": "https",
|
|
"tag": "remote",
|
|
"server": "8.8.8.8",
|
|
"detour": "select"
|
|
},
|
|
{
|
|
"type": "https",
|
|
"tag": "local",
|
|
"server": "223.5.5.5"
|
|
},
|
|
{
|
|
"type": "fakeip",
|
|
"tag": "fakeip",
|
|
"inet4_range": "198.18.0.0/15",
|
|
"inet6_range": "fc00::/18"
|
|
}
|
|
],
|
|
"rules": [
|
|
{
|
|
"clash_mode": "Global",
|
|
"server": "remote"
|
|
},
|
|
{
|
|
"clash_mode": "Direct",
|
|
"server": "local"
|
|
},
|
|
{
|
|
"query_type": [
|
|
"A",
|
|
"AAAA"
|
|
],
|
|
"server": "fakeip",
|
|
"rewrite_ttl": 1
|
|
}
|
|
],
|
|
"strategy": "prefer_ipv4",
|
|
"independent_cache": true,
|
|
"reverse_mapping": true
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"type": "mixed",
|
|
"tag": "mixed-in",
|
|
"listen": "0.0.0.0",
|
|
"listen_port": 10172,
|
|
"tcp_fast_open": true,
|
|
"set_system_proxy": false
|
|
},
|
|
{
|
|
"type": "socks",
|
|
"tag": "socks-in",
|
|
"listen": "0.0.0.0",
|
|
"listen_port": 10173,
|
|
"tcp_fast_open": true
|
|
},
|
|
{
|
|
"type": "mixed",
|
|
"tag": "mixed-in2",
|
|
"listen": "0.0.0.0",
|
|
"listen_port": 10174,
|
|
"tcp_fast_open": true,
|
|
"set_system_proxy": false
|
|
},
|
|
{
|
|
"type": "mixed",
|
|
"tag": "mixed-in3",
|
|
"listen": "0.0.0.0",
|
|
"listen_port": 10175,
|
|
"tcp_fast_open": true,
|
|
"set_system_proxy": false
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"type": "selector",
|
|
"tag": "select",
|
|
"outbounds": [
|
|
"urltest"
|
|
],
|
|
"default": "urltest"
|
|
},
|
|
{
|
|
"type": "urltest",
|
|
"tag": "urltest",
|
|
"interval": "30m",
|
|
"idle_timeout": "60m",
|
|
"interrupt_exist_connections": false,
|
|
"outbounds": null
|
|
},
|
|
{
|
|
"type": "direct",
|
|
"tag": "direct"
|
|
}
|
|
],
|
|
"route": {
|
|
"rules": [
|
|
{
|
|
"action": "sniff"
|
|
},
|
|
{
|
|
"type": "logical",
|
|
"mode": "or",
|
|
"rules": [
|
|
{
|
|
"protocol": "dns"
|
|
},
|
|
{
|
|
"port": 53
|
|
}
|
|
],
|
|
"action": "hijack-dns"
|
|
},
|
|
{
|
|
"inbound": [
|
|
"mixed-in",
|
|
"socks-in",
|
|
"mixed-in2",
|
|
"mixed-in3"
|
|
],
|
|
"action": "resolve",
|
|
"strategy": "prefer_ipv4"
|
|
},
|
|
{
|
|
"ip_is_private": true,
|
|
"outbound": "direct"
|
|
},
|
|
{
|
|
"inbound": [
|
|
"mixed-in2"
|
|
],
|
|
"outbound": "select2"
|
|
},
|
|
{
|
|
"inbound": [
|
|
"mixed-in3"
|
|
],
|
|
"outbound": "select3"
|
|
},
|
|
{
|
|
"clash_mode": "Direct",
|
|
"outbound": "direct"
|
|
},
|
|
{
|
|
"clash_mode": "Global",
|
|
"outbound": "select"
|
|
},
|
|
{
|
|
"type": "logical",
|
|
"mode": "or",
|
|
"rules": [
|
|
{
|
|
"port": 853
|
|
},
|
|
{
|
|
"network": "udp",
|
|
"port": 443
|
|
},
|
|
{
|
|
"protocol": "stun"
|
|
}
|
|
],
|
|
"action": "reject"
|
|
}
|
|
],
|
|
"auto_detect_interface": false,
|
|
"default_domain_resolver": {
|
|
"server": "local",
|
|
"strategy": "prefer_ipv4"
|
|
}
|
|
},
|
|
"experimental": {
|
|
"cache_file": {
|
|
"enabled": true,
|
|
"store_rdrc": true
|
|
},
|
|
"clash_api": {
|
|
"external_controller": "0.0.0.0:19090",
|
|
"external_ui": "ui",
|
|
"external_ui_download_url": "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip",
|
|
"external_ui_download_detour": "select",
|
|
"default_mode": "Rule"
|
|
}
|
|
}
|
|
}
|