[tor-bugs] #20192 [Core Tor/Fallback Scripts]: When outputting potential new fallbacks, blacklist the whitelist

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Dec 20 01:10:42 UTC 2017


#20192: When outputting potential new fallbacks, blacklist the whitelist
---------------------------------------+----------------------------------
 Reporter:  teor                       |          Owner:  haxxpop
     Type:  enhancement                |         Status:  assigned
 Priority:  Medium                     |      Milestone:  Tor: unspecified
Component:  Core Tor/Fallback Scripts  |        Version:
 Severity:  Normal                     |     Resolution:
 Keywords:  fallback                   |  Actual Points:
Parent ID:                             |         Points:  0.5
 Reviewer:                             |        Sponsor:
---------------------------------------+----------------------------------

Comment (by teor):

 This is the old wiki text:

 We want to only find new potential fallbacks, and ask their operators to
 opt-in. So we add both lists together, and tell the script not to select
 anything in those lists. (All those operators have already been contacted,
 and responded.)

 i. Make sure the whitelist is the current one from git master (not the
 modified one from step 1)
 ii. Make sure the blacklist is saved in a git branch or a backup
 iii. Append the whitelist to the blacklist
 {{{
 cat scripts/maint/fallback.whitelist >> scripts/maint/fallback.blacklist
 }}}
 iv. Set the log level to INFO for both the script and stem:
 {{{
 - logging.basicConfig(level=logging.WARNING)
 + logging.basicConfig(level=logging.INFO)
 }}}
 {{{
 - logging.getLogger('stem').setLevel(logging.WARNING)
 + logging.getLogger('stem').setLevel(logging.INFO)
 }}}
 v. Output candidate fallbacks (ignore the whitelist, log operator contact
 details):
 {{{
 - OUTPUT_CANDIDATES = False
 + OUTPUT_CANDIDATES = True
 }}}
 vi. Run the fallback selection script, saving the list:
 {{{
 scripts/maint/updateFallbackDirs.py > potential_extra_fallbacks 2>
 potential_extra_fallbacks.log
 }}}
 This can take a long time, as it downloads ~150MB of OnionOO data, parses
 it, then tries each fallback's DirPort.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/20192#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list