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

Socks5 relay uses a wrong protocol? #17

Closed
laohyx opened this issue Nov 30, 2018 · 5 comments
Closed

Socks5 relay uses a wrong protocol? #17

laohyx opened this issue Nov 30, 2018 · 5 comments

Comments

@laohyx
Copy link

laohyx commented Nov 30, 2018

Hi, I am using pproxy as a socks5 relay server.
according to proto.py, Socks5.connect sends b'\x05\x01\x02\x01' + ... to server at first. But other socks5 clients only sends b'\x05\x02\x00\x01

Another proof is running two pproxy process, one is:

pproxy -l socks5://:8080/ -v

the other is:

pproxy -l socks5://:8081/ -v -r socks5://localhost:8080 --test http://ifconfig.co/

It results in Unsupported protocol b'1' from ::1 and Exception: Unknown remote protocol.

I am going to figure out the correct protocol then.

Thanks!

@qwj
Copy link
Owner

qwj commented Nov 30, 2018 via email

@laohyx
Copy link
Author

laohyx commented Nov 30, 2018

Thanks for quick reply!
I am using 1.9.4, the latest version from pip.

I will try on linux. I used on windows before.

@qwj
Copy link
Owner

qwj commented Nov 30, 2018 via email

@laohyx
Copy link
Author

laohyx commented Nov 30, 2018

yeah, on linux it works fine. Close the issue for now

@laohyx laohyx closed this as completed Nov 30, 2018
@laohyx
Copy link
Author

laohyx commented Nov 30, 2018

Oh on Windows I modified some code to cause the error.

Then the reason not working for me is to use Shadowsocks client as upstream socks server.
Maybe it doesn't fully support socks5 protocol.

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

2 participants