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

Re: Exit node's IP



On Thu, May 15, 2008 at 08:09:49AM +0300, Evgeniy Minakov wrote:
> Hello all,
> 
> Is it possible for controller to get current circuit nodes IPs through
> GETINFO command? 

You can get current circuits by watching circuit events, or by looking
at the results of GETINFO circuit-status.  From there, you can get the
IP of the last node of a given circuit by looking up that node's
server descriptor with GETINFO desc/...  , or just looking it up in
the latest consensus.

If you want to know the exit node for a given stream, also check out
streams as they attach to circuits; see control-spec.txt for full
details.

>The "getinfo address" shows local ip instead of current
> exit node IP

Remember, there's more than one "the current exit node IP".  Tor can
(and often does) have multiple circuits open at once, in use for
different purposes and for different time windows.

> , I think its useless.

It's useful for some purposes; just not yours.  "GETINFO address" is
good for helping the user figure out what external address Tor has
guessed for the server.  If you're behind any interesting kind of
firewall, determining this is not completely obvious.