Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

v2ray 的 UDP 行为需修复 #376

Closed
RPRX opened this issue Oct 31, 2020 · 8 comments
Closed

v2ray 的 UDP 行为需修复 #376

RPRX opened this issue Oct 31, 2020 · 8 comments
Labels
bug Something isn't working Welcome PR

Comments

@RPRX
Copy link
Contributor

RPRX commented Oct 31, 2020

Socks5 入站和 Freedom 出站返回 UDP 包时都扔掉了真实的源地址,需要改。

其它出入站和中间传输行为也需要同步修复。

我发现 v2ray 中一个 UDP 包基于 2048 的 buffer,简单给它加点料应该就能修复了。

修复后 v2ray 的 Shadowsocks 和 Trojan 可以实现 FullCone。

@RPRX RPRX added the bug Something isn't working label Oct 31, 2020
@RPRX
Copy link
Contributor Author

RPRX commented Oct 31, 2020

出入站绑定 UDP 端口的行为、相关路由的行为可能也需要改。

@RPRX RPRX pinned this issue Oct 31, 2020
@RPRX
Copy link
Contributor Author

RPRX commented Oct 31, 2020

需要指出,重点在于修复 v2ray 四不像的 UDP 行为 —— 现在包是能收到,但来源认错了,就会导致一些应用出奇怪的问题。

@ghost
Copy link

ghost commented Nov 1, 2020

请问VLESS和Vmess在websocket下有望支持Fullcone吗?我记得Shadowsocks是公网下直接传UDP的,个人不太看好裸传UDP的方式

@RPRX
Copy link
Contributor Author

RPRX commented Nov 1, 2020

@ClarkeCheng

目前 VLESS 测试版、VMess 不支持 FullCone,Trojan、SS 支持 FullCone,但 v2ray 的不支持,需修复

VLESS 正式版默认是 UDP 聚合隧道,有最低延迟,且可以自定义 NAT 行为,可以实现 FullCone

#112 (comment)

@ghost
Copy link

ghost commented Nov 1, 2020

能否考虑修改 Mux 使之能够支持 FullCone ?
这样可以在 FullCone 的同时避免对 VMess/Mux 用户造成影响。

@RPRX
Copy link
Contributor Author

RPRX commented Nov 1, 2020

@JimhHan

似乎无法在不引入 breaking change 的情况下修复 Mux 的 UDP 行为

@1265578519
Copy link

Socks5提过,使用udp,,ip地址变成0.0.0.0

@Greeed-islanl
Copy link

Greeed-islanl commented Dec 20, 2020

4.33的版本NAT很容易跳UDP block
正常访问HTTP 很正常

@RPRX RPRX unpinned this issue Dec 23, 2020
@RPRX RPRX closed this as completed Mar 30, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working Welcome PR
Projects
None yet
Development

No branches or pull requests

3 participants