summaryrefslogtreecommitdiff
path: root/scripts/maint/updateFallbackDirs.py
AgeCommit message (Collapse)Author
2019-01-15Remove fallback scripts and whitelistNick Mathewson
They have been extracted to a new fallback-scripts.git repository. Closes ticket 27914.
2019-01-15Depending on script mode, either use 'whitelist' or 'fallback list'rl1987
2019-01-15In updateFallbackDirs.py, say 'fallback list' instead of 'whitelist'rl1987
2018-12-07Fallbacks: accept relays that are a fuzzy match to the whitelistteor
If a relay matches at least one fingerprint, IPv4 address, or IPv6 address in the fallback whitelist, it can become a fallback. This reduces the work required to keep the list up to date. Closes ticket 28768.
2018-12-07Fallbacks: refactor is_in_whitelist() to take an exact match booleanteor
No behaviour change. Preparation for 24838.
2018-12-07Fallbacks: Rename CONSENSUS_EXPIRY_TOLERANCE to REASONABLY_LIVE_TIMEteor
Cleanup after 28768.
2018-12-07Fallbacks: use a 24 hour future consensus toleranceteor
Tor clients on 0.3.5.6-rc? and later will use a consensus that will become valid up to 24 hours in the future. Clients on 0.3.5.5-alpha? and earlier won't accept future consensuses. Update the fallback expiry tolerance to match tor's checks. Part of 28768, follow-up on 28591.
2018-12-07Fallbacks: use a 24 hour consensus expiry toleranceteor
Tor clients will use a consensus that expired up to 24 hours ago. Clients on 0.3.5.5-alpha? and earlier won't select guards from an expired consensus, but they can still bootstrap if they have existing guards. Update the fallback expiry tolerance to match tor's checks. Part of 28768, follow-up on 24661.
2018-12-07Fallbacks: minor script comment changesteor
2018-07-08Remove small piece of unneeded documentationKaidan
2018-07-08#26502: Stop using fallback blacklistKaidan
2018-07-05Fix everything that previously referred to src/orNick Mathewson
2018-04-18Remove a comment about 0.2.8 that will soon be irrelevant.Nick Mathewson
(It becomes irrelevant on 15 May 2018 when 0.2.5 is EOL.)
2018-02-07Fix spelling mistakes corresponding to ticket #23650Deepesh Pathak
2018-01-05Stop logging excessive information about fallback netblocksteor
Implements ticket 24791
2018-01-05Adjust fallback selection parametersteor
Avoid selecting fallbacks that change their IP addresses too often. Select more fallbacks by ignoring the Guard flag, and allowing lower cutoffs for the Running and V2Dir flags. Also allow a lower bandwidth, and a higher number of fallbacks per operator (5% of the list). Implements ticket 24785.
2018-01-05Update dependency list for the fallback scriptteor
Comment-only change. Implements #24711.
2018-01-05Make updateFallbackDirs.py search harder for pythonteor
(Some OSs don't put it in /usr/bin.) Fixes bug 24708; bugfix on 0.2.8.1-alpha.
2018-01-05Add a generated timestamp to the fallback directory headerteor
This can act as a revision counter, as requested by atagar in 24742. Part of 24725.
2018-01-05Remove an incorrect C comment from updateFallbackDirs.py's list generation codeteor
Part of #24725.
2018-01-05Add a delimiter to the end of each fallback entryteor
This helps external parsers. Also, add comments indicating where to add new fields in the fallback format. Part of 24725.
2018-01-05Remove commas and equals signs from external string inputs to the fallback listteor
This makes sure that list parsers only see one comma per fallback entry, and only see one equals sign per field. Implements ticket 24726.
2018-01-05Add an extrainfo cache flag for each fallback in a C commentteor
This allows stem to use fallbacks to fetch extra-info documents, rather than using authorities. Implements ticket 22759.
2018-01-05Add a nickname to each fallback in a C commentteor
This makes it easier for operators to find their relays, and allows stem to use nicknames to identify fallbacks. Implements ticket 24600.
2018-01-05Remove the "weight=10" line from fallback directory mirror entriesteor
This removes some redundant repeated lines. Ticket 24681 will maintain the current fallback weights by changing Tor's default fallback weight to 10. Implements ticket 24679.
2018-01-05Add a type and version header to the fallback directory mirror fileteor
This helps external parsers like stem and Relay Search. Implements ticket 24725.
2018-01-05Update comment and add changes file for 20942teor
2018-01-05Set CONSENSUS_EXPIRY_TOLERANCE to 0Dominique Ingoglia
2017-12-20Remove merge-conflict detritusNick Mathewson
2017-12-20Make fallback script usage instructions create a log fileteor
Comment-only change. Closes 24682.
2017-05-16Update fallback stability requirementsteor
Decrease the minimum number of fallbacks to 100. Final fix to 20913.
2017-05-16Merge branch 'fallbacks-201702-v3' into fallbacks-2017-05teor
2017-05-16Make the usage example in updateFallbackDirs.py actually workteor
And explain what it does. Fixes bug 22270 in 0.3.0.3-alpha.
2017-02-27Modify fallback stability requirementsteor
Increase the fallback stability requirement to 30 days. When this was at 7 days, we chose far too many unstable fallbacks. Decrease the guard flag requirement to 0.8. When this was at 0.9, we lost too many fallbacks due to version upgrades. (The running and v2dir flags ensure DirPorts are available to clients.) Partial fixes to #20913.
2017-01-25Add the output file to the usageSuphanat Chunhapanya
2017-01-25Add usage for check_existingSuphanat Chunhapanya
2017-01-25Logging existing fallbacks at warning levelSuphanat Chunhapanya
2017-01-25Automate checking existing fallbacksSuphanat Chunhapanya
2016-12-19Avoid an error in the fallback script when a fallback doesn't have any uptimeteor
Sometimes, the fallback generation script doesn't add attributes to the fallbacks in the list. If this happens, log an error, and avoid selecting that fallback. This is a rare issue: it should not change selection behaviour. Fixes issue #20945.
2016-12-19Allow fallbacks serving consensuses that expired less than 24 hours agoteor
This works around #20909, where relays serve stale consensuses for a short time, and then recover. Update to the fix for #20539.
2016-12-19Avoid checking fallback candidates' DirPorts if they are down in OnionOOteor
Exclude relays that have been down for 1 or more days from the fallback candidate list. When a relay operator has multiple relays, this prioritises relays that are up over relays that are down. Fixes issue #20926.
2016-12-19Be more tolerant of a decreased number of fallbacksteor
2016-12-19Reduce fallback bandwidth requirement to 1 MByte/steor
2016-12-19Allow 3 fallbacks per operatorteor
This is safe now we are choosing 200 fallbacks. Closes ticket 20912.
2016-12-19Require fallbacks to have 90% Running, V2Dir, and Guard flagsteor
This allows 73% of clients to bootstrap in the first 5 seconds without contacting an authority. Part of #18828.
2016-12-19Require fallback directories to have the same address and port for 7 daysteor
7 days is a tradeoff between the expected time between major Tor releases, which is 6 months, and the number of relays with enough stability. Relays whose OnionOO stability timer is reset on restart by bug #18050 should upgrade to Tor 0.2.8.7 or later, which has a fix for this issue. Closes ticket #20880; maintains short-term fix in e220214 in tor-0.2.8.2-alpha.
2016-12-19Display the fingerprint when downloading consensuses from fallbacksteor
2016-12-19Exclude relays that deliver an expired consensus from the fallback listteor
Part of #20539, based on #20501.
2016-12-19Exclude relay versions affected by #20499 from the fallback listteor
Part of #20539, based on #20509.
2016-12-19Make fallback sort order configurableteor
Closes issue #20882.