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

Shadowsocks2022 and UDP #254

Open
hawshemi opened this issue Mar 8, 2024 · 4 comments
Open

Shadowsocks2022 and UDP #254

hawshemi opened this issue Mar 8, 2024 · 4 comments

Comments

@hawshemi
Copy link

hawshemi commented Mar 8, 2024

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)

@qwerttvv
Copy link

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

@hawshemi
Copy link
Author

@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.

@qwerttvv
Copy link

emmmm

Maybe try some tcp2udp programs?

@notsure2
Copy link
Contributor

notsure2 commented Mar 12, 2024 via email

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

3 participants