simple-socks icon indicating copy to clipboard operation
simple-socks copied to clipboard

Authentication not working with clients

Open timothymiller opened this issue 5 years ago • 4 comments

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.

timothymiller avatar Aug 13 '19 00:08 timothymiller

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

brozeph avatar Aug 25 '19 21:08 brozeph

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

brozeph avatar Mar 13 '20 22:03 brozeph

@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 :)) )

bkarvatskyi avatar Mar 29 '22 14:03 bkarvatskyi

@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

brozeph avatar Mar 23 '24 14:03 brozeph