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

能支持udp over tcp吗? #1127

Closed
ArchGuyWu opened this issue Mar 3, 2023 · 10 comments
Closed

能支持udp over tcp吗? #1127

ArchGuyWu opened this issue Mar 3, 2023 · 10 comments

Comments

@ArchGuyWu
Copy link

ArchGuyWu commented Mar 3, 2023

根据实验发现,在shadowsocks服务端开启监听udp会导致udp被封,但tcp一直正常,且直接传输udp包容易遭遇qos

@zonyitoo
Copy link
Collaborator

zonyitoo commented Mar 3, 2023

If you are proposing a new protocol change, please open an issue in https://github.com/shadowsocks/shadowsocks-org and standardize it.

On the other hand, you could first make a POC program and see if it could actually solve your problem.

@ArchGuyWu
Copy link
Author

ArchGuyWu commented Mar 4, 2023

我之前新开了一台vps,ss里设置了tcp_only,就这样持续了两个星期后依然正常,然后我又改成了tcp_and_udp,3天内就被封udp了;为了排除是突然开启udp导致的,一个月后我又在同一IDC下买了vps,直接在ss里设置了tcp_and_udp,仍然在3天内就被封udp;后来又在其它IDC下买vps,直接在ss里设置了tcp_and_udp,仍然在3天内就被封

@ArchGuyWu
Copy link
Author

不过奇怪的是,即使设置了tcp_and_udp,导致udp被封,但tcp依然一直正常

@zonyitoo
Copy link
Collaborator

zonyitoo commented Mar 4, 2023

This is quite a special case.

@yiguihai11
Copy link

yiguihai11 commented Mar 15, 2023

ip被墙了现在靠着v2插件cdn模式苟活,不支持udp over tcp确实难受现在考虑要不要换到v2或者xray那边去了。

@ArchGuyWu
Copy link
Author

ip被墙了现在靠着v2插件cdn模式苟活,不支持udp over tcp确实难受现在考虑要不要换到v2或者xray那边去了。

如果你用了2022系列加密的话,部分客户端支持uot(如clash-meta和sing-box),shadowsocks rust服务端也能自适应

@yiguihai11
Copy link

ip被墙了现在靠着v2插件cdn模式苟活,不支持udp over tcp确实难受现在考虑要不要换到v2或者xray那边去了。

如果你用了2022系列加密的话,部分客户端支持uot(如clash-meta和sing-box),shadowsocks rust服务端也能自适应

谢谢不过用不上了,我使用了这个 https://github.com/heiher/hev-socks5-tunnel 再用ss的隧道功能就能实现UDP over TCP了

@zonyitoo
Copy link
Collaborator

zonyitoo commented Apr 15, 2023

Supported SIP003u, allowing plugins to handle UDP packets.

zonyitoo added a commit that referenced this issue Apr 15, 2023
- ref shadowsocks/shadowsocks-org#180
- "plugin_mode" option in configuration file, and ssmanager API
- "plugin_mode" is "tcp_only" by default
- ref #1127
zonyitoo added a commit that referenced this issue Apr 15, 2023
- ref shadowsocks/shadowsocks-org#180
- "plugin_mode" option in configuration file, and ssmanager API
- "plugin_mode" is "tcp_only" by default
- ref #1127
@zonyitoo
Copy link
Collaborator

https://github.com/zonyitoo/shadowsocks-yamux-plugin
This plugin supports UoT and TCP stream multiplexer.

@zonyitoo zonyitoo closed this as completed Jul 1, 2023
@800sea
Copy link

800sea commented Dec 6, 2023

ip被墙了现在靠着v2插件cdn模式苟活,不支持udp over tcp确实难受现在考虑要不要换到v2或者xray那边去了。

如果你用了2022系列加密的话,部分客户端支持uot(如clash-meta和sing-box),shadowsocks rust服务端也能自适应

谢谢不过用不上了,我使用了这个 https://github.com/heiher/hev-socks5-tunnel 再用ss的隧道功能就能实现UDP over TCP了

老哥 你是怎么配置hev-socks5-tunnel 与 shadowsocks 的sslocal 的tun 的了? 我尝试很久都不能成功

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

No branches or pull requests

4 participants