-
-
Notifications
You must be signed in to change notification settings - Fork 385
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
Bug: Shadowsocks is not SOCKS5 #245
Comments
To add SOCKS5 support I would suggest Privoxy :) |
Actually... even when using proxychains it's not working with a roughly stock configuration. I think the shadowsocks server might simply be broken.
proxychains config:
When using this config it does work:
|
Indeed thanks! Also see #234 to support that feature. |
Excellent! That would make it a lot more versatile. |
@qdm12 regarding the test with proxychains though... am I doing something wrong or is the current shadowsocks implementation broken? |
It's simply because shadowsocks is not a socks5 proxy (my bad). I even coded it from scratch for gluetun, I should had updated the documentation 😄 Anyway, it uses the socks5 protocol but adds an extra stream encryption layer on top. So with a socks5 client it will just reject you because you don't have the encryption nor the password to connect. Let me know, maybe I'm missing something out. |
The thing is... the example from the Shadowsocks wiki shows exactly this example: https://github.com/shadowsocks/shadowsocks/wiki/Using-Shadowsocks-with-Command-Line-Tools So I would expect it to work. |
Interesting. Although that wiki page has nothing about encryption nor password, which confuses me now 😕 |
Perhaps the wiki is just wrong. Can't say I've ever used shadowsocks beyond a random test so I'm not sure what to expect |
It seems to work with different Shadowsocks client, so my guess is it's fine. (although initially it was eating all your CPU but that's another silly story of mine haha!). I'd however be curious to run the same command in a socks5 proxy without encryption. |
It must be due to proxychains not using encrypted connections in that case |
@wolph I believe it works, see my comment with steps how to reproduce. Maybe you are mistaking the Shadowsocks server listening port (usually Proxychains seems to work for SOCKS5 proxies, not Shadowsocks. The Shadowsocks client exposes a SOCKS5 proxy server on port 1080 though. I'm about to start work on a SOCKS5 proxy built-in gluetun, so you should be able to use that directly with proxychains in the future... although careful, SOCKS5 IS NOT encrypted vs Shadowsocks. |
TLDR: The documentation says that shadowsocks takes care of SOCKS5 support. It does not
As explained by the Shadowsocks site, the protocol is loosely based on SOCKS5 but it certainly is no SOCKS5: https://shadowsocks.org/en/spec/Protocol.html
To test:
The text was updated successfully, but these errors were encountered: