sing-box 分流配置文件
阿里香港的cdt用起来真的很爽,唯一的缺陷就是用不了gpt。不过 sing-box
支持分流,看着文档配了下gpt的分流就彻底爽用了。
{
"log": {
"level": "warn",
"timestamp": true
},
"inbounds": [
{
"type": "vless",
"tag": "vless-in",
"listen": "::",
"listen_port": 443,
"sniff": true,
"sniff_override_destination": true,
"sniff_timeout": "300ms",
"domain_strategy": "prefer_ipv4",
"users": [
{
"name": "",
"uuid": "",
"flow": "xtls-rprx-vision"
}
],
"tls": {
"enabled": true,
"server_name": "",
"reality": {
"enabled": true,
"handshake": {
"server": "",
"server_port": 443
},
"private_key": "",
"short_id": ""
}
}
}
],
"outbounds": [
{
"type": "direct",
"tag": "direct-out"
},
{
"type": "vless",
"tag": "us-out",
"server": "",
"server_port": 8443,
"uuid": "",
"flow": "xtls-rprx-vision",
"network": "tcp",
"tls": {
"enabled": true,
"server_name": "",
"utls": {
"enabled": true,
"fingerprint": "chrome"
},
"reality": {
"enabled": true,
"public_key": "",
"short_id": ""
}
}
}
],
"route": {
"rules": [
{
"rule_set": [
"geosite-claude",
"geosite-openai",
"geosite-google-gemini"
],
"outbound": "us-out"
}
],
"rule_set": [
{
"type": "remote",
"tag": "geosite-openai",
"format": "binary",
"url": "https://github.com/SagerNet/sing-geosite/raw/rule-set/geosite-openai.srs",
"download_detour": "direct-out"
},
{
"type": "remote",
"tag": "geosite-google-gemini",
"format": "binary",
"url": "https://github.com/SagerNet/sing-geosite/raw/rule-set/geosite-google-gemini.srs",
"download_detour": "direct-out"
},
{
"type": "remote",
"tag": "geosite-claude",
"format": "binary",
"url": "https://github.com/SagerNet/sing-geosite/raw/refs/heads/rule-set/geosite-anthropic.srs",
"download_detour": "direct-out"
}
],
"final": "direct-out"
}
}
看看其他吧