Skip to content

Restore "legacy reverse" - #6082

Closed
patterniha wants to merge 1 commit into
mainfrom
legacy-reverse-come-back
Closed

patterniha wants to merge 1 commit into
mainfrom
legacy-reverse-come-back

Conversation

@patterniha

Copy link
Copy Markdown
Collaborator

One of the advantages of legacy-reverse-code was that you could connect to an portal-inbound from two different bridge-servers, then users could choose which one to connect (after vless-route) or use them for load-balance.

this is because you could define different domain-name for each bridge, and corresponding portal-domain-name at portal-side.

but now we have only one outbound-reverse-tag at portal-side, and you can't do these.

///

i also remember that i used N bridge in one config (because it is list you can define as many as you want, and each one operates independently) and then used non-mux-transport for bridge-to-portal outbound, and then I connected each of my N users to one of the N bridges in portal side (or two-to-one if the number of users is greater), so each user used distinct TCP-connection and they did not affect each other.

///

but vless-reverse is very limited (one-bridge, one-tag) and you can't use vless-route, load-balance, distinc-users-connections, ...

One of the advantages of legacy-reverse-code was that you could connect to an portal-inbound from two different bridge-servers, then users could choose which one to connect (after vless-route) or use them for load-balance.

this is because you could define different domain-name for each bridge, and corresponding portal-domain-name at portal-side.

but now we have only one outbound-reverse-tag at portal-side, and you can't do these.

///

i also remember that i used N bridge in one config (because it is list you can define as many as you want, and each one operates independently) and then used non-mux-transport for bridge-to-portal outbound, and then I connected each of my N users to one of the N bridges in portal side (or two-to-one if the number of users is greater), so each user used distinct TCP-connection and they did not affect each other.

///

but vless-reverse is very limited (one-bridge, one-tag) and you can't use vless-route, load-balance, distinc-users-connections, ...
@RPRX

RPRX commented May 5, 2026

Copy link
Copy Markdown
Member

but now we have only one outbound-reverse-tag at portal-side, and you can't do these.

公网端的 VLESS 入站写两个 UUID 不就能写两个 outbound-tag 了? 其它 UUID 的 vless-route、load-balance 就能用了

distinct-users-connections 也是同理,内网端多写几个 VLESS 出站不就有 operates independently 的 connections 了吗

内网端 VLESS 出站的 reverse as inbound 的 tag 是可以重复的,就算不能重复,路由的 inboundTag 那不是个数组嘛


忘了还有 load-balance 这茬,看来 VLESS 内网端通过两种方式同时连上公网端时,公网端的选择策略可以鸽一下了

不过说起 distinct-users-connections 这个需求,倒也可以直接实现一下,而无需内网端多写几个 VLESS 出站


Legacy reverse 配置太复杂且已经比 VLESS Reverse Proxy 差太多了,后者有传递公网端 source IP、port 到内网端,以及内网端 sniffing,后者还有默认安全策略,比如公网端会阻止同一个 UUID 被同时用于正向代理,以及内网端需手动放行 IP 范围

@RPRX RPRX closed this May 5, 2026
@patterniha

Copy link
Copy Markdown
Collaborator Author
"clients": [
    {
      "id": "5783a3e7-e373-51cd-8642-c83782b807c5",
      "level": 0,
      "email": "[email protected]",
      "flow": "xtls-rprx-vision",
      "reverse": {}
    }

yes, "reverse" is inside clients-config, I didn't pay attention to this and I saw the vless-outbound-config :)

@RPRX

RPRX commented May 6, 2026 •

Copy link
Copy Markdown
Member

@patterniha 你有空针对 #6055 (comment) 开个 PR 吗,先 alias 就行,但比如 VLESS 配置解析的报错用词那些也要改一下

@Fangliding

Copy link
Copy Markdown
Member

这种小地方也加alias啊。。。

@RPRX

RPRX commented May 6, 2026

Copy link
Copy Markdown
Member

@Fangliding 就比如你光看上面那一段配置能猜对是属于服务端还是客户端的吗

@Fangliding

Fangliding commented May 6, 2026 •

Copy link
Copy Markdown
Member

在客户端配置server 对称过去不就是在服务端配置client 我觉得没啥问题的 主要是这么改没收益 像是 reality target 改了这么久了 除了造成交流和文档问题也没啥进展 这里改成users最多就是代码里多了几坨alias(几个入站) 然后文档改名 有人照新版写然后旧版爆炸 写脚本的写面板的为了兼容老版本也不会去用users

@patterniha
patterniha deleted the legacy-reverse-come-back branch May 6, 2026 01:37
@RPRX

RPRX commented May 6, 2026

Copy link
Copy Markdown
Member

那是你知道 clients 是写入站里的,不知道的单独看这一段谁能猜对啊,这些 alias 主要就是让新配置看起来更舒服

改天放个 2028.1.1 开始只接受新配置的 time.After(),很快就迁移完了,又不像隔壁天天把广泛使用的旧配置直接给炸了

@Meo597

Meo597 commented May 6, 2026

Copy link
Copy Markdown
Collaborator

文档也改好了
倒逼发版了

@RPRX

RPRX commented May 6, 2026

Copy link
Copy Markdown
Member

@Meo597 #6083 (comment)

在客户端配置server 对称过去不就是在客户端配置client

刚看到细节 @Fangliding 潜意识表述错了,我都说原命名自带“绕晕”属性了吧

@Fangliding

Copy link
Copy Markdown
Member

敲错了而已 在服务端配置client

@RPRX

RPRX commented May 6, 2026

Copy link
Copy Markdown
Member

事实就是很迷,你看 #6083 的改动的话会发现代码里基本上本来就叫 users,结果配置里硬生生写成 clients

@RPRX

RPRX commented May 6, 2026

Copy link
Copy Markdown
Member

当初 VR 搞成这样可能是因为客户端 vnext 有 users,所以服务端用不同的命名来区分,Xray 把前者扬了所以后者可以正常了

@Fangliding

Copy link
Copy Markdown
Member

这种事情还不多吗 像是kcp里window和buferr分不清 这种已经是错误了 user和client只是命名成这样了而已 说白了我只是希望这种问题不算大的东西少点爆炸 毕竟reality password和target的事摆在那

@Meo597

Meo597 commented May 6, 2026

Copy link
Copy Markdown
Collaborator

socks http 那边怎么说啊,pb 我试着改了一下,影响的东西太多了
改完之后 socksuser 和 protocol.user 傻傻分不清
最多在 infra alias 算了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants