xray 而不是 v2ray 的话,这个。
https://github.com/XTLS/Xray-core/pull/5101client.json
{
"log": {
"loglevel": "info"
},
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
},
{
"protocol": "vless",
"settings": {
"address": "hk1",
"port": 54321,
"id": "cn-sh",
"flow": "xtls-rprx-vision",
"reverse": {
"tag": "r-in"
},
"encryption": "mlkem768x25519plus.native.0rtt"
}
},
{
"protocol": "vless",
"settings": {
"address": "sg1",
"port": 54321,
"id": "cn-sh",
"flow": "xtls-rprx-vision",
"reverse": {
"tag": "r-in"
},
"encryption": "mlkem768x25519plus.native.0rtt"
}
}
],
"routing": {
"rules": [
{
"type": "field",
"inboundTag": [
"r-in"
],
"outboundTag": "direct"
}
]
}
}
server.json
{
"log": {
"loglevel": "info"
},
"inbounds": [
{
"tag": "reverse-proxy-out",
"listen": "::",
"port": 56789,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "r-gd",
"email": "r-gd"
},
{
"id": "r-sh",
"email": "r-sh"
}
],
"decryption": "none"
}
},
{
"listen": "::",
"port": 54321,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "cn-gd",
"flow": "xtls-rprx-vision",
"reverse": {
"tag": "gd-out"
}
},
{
"id": "cn-sh",
"flow": "xtls-rprx-vision",
"reverse": {
"tag": "sh-out"
}
}
],
"decryption": "mlkem768x25519plus.native.600s"
}
}
],
"outbounds": [
{
"protocol": "freedom",
"tag": "direct"
}
],
"routing": {
"rules": [
{
"user": ["r-gd"],
"outboundTag": "gd-out"
},
{
"user": ["r-sh"],
"outboundTag": "sh-out"
}
]
}
}