自用的,供参考,分流是根据我自己需要设置的,删掉了很多节点,所以看起来略微有点怪,凑合看,outbounds 部份的思路是先有节点,然后用 urltest 按地区聚合,再用 selector 供选择,自有节点一个,机场节点若干个。因为我这里污染情况还好,所以也没用上 fakeip
我也是最近刚用上这个 sing-box ,自己看了下说明随便鼓捣的
{
"log": {
"level": "error",
"timestamp": true
},
"dns": {
"servers": [
{
"type": "udp",
"server": "223.5.5.5",
"detour": "direct-out",
"tag": "local"
},
{
"type": "udp",
"server": "8.8.8.8",
"detour": "Default",
"tag": "remote"
}
],
"final": "local",
"independent_cache": true,
"strategy": "ipv4_only"
},
"inbounds": [
{
"type": "mixed",
"tag": "mixed-in",
"set_system_proxy": true,
"listen": "127.0.0.1",
"listen_port": 2080
},
{
"type": "tun",
"tag": "tun-in",
"address": [
"172.18.0.1/30"
],
"auto_route": true,
"strict_route": true
}
],
"outbounds": [
{
"type": "direct",
"tag": "direct-out",
"domain_resolver": "local"
},
{
"type": "vless",
"tag": "🇺🇸 La",
"server": "",
"server_port": 443,
"domain_resolver": "remote",
"uuid": "",
"flow": "xtls-rprx-vision",
"tls": {
"enabled": true,
"server_name": "",
"utls": {
"enabled": true,
"fingerprint": "edge"
},
"reality": {
"enabled": true,
"public_key": "",
"short_id": ""
}
}
},
{
"type": "shadowsocks",
"tag": "🇭🇰 香港",
"server": "",
"server_port": 443,
"method": "2022-blake3-aes-128-gcm",
"password": "",
"tcp_fast_open": true
},
{
"type": "selector",
"tag": "Default",
"outbounds": [
"🇺🇸 La",
"🇭🇰 香港",
"🇺🇸 美国",
"🇯🇵 日本",
"🇨🇳 台湾",
"🇸🇬 新加坡"
]
},
{
"type": "selector",
"tag": "OpenAI",
"outbounds": [
"🇺🇸 La",
"🇺🇸 美国",
"🇯🇵 日本",
"🇨🇳 台湾",
"🇸🇬 新加坡"
]
},
{
"type": "selector",
"tag": "GlobalMedia",
"outbounds": [
"🇺🇸 La",
"🇭🇰 香港",
"🇺🇸 美国",
"🇯🇵 日本",
"🇨🇳 台湾",
"🇸🇬 新加坡"
]
},
{
"type": "selector",
"tag": "Steam",
"outbounds": [
"🇺🇸 La",
"🇭🇰 香港",
"🇺🇸 美国",
"🇯🇵 日本",
"🇨🇳 台湾",
"🇸🇬 新加坡"
]
},
{
"type": "selector",
"tag": "Whatsapp",
"outbounds": [
"🇺🇸 La",
"🇭🇰 香港",
"🇺🇸 美国",
"🇯🇵 日本",
"🇨🇳 台湾",
"🇸🇬 新加坡"
]
},
{
"type": "selector",
"tag": "Global",
"outbounds": [
"🇺🇸 La",
"🇭🇰 香港",
"🇺🇸 美国",
"🇯🇵 日本",
"🇨🇳 台湾",
"🇸🇬 新加坡"
]
},
{
"type": "selector",
"tag": "Final",
"outbounds": [
"direct-out",
"🇺🇸 La",
"🇭🇰 香港",
"🇺🇸 美国",
"🇯🇵 日本",
"🇨🇳 台湾",
"🇸🇬 新加坡"
]
},
{
"type": "urltest",
"tag": "🇭🇰 香港",
"outbounds": [
""
]
},
{
"type": "urltest",
"tag": "🇺🇸 美国",
"outbounds": [
""
]
},
{
"type": "urltest",
"tag": "🇯🇵 日本",
"outbounds": [
""
]
},
{
"type": "urltest",
"tag": "🇨🇳 台湾",
"outbounds": [
""
]
},
{
"type": "urltest",
"tag": "🇸🇬 新加坡",
"outbounds": [
""
]
}
],
"route": {
"rules": [
{
"action": "sniff"
},
{
"protocol": "dns",
"action": "hijack-dns"
},
{
"rule_set": [
"OpenAI"
],
"outbound": "OpenAI"
},
{
"rule_set": [
"Steam"
],
"outbound": "Steam"
},
{
"rule_set": [
"Whatsapp"
],
"outbound": "Whatsapp"
},
{
"rule_set": [
"GlobalMedia"
],
"outbound": "GlobalMedia"
},
{
"rule_set": [
"Global"
],
"outbound": "Global"
},
{
"rule_set": [
"Lan",
"Apple",
"SteamCN",
"ChinaMax"
],
"outbound": "direct-out"
}
],
"rule_set": [
{
"tag": "Lan",
"type": "remote",
"format": "binary",
"url": "
https://cdn.jsdelivr.net/gh/senshinya/singbox_ruleset@main/rule/Lan/Lan.srs",
"download_detour": "Default"
},
{
"tag": "Apple",
"type": "remote",
"format": "binary",
"url": "
https://cdn.jsdelivr.net/gh/senshinya/singbox_ruleset@main/rule/Apple/Apple.srs",
"download_detour": "Default"
},
{
"tag": "OpenAI",
"type": "remote",
"format": "binary",
"url": "
https://cdn.jsdelivr.net/gh/senshinya/singbox_ruleset@main/rule/OpenAI/OpenAI.srs",
"download_detour": "Default"
},
{
"tag": "Steam",
"type": "remote",
"format": "binary",
"url": "
https://cdn.jsdelivr.net/gh/senshinya/singbox_ruleset@main/rule/Steam/Steam.srs",
"download_detour": "Default"
},
{
"tag": "Whatsapp",
"type": "remote",
"format": "binary",
"url": "
https://cdn.jsdelivr.net/gh/senshinya/singbox_ruleset@main/rule/Whatsapp/Whatsapp.srs",
"download_detour": "Default"
},
{
"tag": "SteamCN",
"type": "remote",
"format": "binary",
"url": "
https://cdn.jsdelivr.net/gh/senshinya/singbox_ruleset@main/rule/SteamCN/SteamCN.srs",
"download_detour": "Default"
},
{
"tag": "GlobalMedia",
"type": "remote",
"format": "binary",
"url": "
https://cdn.jsdelivr.net/gh/senshinya/singbox_ruleset@main/rule/GlobalMedia/GlobalMedia.srs",
"download_detour": "Default"
},
{
"tag": "Global",
"type": "remote",
"format": "binary",
"url": "
https://cdn.jsdelivr.net/gh/senshinya/singbox_ruleset@main/rule/Global/Global.srs",
"download_detour": "Default"
},
{
"tag": "ChinaMax",
"type": "remote",
"format": "binary",
"url": "
https://cdn.jsdelivr.net/gh/senshinya/singbox_ruleset@main/rule/ChinaMax/ChinaMax.srs",
"download_detour": "Default"
}
],
"default_domain_resolver": "remote",
"auto_detect_interface": true,
"final": "Final"
},
"experimental": {
"cache_file": {
"enabled": true
}
}
}