#6 "Authentication method = none" first

open
nobody
None
5
2003-05-22
2003-05-22
No

Hello,

I noticed the following behaviour watching packets with
Ethereal.
1. tsocks sends clients auth methods (0 and 2)
2. socks server accepts method 2 (which is user/pass)
-- note: my socks server allows auth method 0. That's
strange that the server does not accept the first
method (null auth).
3. tsocks says it cannot connect since TSOCKS_PASS is
not set (instead of using

I've tried to set TSOCKS_PASS null with no success.

Then I've changed the array verstring[] to:

char verstring[] = { 0x05, /* Version 5 SOCKS */
0x01, /* No. Methods */
0x00}; /* Null Auth */

removing the method 2 (user/pass). It went successfully.

But the problem is if a proxy does not accept this
method. Then here's my suggestion. The library could
try this method (null auth) first and only this. If it
does not succeed, it then should try the normal verstring.

BTW, great software! Thanks!

tia,
Felipe

Discussion