2024-06-24 11:33:29 +03:00
|
|
|
{
|
|
|
|
"log": {
|
|
|
|
"level": "info",
|
|
|
|
"timestamp": true
|
|
|
|
},
|
|
|
|
"dns": {
|
|
|
|
"servers": [
|
|
|
|
{
|
|
|
|
"tag": "remote",
|
|
|
|
"address": "https://8.8.8.8/dns-query",
|
|
|
|
"detour": "select"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag": "local",
|
|
|
|
"address": "https://223.5.5.5/dns-query",
|
|
|
|
"detour": "direct"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag": "block",
|
|
|
|
"address": "rcode://success"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag": "fakeip",
|
|
|
|
"address": "fakeip"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"outbound": "any",
|
|
|
|
"server": "local"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"query_type": [
|
|
|
|
"A",
|
|
|
|
"AAAA"
|
|
|
|
],
|
|
|
|
"server": "fakeip",
|
|
|
|
"rewrite_ttl": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"clash_mode": "Global",
|
|
|
|
"server": "remote"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"clash_mode": "Direct",
|
|
|
|
"server": "local"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"rule_set": "geosite-geolocation-cn",
|
|
|
|
"server": "local"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"clash_mode": "Default",
|
|
|
|
"server": "remote"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "logical",
|
|
|
|
"mode": "and",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"rule_set": "geosite-geolocation-!cn",
|
|
|
|
"invert": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"rule_set": "geoip-cn"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"server": "local"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"fakeip": {
|
|
|
|
"enabled": true,
|
|
|
|
"inet4_range": "198.18.0.0/15",
|
|
|
|
"inet6_range": "fc00::/18"
|
|
|
|
},
|
|
|
|
"strategy": "prefer_ipv4",
|
|
|
|
"independent_cache": true
|
|
|
|
},
|
|
|
|
"inbounds": [
|
2024-07-01 07:45:53 +03:00
|
|
|
{
|
|
|
|
"type": "mixed",
|
|
|
|
"tag": "mixed-in",
|
|
|
|
"listen": "0.0.0.0",
|
|
|
|
"listen_port": 10172,
|
|
|
|
"tcp_fast_open":true,
|
|
|
|
"sniff": false,
|
|
|
|
"sniff_override_destination": false,
|
|
|
|
"domain_strategy": "prefer_ipv4",
|
|
|
|
"set_system_proxy": false
|
|
|
|
},
|
2024-06-24 11:33:29 +03:00
|
|
|
{
|
|
|
|
"type": "socks",
|
|
|
|
"tag": "socks-in",
|
|
|
|
"listen": "0.0.0.0",
|
|
|
|
"listen_port": 10173,
|
2024-06-26 08:19:00 +03:00
|
|
|
"tcp_fast_open":true,
|
|
|
|
"sniff": false,
|
2024-06-24 11:33:29 +03:00
|
|
|
"sniff_override_destination": false,
|
|
|
|
"domain_strategy": "prefer_ipv4"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "mixed",
|
2024-07-01 07:45:53 +03:00
|
|
|
"tag": "mixed-in2",
|
2024-06-24 11:33:29 +03:00
|
|
|
"listen": "0.0.0.0",
|
2024-07-01 07:45:53 +03:00
|
|
|
"listen_port": 10174,
|
|
|
|
"tcp_fast_open":true,
|
|
|
|
"sniff": false,
|
|
|
|
"sniff_override_destination": false,
|
|
|
|
"domain_strategy": "prefer_ipv4",
|
|
|
|
"set_system_proxy": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "mixed",
|
|
|
|
"tag": "mixed-in3",
|
|
|
|
"listen": "0.0.0.0",
|
|
|
|
"listen_port": 10175,
|
2024-06-26 08:19:00 +03:00
|
|
|
"tcp_fast_open":true,
|
|
|
|
"sniff": false,
|
2024-06-24 11:33:29 +03:00
|
|
|
"sniff_override_destination": false,
|
|
|
|
"domain_strategy": "prefer_ipv4",
|
|
|
|
"set_system_proxy": false
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"outbounds": [
|
|
|
|
{
|
|
|
|
"type": "selector",
|
|
|
|
"tag": "select",
|
|
|
|
"outbounds": [
|
|
|
|
"urltest"
|
|
|
|
],
|
|
|
|
"default": "urltest"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "urltest",
|
|
|
|
"tag": "urltest",
|
2024-06-28 05:47:11 +03:00
|
|
|
"interval": "30m",
|
|
|
|
"idle_timeout": "60m",
|
|
|
|
"interrupt_exist_connections": false,
|
2024-06-24 11:33:29 +03:00
|
|
|
"outbounds": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "direct",
|
|
|
|
"tag": "direct"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "block",
|
|
|
|
"tag": "block"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "dns",
|
|
|
|
"tag": "dns-out"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"route": {
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"type": "logical",
|
|
|
|
"mode": "or",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"protocol": "dns"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"port": 53
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"outbound": "dns-out"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"ip_is_private": true,
|
|
|
|
"outbound": "direct"
|
|
|
|
},
|
2024-07-01 07:45:53 +03:00
|
|
|
{
|
|
|
|
"inbound":[
|
|
|
|
"mixed-in2"
|
|
|
|
],
|
|
|
|
"outbound":"select2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"inbound":[
|
|
|
|
"mixed-in3"
|
|
|
|
],
|
|
|
|
"outbound":"select3"
|
|
|
|
},
|
2024-06-24 11:33:29 +03:00
|
|
|
{
|
|
|
|
"clash_mode": "Direct",
|
|
|
|
"outbound": "direct"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"clash_mode": "Global",
|
|
|
|
"outbound": "select"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "logical",
|
|
|
|
"mode": "or",
|
|
|
|
"rules": [
|
|
|
|
{
|
|
|
|
"port": 853
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"network": "udp",
|
|
|
|
"port": 443
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"protocol": "stun"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"outbound": "block"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"rule_set": [
|
|
|
|
"geoip-cn",
|
|
|
|
"geosite-geolocation-cn"
|
|
|
|
],
|
|
|
|
"outbound": "direct"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"rule_set": [
|
|
|
|
{
|
|
|
|
"type": "remote",
|
|
|
|
"tag": "geoip-cn",
|
|
|
|
"format": "binary",
|
2024-06-26 08:19:00 +03:00
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs",
|
|
|
|
"download_detour": "select"
|
2024-06-24 11:33:29 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "remote",
|
|
|
|
"tag": "geosite-geolocation-cn",
|
|
|
|
"format": "binary",
|
2024-06-26 08:19:00 +03:00
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs",
|
|
|
|
"download_detour": "select"
|
2024-06-24 11:33:29 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "remote",
|
|
|
|
"tag": "geosite-geolocation-!cn",
|
|
|
|
"format": "binary",
|
2024-06-26 08:19:00 +03:00
|
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs",
|
|
|
|
"download_detour": "select"
|
2024-06-24 11:33:29 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"auto_detect_interface": false
|
|
|
|
},
|
|
|
|
"experimental": {
|
|
|
|
"cache_file": {
|
|
|
|
"enabled": true,
|
|
|
|
"store_rdrc": true
|
|
|
|
},
|
|
|
|
"clash_api": {
|
2024-06-26 08:19:00 +03:00
|
|
|
"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"
|
2024-06-24 11:33:29 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|