You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Please stop making anti-freedom restrictions on xray, and allow plaintext VLESS #6671
I use xray in a network bonding and a normal proxy use cases, not stealthy censorship circumvention. I do not need to use encryption at all. I won't complicate my setup with encryption as I would have to change my implementations of VLESS outside of xray. I prefer VLESS with XUDP to SOCKS with XUDP, as I already have a javascript implementation of the former that I can deploy to a javascript hosting provider. The limitation with recent xray versions prevents me from using xray for my use cases.
Please stop this madness. This programme is supposed to promote freedom. Do not remove WebSockets, do not remove allowedInsecure, and do not disallow plaintext VLESS.
@Fangliding No, I can't just fork the project. I'm shipping my solution on OpenWrt, I can't just ship a modified custom version. You're making this extremely complicated for me to deal with. Instead of that, why don't you stop following this restrictive policy on this project? And no, if I were to enable encryption on the embedded devices I run xray on, it would greatly reduce the throughput I get. Regarding WebSockets, it says on the logs that it may be removed. If it won't be removed, then remove that part of the log please.
I was going to become a huge sponsor of this project, but as things stand, I can't even use this project anymore.
This is insane. I will not run two xray instances to bypass this ridiculous restriction. I ship my solution on embedded hardware. I don't have the memory or the processing power to run two xray instances, let alone run an encrypted connection.
On top of that, your reasoning for the restriction is faulty in the first place. Using a public IP address does not necessarily mean the link is not trusted or the network is a public one.
Keeping this restriction is a terrible decision and it absolutely has nothing to do with complying with "mandatory security standards". You are making a CLI-tool dumber, and you're taking away the freedom to configure the programme as we want. Sit down and think for a second how what you're doing is any different than CCP enforcing GFW on people because people must be "protected from the evils of western internet".
This will definitely increase the usage of processing and memory. Whether or not the increase in resource usage will be negligible, I am yet to tell.
Running xray on an embedded device with limited resources is not an edge case. Wanting to avoid encryption due to this reason is not an edge case. And, outside of China, using unencrypted protocols is not an edge case. SOCKS is a great example.
You know what you could do? Add an explicit configuration option to allow the use of plaintext VLESS. Because this security measure can be bypassed by a tunnel inbound anyway. So you could just allow it to be used without the additional routing process because of the workaround which will use more resources.
如果我没记错的话 Tunnel in + Freedom out 会自动触发 Splice,总之你先试试,iptables 也不是不行
Isn't that still extra usage? You have the resources used for VLESS along with resources used for tunnel in + freedom out, even with splice involved on the tunnel in + freedom out part.
其实 Socks 也能开 XUDP,你也可以试试
But there's no guarantee you won't remove SOCKS from xray because it's a plaintext protocol. I can't play this game of cat and mouse; I need a guarantee that a protocol I will settle on will be maintained. This will also force me to make a javascript implementation for SOCKS with XUDP, as I only have one for VLESS with XUDP.
But I'd still like a configuration option to allow plaintext VLESS, as I want to ship my solution on networks where SOCKS is blocked but plaintext VLESS is not cared about.
Chippin' in on the side of plain VLESS folks: it's useful as a dialerProxy or as a loopback. Sometimes you need to get some vless-only functionality from another protocol and then it's quite useful to use plain VLESS with next to 0 overhead as a dialerProxy or to connect to a vless inbound.
For example, you may want to pass packets between Linux and Windows VMs on a single machine and preserve source IPs doing so. Of course, you can coerce nginx into this, but if you're doing that to later shove the data into VLESS Reality or Wireguard, then it's extremely handy to use plain VLESS as a data pipe.
Or another example: before Xray fixed sniffing in Wireguard, I used to route wireguard inbound into vless outbound which then would connect to vless inbound and there I'd have sniffing and the whole buffet and was surprised how well this worked out. I'd imagine it can't work out so well with additional layer of encryption. Why, to loopback via localhost? No need, just let me have my plaintext VLESS, I'm a big boy and I know when I need it.
Oh, and one more thing: the state of user management on SOCKS leaves a lot to be desired, and, IIRC, user management through API just doesn't exist, so SOCKS is no good for cases when you want authentication, but no data encryption.
I can really keep going on, the REALITY of the situation is that there is no drop-in replacement for VLESS right now, because VLESS is the most featureful protocol of Xray-core — and that's not a bad thing because VLESS is truly a great protocol for most usecases. So there is no need to cripple VLESS functionality because some people are bad with their security — you can't outsmart a dumb person, he's been dumb for way longer and will find a way to keep going. He'll set uuid to all zeroes, reuse stale/compromised certs, just keep using an ancient version of the Core or find some other way. Let folks who know how to use the power VLESS provides have plaintext VLESS.
@RPRX So you do not want to add an explicit config option to allow plaintext VLESS because it could be abused. And then you say the tunnel in + freedom out method to use plaintext VLESS will be allowed. So abuse is still possible.
What about, after having heard to my and @needthisforctf's use case, give us what we ask and allow us to use plaintext VLESS without any potential performance hit that tunnel in + freedom out would cause?
Activity
Fangliding commentedon Aug 23, 2026
WebSocket 不会被移除
VLESS 自用可以开enc 一般服务商也支持HTTPS用HTTPS就行了 实在不行只能自己fork了
arinc9 commentedon Aug 23, 2026
@Fangliding No, I can't just fork the project. I'm shipping my solution on OpenWrt, I can't just ship a modified custom version. You're making this extremely complicated for me to deal with. Instead of that, why don't you stop following this restrictive policy on this project? And no, if I were to enable encryption on the embedded devices I run xray on, it would greatly reduce the throughput I get. Regarding WebSockets, it says on the logs that it may be removed. If it won't be removed, then remove that part of the log please.
I was going to become a huge sponsor of this project, but as things stand, I can't even use this project anymore.
Fangliding commentedon Aug 23, 2026
I'm sorry to hear that, I’m not the people who made this restriction(I strongly oppose this) and get nothing form the repository sponsor.
arinc9 commentedon Aug 23, 2026
@Fangliding can you please tag the decision-makers of this project here? This change is going to be a huge headache for me if this restriction stands.
arinc9 commentedon Aug 24, 2026
@Meo597 @OfficialKatana @RPRX please take a look at this thread.
arinc9 commentedon Aug 24, 2026
@Fangliding please reopen this issue. This is a valid problem.
RPRX commentedon Aug 25, 2026
我绝对不会为了非常少数人(甚至可能仅你一人)的边缘使用场景而降低已经使绝大多数人受益的强制的安全标准
如果你实在需要公网明文出站,workaround 参考 #6600 (comment) ,这个方法以后也不会被限制,
毕竟你还可以开两个 Xray可以来点实际的,但无论有没有赞助,都不会更改我的决定arinc9 commentedon Aug 25, 2026
This is insane. I will not run two xray instances to bypass this ridiculous restriction. I ship my solution on embedded hardware. I don't have the memory or the processing power to run two xray instances, let alone run an encrypted connection.
On top of that, your reasoning for the restriction is faulty in the first place. Using a public IP address does not necessarily mean the link is not trusted or the network is a public one.
Keeping this restriction is a terrible decision and it absolutely has nothing to do with complying with "mandatory security standards". You are making a CLI-tool dumber, and you're taking away the freedom to configure the programme as we want. Sit down and think for a second how what you're doing is any different than CCP enforcing GFW on people because people must be "protected from the evils of western internet".
RPRX commentedon Aug 25, 2026
“开两个 Xray”只是举个例子以说明“我限制不了 workaround”,其实你只需要开一个 Xray 进程,应该会自动触发 Splice,或者使用 iptables 或能 Splice 转发流量的迷你程序,你可以先试下这些方案,实在不行就只能换软件了
你仔细想想,你现在是在要求整个大型项目为你极端边缘的使用场景而牺牲安全标准,这才是 insane
我希望尽可能地提升加密安全性,现行做法虽然可能不完美,但(如果)存在瑕疵并不是撤掉它的理由
GUI 不受我们控制,它们不会主动施加这些限制,就像当年 YouTuber 教公网明文 HTTP 面板一样,只能从源头解决问题,并且既然我能以直接改 core 代码的方式解决问题,我也没兴趣和精力去敦促层出不穷的各家 GUI
同样,我没有兴趣和精力重复反驳当年已经反驳过的“和 GFW 一样”等诡辩,再有这种言论就 block 了
arinc9 commentedon Aug 25, 2026
This will definitely increase the usage of processing and memory. Whether or not the increase in resource usage will be negligible, I am yet to tell.
Running xray on an embedded device with limited resources is not an edge case. Wanting to avoid encryption due to this reason is not an edge case. And, outside of China, using unencrypted protocols is not an edge case. SOCKS is a great example.
You know what you could do? Add an explicit configuration option to allow the use of plaintext VLESS. Because this security measure can be bypassed by a tunnel inbound anyway. So you could just allow it to be used without the additional routing process because of the workaround which will use more resources.
RPRX commentedon Aug 25, 2026
如果我没记错的话 Tunnel in + Freedom out 会自动触发 Splice,总之你先试试,iptables 也不是不行
这还算有配置难度,而过于简单的 explicit configuration option 容易触发滥用,
就像 minClientVer我大概猜到你那个场景了,只想以最低成本改变“本地 IP”,其实 Socks 也能开 XUDP,你也可以试试
arinc9 commentedon Aug 25, 2026
Isn't that still extra usage? You have the resources used for VLESS along with resources used for tunnel in + freedom out, even with splice involved on the tunnel in + freedom out part.
But there's no guarantee you won't remove SOCKS from xray because it's a plaintext protocol. I can't play this game of cat and mouse; I need a guarantee that a protocol I will settle on will be maintained. This will also force me to make a javascript implementation for SOCKS with XUDP, as I only have one for VLESS with XUDP.
RPRX commentedon Aug 25, 2026
Socks 不会被施加类似的限制,毕竟 VLESS 还是一个以反审查为主的协议,所以它所适用的规则和 Socks 不同,主因还是 Socks 5 没有 UoT,另外它的 TCP 会多一个 RTT,但我可以给 Socks 加个选项减掉它
arinc9 commentedon Aug 25, 2026
I'd really appreciate it if you did that. Thank you.
arinc9 commentedon Aug 25, 2026
But I'd still like a configuration option to allow plaintext VLESS, as I want to ship my solution on networks where SOCKS is blocked but plaintext VLESS is not cared about.
RPRX commentedon Aug 25, 2026
那样还是太容易被滥用了,你可以给 Socks 加个 Finalmask 以避免被识别为原版 Socks,它也会有一些开销但可能和 Splice 差不了多少,我建议你先测一下 Splice 对极端吞吐量的影响,或许在可接受范围内
p0lyfusion commentedon Aug 25, 2026
Chippin' in on the side of plain VLESS folks: it's useful as a dialerProxy or as a loopback. Sometimes you need to get some vless-only functionality from another protocol and then it's quite useful to use plain VLESS with next to 0 overhead as a dialerProxy or to connect to a vless inbound.
For example, you may want to pass packets between Linux and Windows VMs on a single machine and preserve source IPs doing so. Of course, you can coerce nginx into this, but if you're doing that to later shove the data into VLESS Reality or Wireguard, then it's extremely handy to use plain VLESS as a data pipe.
Or another example: before Xray fixed sniffing in Wireguard, I used to route wireguard inbound into vless outbound which then would connect to vless inbound and there I'd have sniffing and the whole buffet and was surprised how well this worked out. I'd imagine it can't work out so well with additional layer of encryption. Why, to loopback via localhost? No need, just let me have my plaintext VLESS, I'm a big boy and I know when I need it.
RPRX commentedon Aug 25, 2026
我刚刚都忘了还有 dialerProxy 这回事,当然它也是可以用的,开销大概介于 Finalmask 和 Splice 之间p0lyfusion commentedon Aug 25, 2026
Oh, and one more thing: the state of user management on SOCKS leaves a lot to be desired, and, IIRC, user management through API just doesn't exist, so SOCKS is no good for cases when you want authentication, but no data encryption.
I can really keep going on, the REALITY of the situation is that there is no drop-in replacement for VLESS right now, because VLESS is the most featureful protocol of Xray-core — and that's not a bad thing because VLESS is truly a great protocol for most usecases. So there is no need to cripple VLESS functionality because some people are bad with their security — you can't outsmart a dumb person, he's been dumb for way longer and will find a way to keep going. He'll set uuid to all zeroes, reuse stale/compromised certs, just keep using an ancient version of the Core or find some other way. Let folks who know how to use the power VLESS provides have plaintext VLESS.
arinc9 commentedon Aug 27, 2026
@RPRX So you do not want to add an explicit config option to allow plaintext VLESS because it could be abused. And then you say the tunnel in + freedom out method to use plaintext VLESS will be allowed. So abuse is still possible.
What about, after having heard to my and @needthisforctf's use case, give us what we ask and allow us to use plaintext VLESS without any potential performance hit that tunnel in + freedom out would cause?
RPRX commentedon Aug 27, 2026
@arinc9 目前来看 dialerProxy 最简单的办法,消耗也不大,也有一定门槛而不是“加个选项就允许了”