chika0801 / sing-box-examples

sing-box 配置示例
https://github.com/SagerNet/sing-box
1.65k stars 276 forks source link

ss与vm配置问题 #68

Closed wclmgcd closed 8 months ago

wclmgcd commented 8 months ago

由于clash删库,所以第一次试用sing-box,但是有两种节点配置不成功,官方的文档和大佬你的示例中都没有,都是机场的节点 1.ss 订阅是如下内容

2.vmess-ws

,以上两种格式改写是那里不对,sing-box可以运行,但节点不能使用,测速也没有显示,希望大佬指点一下。

wclmgcd commented 8 months ago

还有一个config_client_android.json配置中, { "type": "logical", "mode": "and", "rules": [ { "geosite": [ //这里 "cn" ] }, { "geoip": [ //这里 代表中国的域名和ip都已经是走直连了,下面为什么还有"geoip": "cn"这这规则, "cn" 不会重复吗? ] } ], "outbound": "direct" }, { "geosite": [ "private" //这里 ], "outbound": "direct" }, { "geoip": [ "cn", //这里 "private" ], "outbound": "direct" }

chika0801 commented 8 months ago

建议自己学吧或去它的tg群问

chika0801 commented 8 months ago

还有一个config_client_android.json配置中, { "type": "logical", "mode": "and", "rules": [ { "geosite": [ //这里 "cn" ] }, { "geoip": [ //这里 代表中国的域名和ip都已经是走直连了,下面为什么还有"geoip": "cn"这这规则, "cn" 不会重复吗? ] } ], "outbound": "direct" }, { "geosite": [ "private" //这里 ], "outbound": "direct" }, { "geoip": [ "cn", //这里 "private" ], "outbound": "direct" }

逻辑是

1 域名在geosite cn中且IP在geoip cn中,走直连 2 那么就有域名在非geosite cn中,且IP在geoip cn中,走直连

大意是这样。