160 lines
3.4 KiB
JSON
160 lines
3.4 KiB
JSON
{
|
|
"dns": {
|
|
"final": "local-dns",
|
|
"rules": [
|
|
{
|
|
"action": "route",
|
|
"clash_mode": "Global",
|
|
"server": "proxy-dns",
|
|
"source_ip_cidr": [
|
|
"172.19.0.0/30",
|
|
"fdfe:dcba:9876::1/126"
|
|
]
|
|
},
|
|
{
|
|
"action": "route",
|
|
"server": "proxy-dns",
|
|
"source_ip_cidr": [
|
|
"172.19.0.0/30",
|
|
"fdfe:dcba:9876::1/126"
|
|
]
|
|
}
|
|
],
|
|
"servers": [
|
|
{
|
|
"type": "https",
|
|
"server": "1.1.1.1",
|
|
"address_resolver": "local-dns",
|
|
"detour": "proxy",
|
|
"tag": "proxy-dns"
|
|
},
|
|
{
|
|
"address": "local",
|
|
"detour": "direct",
|
|
"tag": "local-dns"
|
|
}
|
|
],
|
|
"strategy": "prefer_ipv4"
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"address": [
|
|
"172.19.0.1/30",
|
|
"fdfe:dcba:9876::1/126"
|
|
],
|
|
"auto_route": true,
|
|
"endpoint_independent_nat": false,
|
|
"mtu": 9000,
|
|
"platform": {
|
|
"http_proxy": {
|
|
"enabled": true,
|
|
"server": "127.0.0.1",
|
|
"server_port": 2080
|
|
}
|
|
},
|
|
"stack": "system",
|
|
"strict_route": false,
|
|
"type": "tun"
|
|
},
|
|
{
|
|
"listen": "127.0.0.1",
|
|
"listen_port": 2080,
|
|
"type": "mixed",
|
|
"users": []
|
|
}
|
|
],
|
|
"log": {
|
|
"level": "warn",
|
|
"timestamp": true
|
|
},
|
|
"outbounds": [
|
|
{
|
|
"outbounds": [
|
|
"auto",
|
|
"direct"
|
|
],
|
|
"tag": "proxy",
|
|
"type": "selector"
|
|
},
|
|
{
|
|
"interval": "10m",
|
|
"outbounds": [],
|
|
"tag": "auto",
|
|
"tolerance": 50,
|
|
"type": "urltest",
|
|
"url": "http://www.gstatic.com/generate_204"
|
|
},
|
|
{
|
|
"tag": "direct",
|
|
"type": "direct"
|
|
}
|
|
],
|
|
"route": {
|
|
"auto_detect_interface": true,
|
|
"final": "proxy",
|
|
"rule_set": [
|
|
{
|
|
"download_detour": "direct",
|
|
"format": "binary",
|
|
"tag": "geosite-ads",
|
|
"type": "remote",
|
|
"url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/category-ads-all.srs"
|
|
},
|
|
{
|
|
"download_detour": "direct",
|
|
"format": "binary",
|
|
"tag": "geosite-private",
|
|
"type": "remote",
|
|
"url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/private.srs"
|
|
},
|
|
{
|
|
"download_detour": "direct",
|
|
"format": "binary",
|
|
"tag": "geosite-ir",
|
|
"type": "remote",
|
|
"url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/category-ir.srs"
|
|
},
|
|
{
|
|
"download_detour": "direct",
|
|
"format": "binary",
|
|
"tag": "geoip-ir",
|
|
"type": "remote",
|
|
"url": "https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/ir.srs"
|
|
}
|
|
],
|
|
"rules": [
|
|
{
|
|
"action": "sniff"
|
|
},
|
|
{
|
|
"action": "route",
|
|
"clash_mode": "Direct",
|
|
"outbound": "direct"
|
|
},
|
|
{
|
|
"action": "route",
|
|
"clash_mode": "Global",
|
|
"outbound": "proxy"
|
|
},
|
|
{
|
|
"action": "hijack-dns",
|
|
"protocol": "dns"
|
|
},
|
|
{
|
|
"action": "route",
|
|
"outbound": "direct",
|
|
"rule_set": [
|
|
"geosite-ir",
|
|
"geoip-ir",
|
|
"geosite-private"
|
|
]
|
|
},
|
|
{
|
|
"action": "reject",
|
|
"rule_set": [
|
|
"geosite-ads"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
} |