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

Re: [tor-talk] How Tor fetchs the consensus file and maintains the cached-consensus file?



Hello Damian,

   Thanks for your kindly explanation. I have tried method c. you
   mentioned, and found that the returned exit node list with specified
   exit policy is not as the same as the result i obtained by quering
   "https://check.torproject.org/cgi-bin/TorBulkExitList.py";. The
   mismatch of the results makes me confused. Can you help me to
   overcome this problem? thanks.

-- 
BR, BT

On Sat, Jul 12, 2014, at 12:17 AM, Damian Johnson wrote:
> Stem provides three methods for getting consensus data...
> 
> a. Fetch it from the Controller via methods like
> get_network_statuses()...
> 
>    https://stem.torproject.org/api/control.html#stem.control.Controller.get_network_statuses
> 
> b. Read it from disk as you're trying to do. There shouldn't be any
> reason to do this when running a relay. This capability is meant to be
> used for descriptor archives.
> 
> c. Downloading them via the stem.descriptor.remote module...
> 
>    https://stem.torproject.org/api/descriptor/remote.html
> 
> In this case method 'a' should be your best option.
> 
> Cheers! -Damian
> 
> On Fri, Jul 11, 2014 at 4:47 AM, Bron Taylor <bron.taylor@xxxxxxxxxxxxxx>
> wrote:
> > Hello~
> >
> >     I am trying to develop a program that can automatically build a
> >     circuit with Stem library and send my data over the circuit to the
> >     destination anonymously. At the beginning, I tried to make my
> >     program read the "cached-consensus" file to get the propriate exit
> >     node, however, some of the exit nodes failed to relay the traffic
> >     for me. It seems the node was claiming it can relay the traffic to
> >     somewhere at some port but not working as well as it claimed.
> >     Therefore, I am looking forward to the way to get the whole list
> >     containing all of the exit nodes for my program to have more chance
> >     for choosing the most suitable exit node. Thank you.
> >
> > --
> > BR, BT
> >
> > On Fri, Jul 11, 2014, at 12:38 PM, Damian Johnson wrote:
> >> Hi Bron. What in particular are you trying to do?
> >>
> >>
> >> On Wed, Jul 9, 2014 at 7:01 PM, Bron Taylor <bron.taylor@xxxxxxxxxxxxxx>
> >> wrote:
> >> > Dear All,
> >> >
> >> >     I am running a Tor client on my system and deveploping a software
> >> >     with Stem library. I found that Tor didn't download a whole list of
> >> >     consensus to local, but a cached-consensus which is just part of the
> >> >     whole list instead. I would like to ask and know how Tor maintains
> >> >     the cached-consensus file on local and how can I make tor to
> >> >     download the whole list? Can anyone help to answer my quesion or
> >> >     provide me any useful links? Thanks.
> >> >
> >> >
> >> >
> >> > --
> >> > BR, BT
> >> > --
> >> > tor-talk mailing list - tor-talk@xxxxxxxxxxxxxxxxxxxx
> >> > To unsubscribe or change other settings go to
> >> > https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk
> >> --
> >> tor-talk mailing list - tor-talk@xxxxxxxxxxxxxxxxxxxx
> >> To unsubscribe or change other settings go to
> >> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk
> > --
> > tor-talk mailing list - tor-talk@xxxxxxxxxxxxxxxxxxxx
> > To unsubscribe or change other settings go to
> > https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk
> -- 
> tor-talk mailing list - tor-talk@xxxxxxxxxxxxxxxxxxxx
> To unsubscribe or change other settings go to
> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk
-- 
tor-talk mailing list - tor-talk@xxxxxxxxxxxxxxxxxxxx
To unsubscribe or change other settings go to
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk