[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: Tor Control Protocol and AUTHENTICATE



On Sun, Oct 01, 2006 at 02:47:19AM +0300, yousifnet wrote:
> Hello all,
> 
> I'm developing a controller for tor (like vidalia).
> 
> When CookieAuthentication is set to 1 tor creates the
> "control_auth_cookie" file.
> 
> control-spec.txt does not mention how to send the content of the file
> using the AUTHENTICATE command.
> 
> The cookie is 32 bit long. I tried sending it as a HEX string but tor
> still gives me a 515.

Encoding it in Hexadecimal should work.  Here's an example of what
worked for me just a minute ago:

[29]% telnet localhost 9100
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
AUTHENTICATE ee10875cb04a837374918510d75ff600f85abc04a33fda23895954dcd69a6a3b
250 OK

I've changed the error messages in the development repository so that
the next alpha version will give more useful messages on
authentication failures.

> One more thing. Does tor accept connections other than from localhost
> to the Control Listener?

By default, no.

>  If no, is there a way of doing this (I know
> it's not recommended)?

If you want to listen on IP 1.2.3.4 on port 9100, just use

  ControlListenAddress 1.2.3.4:9100

You might want to read through the manual for other configuration
options of potential interest:

   http://tor.eff.org/tor-manual.html.en

yrs,
-- 
Nick Mathewson

Attachment: pgpDzrHF4cl1P.pgp
Description: PGP signature