brozeph / simple-socks

Simple SOCKS5 proxy server
281 stars 60 forks source link

Authentication not working with clients #30

Open timothymiller opened 5 years ago

timothymiller commented 5 years ago

Authentication in examples/createServerWithAuthentication works using the curl command in the README, but providing the same credentials in macOS system preferences for SOCKS Proxy config, nor Electron webview proxy authentication does not work. The error "invalid credentials" is printed to the console.

brozeph commented 5 years ago

@timothymiller - can you provide more info about your configuration in System Preferences (perhaps a screen shot)?

brozeph commented 4 years ago

Doing some research on my own... it looks like the password is not being sent according to the rfc1929 spec when attempting to authenticate using MacOS.

new client connection
<Buffer 66 6f 6f> foo
<Buffer > 
user foo failed to authenticate...
Error: invalid credentials
bkarvatskyi commented 2 years ago

@brozeph Hey. I'm experiencing the same issue now. When trying to use authentication from MacOS - I receive empty buffer in the app (instead of username+password). Did you find any workarounds for this issue? (except for not using MacOS :)) )

brozeph commented 8 months ago

@bkarvatskyi Hi! Apparently, this is still an issue as of 2024: https://discussions.apple.com/thread/255394737?sortBy=best

I wonder if socat or ssh tunneling could work for your use case? https://serverfault.com/questions/1123712/port-forwarding-through-socks5