cbeuw / Cloak

A censorship circumvention tool to evade detection by authoritarian state adversaries
GNU General Public License v3.0
3.42k stars 304 forks source link

Shadowsocks2022 and UDP #254

Open hawshemi opened 8 months ago

hawshemi commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

@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 commented 8 months ago

emmmm

Maybe try some tcp2udp programs?

notsure2 commented 8 months ago

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