Closed rifting closed 6 months ago
I am looking to change the outbound based on the SID but I am unable to find information about it. My config is:
"log": { "loglevel": "warning" }, "routing": { "domainStrategy": "IPIfNonMatch", "rules": [ { "type": "field", "domain": [ "geosite:category-ads-all" ], "outboundTag": "block" }, { "type": "field", "ip": [ "geoip:cn" ], "outboundTag": "block" } ] }, "inbounds": [ { "listen": "0.0.0.0", "port": 443, "protocol": "vless", "settings": { "clients": [ { "id": "", "flow": "xtls-rprx-vision" } ], "decryption": "none" }, "streamSettings": { "network": "tcp", "security": "reality", "realitySettings": { "show": false, "dest": "www.google.com:443", "xver": 0, "serverNames": [ "google.com" ], "privateKey": "", "minClientVer": "", "maxClientVer": "", "maxTimeDiff": 0, "shortIds": [ "" ] } }, "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ] } } ], "outbounds": [ { "protocol": "wireguard", "settings": { "secretKey": "", "address": [""], "peers": [ { "publicKey": "", "endpoint": "" } ] }, "tag": "wireguard-1" }, { "protocol": "blackhole", "tag": "block" } ], "policy": { "levels": { "0": { "handshake": 3, "connIdle": 180 } } } }
I would like to change how outbounds are routed based on the users SID. For example, use wireguard if its equal to fe and use freedom/direct if its equal to ca. I cannot find any information on this online
fe
ca
I solved my goal with routing based on email: https://xtls.github.io/en/config/routing.html#ruleobject
I am looking to change the outbound based on the SID but I am unable to find information about it. My config is:
I would like to change how outbounds are routed based on the users SID. For example, use wireguard if its equal to
fe
and use freedom/direct if its equal toca
. I cannot find any information on this online