[GH-ISSUE #254] Shadowsocks2022 and UDP #207

Open
opened 2026-02-26 12:34:16 +03:00 by kerem · 4 comments
Owner

Originally created by @hawshemi on GitHub (Mar 8, 2024).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/254

Hello @cbeuw
As you may know, some modern cores like xray-core support the new version of Shadowsocks, which can transport UDP.
Can Cloak support UDP as well?

I tested in the config:

{
  "ProxyBook": {
    "shadowsocks": [
      "tcp,udp",
      "127.0.0.1:8388"
    ]
{
  "ProxyBook": {
    "shadowsocks": [
      "tcp", "udp",
      "127.0.0.1:8388"
    ]

but cannot pass UDP.
Do you know how I can enable UDP in cloak? (it is enabled on Shadowsocks)

Originally created by @hawshemi on GitHub (Mar 8, 2024). Original GitHub issue: https://github.com/cbeuw/Cloak/issues/254 Hello @cbeuw As you may know, some modern cores like `xray-core` support the new version of Shadowsocks, which can transport UDP. Can Cloak support UDP as well? I tested in the config: ``` { "ProxyBook": { "shadowsocks": [ "tcp,udp", "127.0.0.1:8388" ] ``` ``` { "ProxyBook": { "shadowsocks": [ "tcp", "udp", "127.0.0.1:8388" ] ``` but cannot pass UDP. Do you know how I can enable UDP in cloak? (it is enabled on Shadowsocks)
Author
Owner

@qwerttvv commented on GitHub (Mar 12, 2024):

shadowsocks-rust
{
"server":"127.0.0.1",
"mode":"tcp_and_udp",
"server_port":XXXX,
"password":"XXXX",
"timeout":300,
"method":"2022-blake3-chacha20-poly1305",
"fast_open":false,
"dns":"127.0.0.1",
"plugin": "/usr/local/bin/ck-server-linux-amd64",
"plugin_opts": "/etc/ck-server/config.json"
}

cloak
{
"BypassUID": [
"XXXX"
],
"BindAddr":[":443",":80"],
"RedirAddr": "www.XXXX.com",
"PrivateKey": "XXXX",
"AdminUID": "XXXX",
"DatabasePath": "/usr/local/bin/ck-userinfo.db"
}

Whether or not udp is enabled depends on your shadowsocks config

<!-- gh-comment-id:1991478602 --> @qwerttvv commented on GitHub (Mar 12, 2024): shadowsocks-rust { "server":"127.0.0.1", "mode":"tcp_and_udp", "server_port":XXXX, "password":"XXXX", "timeout":300, "method":"2022-blake3-chacha20-poly1305", "fast_open":false, "dns":"127.0.0.1", "plugin": "/usr/local/bin/ck-server-linux-amd64", "plugin_opts": "/etc/ck-server/config.json" } cloak { "BypassUID": [ "XXXX" ], "BindAddr":[":443",":80"], "RedirAddr": "www.XXXX.com", "PrivateKey": "XXXX", "AdminUID": "XXXX", "DatabasePath": "/usr/local/bin/ck-userinfo.db" } Whether or not udp is enabled depends on your shadowsocks config
Author
Owner

@hawshemi commented on GitHub (Mar 12, 2024):

@qwerttvv Thanks

But I tested, and when the cloak is on, UDP won't go through (WhatsApp video call won't connect), and if the traffic won't go through Cloak and just ShadowSocks, the UDP is connected, and Whatsapp video call works well.

<!-- gh-comment-id:1991586367 --> @hawshemi commented on GitHub (Mar 12, 2024): @qwerttvv Thanks But I tested, and when the cloak is on, UDP won't go through (WhatsApp video call won't connect), and if the traffic won't go through Cloak and just ShadowSocks, the UDP is connected, and Whatsapp video call works well.
Author
Owner

@qwerttvv commented on GitHub (Mar 12, 2024):

emmmm

Maybe try some tcp2udp programs?

<!-- gh-comment-id:1991622316 --> @qwerttvv commented on GitHub (Mar 12, 2024): emmmm Maybe try some tcp2udp programs?
Author
Owner

@notsure2 commented on GitHub (Mar 12, 2024):

Cloak doesn't implement simultaneous tcp and udp listen and also shadowsocks needs to support it.

-------- Original Message --------
On Mar 12, 2024, 3:12 PM, qwerttvv wrote:

emmmm

Maybe try some tcp2udp programs?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

<!-- gh-comment-id:1991638750 --> @notsure2 commented on GitHub (Mar 12, 2024): Cloak doesn't implement simultaneous tcp and udp listen and also shadowsocks needs to support it. -------- Original Message -------- On Mar 12, 2024, 3:12 PM, qwerttvv wrote: > emmmm > > Maybe try some tcp2udp programs? > > — > Reply to this email directly, [view it on GitHub](https://github.com/cbeuw/Cloak/issues/254#issuecomment-1991622316), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AIOIVH2274NNJWT72CPP4ADYX35NHAVCNFSM6AAAAABENA5B4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJRGYZDEMZRGY). > You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cloak#207
No description provided.