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

Re: constructing circuits using control port



Thus spake Andrew (andrewmv@xxxxxxxxx):

> Here's an example of my control socket transcript:
> 
> C 20070804034544: AUTHENTICATE
> S 20070804034544: 250 OK
> C 20070804034544: EXTENDCIRCUIT 0 [fingerprintscrubbed],[fingerprintscrubbed]
> S 20070804034545: 250 EXTENDED 116
> C 20070804034545: SETEVENTS STREAM CIRC
> S 20070804034545: 250 OK
> S 20070804034545: 650 CIRC 116 FAILED
> 
> Is there anything wrong with my approach?

You should probably do SETEVENTS EXTENDED CIRC STREAM to get more info
on circuit failure reasons (most common reasons are timeouts and node
connections breaking down due to load balancing issues).


You should also look at TorFlow before you reinvent the wheel :)

http://tor.eff.org/svn/torflow/

or if you have SVN: 

svn co https://tor-svn.freehaven.net/svn/torflow/trunk torflow

It has tons of useful python classes for building custom circuits and
augmenting path selection. The README is a little sparse, but the code
is well organized and legible.



-- 
Mike Perry
Mad Computer Scientist
fscked.org evil labs

Attachment: pgpTvhwwDMF3w.pgp
Description: PGP signature