[tor-dev] Running Tor with static path

Lars Luthman mail at larsluthman.net
Mon Jun 16 17:08:53 UTC 2014

On Mon, 2014-06-16 at 20:08 +0430, mahdi wrote: 
> Hi all,
> I want to execute an experiment on Tor in which i need to fix the ip
> address of entry,relay and exit onion router.
> For that i need to determine the IPs and keys of ORs in OP permanently.
> Is there any idea of what function of Tor's code should be replace?!

To fix the entry and exit nodes you can just use the EntryNodes (or
Bridges), ExitNodes, and StrictNodes configuration options.

To fix the middle relay you need to change some code (I think). The
relevant functions should be circuitbuild.c:circuit_establish_circuit()
and the functions it calls, especially

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <http://lists.torproject.org/pipermail/tor-dev/attachments/20140616/8f90a1dc/attachment.sig>

More information about the tor-dev mailing list