<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"><div><span style="background-color: rgba(255, 255, 255, 0);">Hi,</span></div></div><div dir="ltr"><br>On 17 Jan 2019, at 23:39, sarpedon montecarlo <<a href="mailto:sarpedon000@gmail.com">sarpedon000@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div>I recently started to do some modifications on tor path selection by using stem, torflow/op-addon and txtorconn. but as long as i enable __LeaveStreamsUnattached option, tor will not function properly.</div></div></div></blockquote><div><br></div><div dir="ltr"><div dir="ltr"><div><span style="background-color: rgba(255, 255, 255, 0);">__LeaveStreamsUnattached means that the controller needs to attach all of Tor's</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">streams. </span>How does Tor fail when you set it?</div></div></div><div><br></div><div>We know that __DisablePredictedCircuits causes Tor to stop bootstrapping.</div><div><a href="https://trac.torproject.org/projects/tor/ticket/17359">https://trac.torproject.org/projects/tor/ticket/17359</a></div><br><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div>so i decided to hack the source for this feature i seek:</div><div>custom country for each position:</div><div>entry:{{entry country-code}}</div><div>middle:{{middle country-code}}</div><div>exit:{{country-code}}</div></div></div></blockquote><div><br></div><div>Restricting your path probably won't do what you want:</div><div><br></div><div><div><span style="background-color: rgba(255, 255, 255, 0);">Changing Tor's path selection makes your Tor client look different, so you will be</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">easier to track.</span></div></div><div><br></div><div>GeoIP is inaccurate: it's based on the physical location of the machine, or the</div><div>location of the owner of the IP address, or some other location they chose.</div><div>Relays are usually in data centres, so there's no commercial incentive to keep</div><div>their locations up to date for targeted advertising.</div><div><br></div><div>Also, different GeoIP databases have different locations for the same IP address.</div><div><br></div><div>And GeoIP locations often don't correspond to legal jurisdictions.</div><br><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div>i really appreciate you guys give me some hint, that which part of the source i must start to hack?</div><div>i have dived into circuitbuild.c and some other core/or modules but i am confused where to start.</div></div></div></blockquote><br><div>You could start by using the existing EntryNodes and ExitNodes options:</div><div><a href="https://www.torproject.org/docs/tor-manual.html.en">https://www.torproject.org/docs/tor-manual.html.en</a></div><div><br></div><div><span style="background-color: rgba(255, 255, 255, 0);">You may also want the StrictNodes option.</span></div><div><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div><span style="background-color: rgba(255, 255, 255, 0);">Tor 0.4.0.1-alpha will add a MiddleNodes option, it should be out in the next few days.</span></div><div><span style="background-color: rgba(255, 255, 255, 0);">If you can't wait, the code is here:</span></div><div><a href="https://github.com/torproject/tor/commit/8ad497bb578b13c66489843905764a60545e6388">https://github.com/torproject/tor/commit/8ad497bb578b13c66489843905764a60545e6388</a></div><div><br></div><div>T</div></body></html>