153 lines
3.2 KiB
JSON
153 lines
3.2 KiB
JSON
{
|
|
"log": {
|
|
"level": "error",
|
|
"timestamp": true
|
|
},
|
|
|
|
"dns": {
|
|
"servers": [
|
|
{
|
|
"tag": "dns_proxy",
|
|
"address": "https://1.1.1.1/dns-query",
|
|
"address_resolver": "dns_direct",
|
|
"detour": "proxy"
|
|
},
|
|
{
|
|
"tag": "dns_direct",
|
|
"address": "223.5.5.5",
|
|
"detour": "direct"
|
|
},
|
|
{
|
|
"tag": "dns_block",
|
|
"address": "rcode://success"
|
|
}
|
|
],
|
|
"rules": [
|
|
{
|
|
"outbound": "any",
|
|
"server": "dns_direct"
|
|
},
|
|
{
|
|
"rule_set": "geosite-cn",
|
|
"server": "dns_direct"
|
|
},
|
|
{
|
|
"rule_set": "geosite-category-ads-all",
|
|
"server": "dns_block",
|
|
"disable_cache": true
|
|
}
|
|
],
|
|
"final": "dns_proxy",
|
|
"independent_cache": true
|
|
},
|
|
|
|
"inbounds": [
|
|
{
|
|
"tag": "tproxy_in",
|
|
"type": "tproxy",
|
|
"listen": "0.0.0.0",
|
|
"listen_port": 7893,
|
|
"sniff": true,
|
|
"sniff_override_destination": true
|
|
}
|
|
],
|
|
|
|
"outbounds": [
|
|
{
|
|
"tag": "proxy",
|
|
"type": "vless",
|
|
"server": "rm.impromxx.com",
|
|
"server_port": 2036,
|
|
"uuid": "0ad7d003-8e79-4529-8b55-09610947c09b",
|
|
"tls": {
|
|
"enabled": true,
|
|
"server_name": "baidu.stickrouter.com",
|
|
"utls": {
|
|
"enabled": true,
|
|
"fingerprint": "chrome"
|
|
}
|
|
},
|
|
"transport": {
|
|
"type": "ws",
|
|
"path": "/stickrouter",
|
|
"headers": {
|
|
"Host": "baidu.stickrouter.com"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"tag": "direct",
|
|
"type": "direct"
|
|
},
|
|
{
|
|
"tag": "block",
|
|
"type": "block"
|
|
},
|
|
{
|
|
"tag": "dns_out",
|
|
"type": "dns"
|
|
},
|
|
{
|
|
"tag": "auto",
|
|
"type": "urltest",
|
|
"outbounds": ["proxy"],
|
|
"url": "https://www.gstatic.com/generate_204",
|
|
"interval": "30s",
|
|
"tolerance": 50
|
|
}
|
|
],
|
|
|
|
"route": {
|
|
"rules": [
|
|
{
|
|
"rule_set": "geosite-category-ads-all",
|
|
"outbound": "block"
|
|
},
|
|
{
|
|
"protocol": "dns",
|
|
"outbound": "dns_out"
|
|
},
|
|
{
|
|
"ip_is_private": true,
|
|
"outbound": "direct"
|
|
},
|
|
{
|
|
"rule_set": "geosite-cn",
|
|
"outbound": "direct"
|
|
},
|
|
{
|
|
"rule_set": "geoip-cn",
|
|
"outbound": "direct"
|
|
}
|
|
],
|
|
"rule_set": [
|
|
{
|
|
"tag": "geosite-cn",
|
|
"type": "remote",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-cn.srs",
|
|
"download_detour": "proxy",
|
|
"update_interval": "7d"
|
|
},
|
|
{
|
|
"tag": "geosite-category-ads-all",
|
|
"type": "remote",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-category-ads-all.srs",
|
|
"download_detour": "proxy",
|
|
"update_interval": "7d"
|
|
},
|
|
{
|
|
"tag": "geoip-cn",
|
|
"type": "remote",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs",
|
|
"download_detour": "proxy",
|
|
"update_interval": "7d"
|
|
}
|
|
],
|
|
"final": "auto",
|
|
"auto_detect_interface": true
|
|
}
|
|
}
|