在rules中如何配置参数可以为相同user分流到不同的outboundTag #4997
Unanswered
xinyangme001
asked this question in
Q&A
Replies: 2 comments
-
我也想知道😭 |
Beta Was this translation helpful? Give feedback.
0 replies
-
搞定了,vless的每个client的id用email生成uuid,然后在rules中用user里面填上email来做分流。。。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
1、一个用户A,其id为:3358c29d-bce5-4d71-ac1c-00adc32a4106,其邮箱为:Shadowsocks_0.0.0.0_10086|[email protected]|10000001
2、线路A:直连节点A;线路B:节点A→节点B
3、将以上两条线路都分配给用户A
4、在客户端切换线路时发现,出站都是走了outboundTag = "节点B_IP-proxy-3358c29d-bce5-4d71-ac1c-00adc32a4106-Shadowsocks"。
想询问在服务端的rules或者客户端中如何配置,可以使得分流到指定的outboundTag;还是如果按照这样的线路分配后,因没有唯一的特性才导致无法分流到指定的outboundTag
5、生成的服务端配置信息如下
{ "routing": { "rules": [ { "inboundTag": [ "Shadowsocks_0.0.0.0_10086" ], "outboundTag": "节点B_IP-proxy-3358c29d-bce5-4d71-ac1c-00adc32a4106-Shadowsocks", "ruleTag": "Shadowsocks_0.0.0.0_10086&节点B_IP-proxy-3358c29d-bce5-4d71-ac1c-00adc32a4106", "type": "field", "user": [ "Shadowsocks_0.0.0.0_10086|[email protected]|10000001" ] }, { "inboundTag": [ "Shadowsocks_0.0.0.0_10086" ], "outboundTag": "direct-Shadowsocks", "ruleTag": "Shadowsocks_0.0.0.0_10086&direct", "type": "field", "user": [ "Shadowsocks_0.0.0.0_10086|[email protected]|10000001" ] } ] }, "inbounds": [ { "listen": "0.0.0.0", "port": 10086, "protocol": "shadowsocks", "settings": { "clients": [ { "email": "Shadowsocks_0.0.0.0_24514|[email protected]|10000001", "method": "aes-256-gcm", "password": "3358c29d-bce5-4d71-ac1c-00adc32a4106" } ], "network": "tcp,udp" }, "streamSettings": { "network": "raw", "security": "tls", "tlsSettings": { "certificates": [ { "certificateFile": "/path/to/test2.xxx.com.cer", "keyFile": "/path/to/test2.xxx.com.key" } ] } }, "tag": "Shadowsocks_0.0.0.0_10086", "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ] } } ], "outbounds": [ { "protocol": "shadowsocks", "settings": { "servers": [ { "address": "节点B_IP", "email": "Shadowsocks_0.0.0.0_24512|[email protected]|10000001", "method": "aes-256-gcm", "password": "3358c29d-bce5-4d71-ac1c-00adc32a4106", "port": 24512 } ], "vnext": [] }, "streamSettings": { "network": "raw", "security": "tls", "tlsSettings": { "fingerprint": "randomized", "serverName": "test1.xxx.com" } }, "tag": "节点B_IP-proxy-3358c29d-bce5-4d71-ac1c-00adc32a4106-Shadowsocks" }, { "protocol": "freedom", "tag": "direct-Shadowsocks" }, { "protocol": "blackhole", "tag": "block-Shadowsocks" } ] }
6、客户端的配置信息如下
{ "log": { "loglevel": "debug" }, "inbounds": [ { "protocol": "socks", "port": 11111, "listen": "::", "settings": { "auth": "noauth", "udp": true }, "tag": "inbound-12347" } ], "outbounds": [ { "tag": "3358c29d-bce5-4d71-ac1c-00adc32a4106-节点A_IP-proxy", "protocol": "shadowsocks", "settings": { "servers": [ { "address": "节点A_IP", "port": 10086, "method": "aes-256-gcm", "password": "3358c29d-bce5-4d71-ac1c-00adc32a4106" } ] }, "streamSettings": { "network": "tcp", "security": "tls", "tlsSettings": { "fingerprint": "randomized", "serverName": "test2.xxx.com" } } } ] }
Beta Was this translation helpful? Give feedback.
All reactions