[tor-dev] Fwd: Stem Tor - Establish a user defined circuit

Damian Johnson atagar at torproject.org
Sat Nov 16 19:02:26 UTC 2013


Hi Aravindan. I haven't personally done much work with manual path
selection, but RTT Prober does. I'd suggest looking at it as an
example...

https://bitbucket.org/ra_/tor-rtt/src/3a2ef9343d3054b8bcf37877d81d926400ed8512/rttprober.py?at=master#cl-447

> relay_ip_addresses = ["10.0.0.21","10.0.0.22","10.0.0.23"]
>
> circuit_id = controller.extend_circuit('0',relay_ip_addresses)

The circuit path should be relay fingerprints, not IP addresses...

https://stem.torproject.org/api/control.html#stem.control.Controller.extend_circuit

Cheers! -Damian


More information about the tor-dev mailing list