Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

documentation: tips on SOCKS UDP #974

Closed
wants to merge 1 commit into from
Closed

documentation: tips on SOCKS UDP #974

wants to merge 1 commit into from

Conversation

monsoon235
Copy link

Tips on the difference of SOCKS UDP support between sing-box and other popular proxy programs

对于 UDP 的支持遵照 RFC 1928,将使用随机可用的 UDP 端口,而非其他一些流行代理程序中使用的固定 UDP 端口

The support for UDP follows RFC 1928, will use random available UDP ports, as opposed to other popular proxy programs which use fixed UDP port.

@nekohasekai
Copy link
Member

此行为是正确的,并且对用户透明,没有写在文档的必要。(是不是又有半吊子看了眼代码就觉得不支持 UDP 了)

@monsoon235
Copy link
Author

monsoon235 commented Oct 14, 2023

此行为是正确的,并且对用户透明,没有写在文档的必要。(是不是又有半吊子看了眼代码就觉得不支持 UDP 了)

是正确的,但是一个常见的使用场景是利用 docker port mapping 暴露端口,在 v2ray 中可以只映射一个 UDP 端口,但 sing-box 中这样做会引起问题,有必要进行提示。

长期以来其他代理软件对于 SOCKS5 UDP 的实现不正确,导致一些流行的做法同样依赖于这种错误的实现,这个提示可以方便迁移的人排查问题。

@nekohasekai
Copy link
Member

nekohasekai commented Oct 14, 2023

docker 用家如果没有这些基础知识,那么适合去用 v2ray 与一键脚本。

@monsoon235 monsoon235 deleted the docs-socks-udp branch October 15, 2023 06:15
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.

2 participants