diff --git a/docs/config/inbounds/vless.md b/docs/config/inbounds/vless.md index a830acb..5b5986b 100644 --- a/docs/config/inbounds/vless.md +++ b/docs/config/inbounds/vless.md @@ -17,7 +17,8 @@ VLESS 是一个无状态的轻量传输协议,它分为入站和出站两部 "id": "5783a3e7-e373-51cd-8642-c83782b807c5", "level": 0, "email": "love@xray.com", - "flow": "xtls-rprx-vision" + "flow": "xtls-rprx-vision", + "reverse": {} } ], "decryption": "none", @@ -55,7 +56,8 @@ fallbacks 的具体配置请点击 [FallbackObject](../features/fallback.md#fall "id": "5783a3e7-e373-51cd-8642-c83782b807c5", "level": 0, "email": "love@xray.com", - "flow": "xtls-rprx-vision" + "flow": "xtls-rprx-vision", + "reverse" {} } ``` @@ -93,3 +95,21 @@ level 的值, 对应 [policy](../policy.md#policyobject) 中 `level` 的值。 - `xtls-rprx-vision`:使用新 XTLS 模式 包含内层握手随机填充 此外,目前 XTLS 仅支持 TCP+TLS/Reality + +> `reverse`: struct + +VLESS 极简反向代理配置,和核心内部自带的的通用反向代理作用相同但是配置更简单。 + +存在此项代表来自该用户的连接可以被用作可以用于建立反向代理隧道。 + +当前写法 + +```json +"reverse": { + "tag": "r-outbound" +} +``` + +`tag` 为该反向代理的出站代理 tag. 使用路由将流量路由到该出站将会透过反向代理转发到连入的客户端路由系统中(客户端配置详见 VLESS 出站). + +当有多个不同的连接(可以来自不同的设备)接入时核心会对每个请求随机选择一条派发反向代理数据。 \ No newline at end of file diff --git a/docs/config/outbounds/vless.md b/docs/config/outbounds/vless.md index af1374a..6521c85 100644 --- a/docs/config/outbounds/vless.md +++ b/docs/config/outbounds/vless.md @@ -44,7 +44,8 @@ VLESS 是一个无状态的轻量传输协议,它分为入站和出站两部 "id": "5783a3e7-e373-51cd-8642-c83782b807c5", "encryption": "none", "flow": "xtls-rprx-vision", - "level": 0 + "level": 0, + "reverse": {} } ] } @@ -69,7 +70,8 @@ VLESS 是一个无状态的轻量传输协议,它分为入站和出站两部 "id": "5783a3e7-e373-51cd-8642-c83782b807c5", "encryption": "none", "flow": "xtls-rprx-vision", - "level": 0 + "level": 0, + "reverse" {} } ``` @@ -132,3 +134,21 @@ Splice 模式的的使用限制: 用户等级,连接会使用这个用户等级对应的 [本地策略](../policy.md#levelpolicyobject)。 level 的值, 对应 [policy](../policy.md#policyobject) 中 `level` 的值。 如不指定, 默认为 0。 + +> `reverse`: struct + +VLESS 极简反向代理配置,和核心内部自带的的通用反向代理作用相同但是配置更简单。 + +存在此项代表该出站可以被用作 VLESS 反向代理出站,其会自动向服务端建立连接注册反向代理隧道。 + +当前写法 + +```json +"reverse": { + "tag": "r-inbound" +} +``` + +`tag` 为该反向代理的入站代理 tag. 当服务端派发反向代理请求时会从使用这个 tag 的入站进入路由系统,使用路由系统将其路由到你需要的出站。 + +使用的 UUID 需要是服务端同样配置了 reverse 的 UUID(详见 VLESS 入站). \ No newline at end of file