mirror of
https://github.com/cbeuw/Cloak.git
synced 2026-04-25 12:35:59 +03:00
[GH-ISSUE #65] [Question] How to use shadowsocks udp with cloak 2.1.1 #59
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Cloak#59
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MigueSpark on GitHub (Sep 26, 2019).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/65
Hello, i need help with this because im using shadowsocks with cloak and when i try to use udp it doesnt work on android, here is my shadowsocks libev config:
"server":"127.0.0.1", "server_port":56781, "password":"*********", "timeout":60, "method":"chacha20-ietf-poly1305", "nameserver":"8.8.8.8", "mode":"tcp_and_udp"My cloak config is this:
{ "ProxyBook": { "shadowsocks":["udp","127.0.0.1:56781"] , "panel":["tcp","127.0.0.1:0"] }, "BypassUID": [ "**", "**" ], "BindAddr":[":443"], "RedirAddr": "204.79.197.200", "PrivateKey": "**", "AdminUID": "**", "DatabasePath": "userinfo.db", "StreamTimeout": 300 }Note: All * means that i replace them to post here but original values are on the vps
@malikshi commented on GitHub (Sep 26, 2019):
I think not gonna work. Proxy book for shadowsocks must be tcp.
@malikshi commented on GitHub (Sep 26, 2019):
Or try force run shadowsocks only in udp `-U'
case sensitive
@Klaaktu commented on GitHub (Sep 26, 2019):
https://github.com/shadowsocks/shadowsocks-org/issues/28
I think Shadowsocks doesn't support udp for its plugins.
@malikshi commented on GitHub (Sep 26, 2019):
I am using proxy book openvpn with udp its greats, I know speed won't be good compared to shadowsocks, but I can use it for game and etc
@chenshaoju commented on GitHub (Sep 27, 2019):
If you use a plugin in Shadowsocks, The UDP will not be working.
via: https://shadowsocks.org/en/spec/Plugin.html
@Klaaktu commented on GitHub (Nov 12, 2019):
WireGuard seems like a nice alternative to OpenVPN in terms of gaming, is it able to pair with Cloak too?
@cbeuw commented on GitHub (Nov 12, 2019):
@klaaktu A while ago I have actually experimented pairing WireGuard with Cloak. Theoretically Cloak should work with anything that lets you tunnel UDP traffic, but I'm not familiar with WireGuard so unfortunately I couldn't find a way to configure WireGuard that works.
@malikshi commented on GitHub (Nov 12, 2019):
@cbeuw i will try this one, i hope speed are good like original speed wireguard itself
@Klaaktu commented on GitHub (Nov 15, 2019):
Wait... can u tunnel UDP traffic from Shadowsocks if you run Cloak in standalone mode? Is there a way to test this?
Edit: nope... same error as WireGuard when tested in Sockscap64.
Edit2:
Change to
"NumConn": 1and no more ck-client error when tunneling Shadowsocks UDP.It's the same for WireGuard and OpenVPN, now they connect without problem (I can open websites).
However Shadowsocks' server side gives this error:
WireGuard client gives this error, if endpoint is localhost instead (with "kill-switch" disabled):
@qwerttvv commented on GitHub (Jan 11, 2020):
cloak with standalone mode
you can use ss with cloak[tcp] or only ss[tcp&udp]
@Klaaktu commented on GitHub (Mar 27, 2020):
Sry I might have forgotten to change Shadowsocks ProxyBook entry to UDP or restart ck-server after editing, the error message hinted at it since handshake is for TCP. Anyway it seems UDP does work with Shadowsocks!
What I did:
Shadowsocks client settings, change to 127.0.0.1:1984 no plugin.
ck-client, add
-uparameter, and changeNumConnto 1 in config file (#96).ck-server config, ProxyBook shadowsocks entry, change 'tcp' to 'udp'. Restart ck-server.
For TCP+UDP I think I need:
2 ck-client, 2 config files with different ProxyMethod names. One listens to tcp the other udp (same port number).
ck-server 2 ProxyBook entries as well. One "tcp" one "udp".