summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2016-07-29Remove a fallback that was on the hardcoded list, then opted-outteor (Tim Wilson-Brown)
The fallback was added in 0.2.8.2-alpha.
2016-06-28Comment-out fallbacks in a way the stem fallback parser understandsteor (Tim Wilson-Brown)
If we manually remove fallbacks in C by adding '/*' and '*/' on separate lines, stem still parses them as being present, because it only looks at the start of a line. Add a comment to this effect in the generated source code.
2016-06-23Whitelist a fallback's new IPv6 addressteor (Tim Wilson-Brown)
The IPv4-only entry will be used for 0.2.8. The IPv4 and IPv6 entry will be considered in 0.2.9.
2016-06-23Remove a fallback that changed DirPortteor (Tim Wilson-Brown)
The operator has confirmed that the DirPort change is perament. The relay will be reconsidered as a fallback in 0.2.9.
2016-06-22Remove and blacklist 3 fallbacks which disappearedteor (Tim Wilson-Brown)
Blacklist them in case they appear again.
2016-06-22Remove and blacklist 4 fallbacks which are unsuitableteor (Tim Wilson-Brown)
Remove a fallback that changed its fingerprint after it was listed This happened after to a software update: https://lists.torproject.org/pipermail/tor-relays/2016-June/009473.html Remove a fallback that changed IPv4 address Remove two fallbacks that were slow to deliver consensuses, we can't guarantee they'll be fast in future. Blacklist all these fallbacks until operators confirm they're stable.
2016-06-22Update the fallback whitelist and blacklistteor (Tim Wilson-Brown)
Operators have sent emails asking to have their relays added or removed from the fallback list. Since none of the blacklisted relays are in the hard-coded falback list, it does not need to be changed.
2016-06-22Avoid errors in updateFallbackDirs.py when there are no fallbacksteor (Tim Wilson-Brown)
2016-06-22Document how to test the hard-coded fallback listteor (Tim Wilson-Brown)
2016-04-29Simplify string cleansing in fallback update scriptteor (Tim Wilson-Brown)
No behavioural change
2016-04-29Improve logging in fallback update scriptteor (Tim Wilson-Brown)
Log a notice just before the script is about to perform a potentially time-consuming operation Clarify the warning when py2-ipaddress isn't found Make log levels more consistent No behavioural change (just logging)
2016-04-29Improve comments in fallback update scriptteor (Tim Wilson-Brown)
2016-04-26Whitelist additional fallbacks after creating April 2016 listteor (Tim Wilson-Brown)
2016-04-26Report fallback directory detail changes when rebuilding listteor (Tim Wilson-Brown)
As well as the existing reports of IPv6 address additions or removals, the script now warns when keys change but IPv4:ORPort or IPv6:IPv6ORPort remain the same. Existing checks for other whitelist detail changes have also been re-worded and upgraded to warnings. This makes it easier for changes to be identified so operators can be contacted to confirm whether the change is stable.
2016-04-26Add fallbacks to white/blacklist from operator responsesteor (Tim Wilson-Brown)
Also add misbehaving relays to updateFallbackDirs.py blacklist, but leave them commented out in case it's a transient issue, or it's been resolved by the download check fixes. (These relays hang stem's downloader. It's unlikely they'll ever help clients.)
2016-04-15Limit fallbacks from the same operatorteor (Tim Wilson-Brown)
Use IP address, effective family, and contact info to discover and limit fallbacks to one per operator. Also analyse netblock, ports, IP version, and Exit flag, and print the results. Don't exclude any fallbacks from the list because of netblocks, ports, IP version, or Exit flag.
2016-04-15Simplify fallback list outputteor (Tim Wilson-Brown)
When creating the list of fallbacks for a release: * don't output fallback name and contact * sort fallbacks by fingerprint
2016-04-15Select fallbacks by bandwidth rather than consensus weightteor (Tim Wilson-Brown)
But as advertised bandwidth is controlled by relays, use consensus weight and median weight to bandwidth ratio to approximate measured bandwidth. Includes minor comment changes and parameter reordering.
2016-04-15Only count active fallbacks in updateFallbackDirs.pyteor (Tim Wilson-Brown)
Previously, we would cut the list down to 100 fallbacks, then check if they could serve a consensus, and comment them out if they couldn't. This would leave us with fewer than 100 active fallbacks. Now, we stop when there are 100 active fallbacks. Also count fallbacks with identical contact info. Also fix minor logging issues.
2016-04-15Remove fallback directory weightsteor (Tim Wilson-Brown)
Give each fallback a set weight of 10.0 for client selection. Fallbacks must have at least 3000 consensus weight. This is (nominally) 100 times the expected extra load of 20 kilobytes per second (50 GB per month). Fixes issue #17905.
2016-04-15Improve fallback selection and outputteor (Tim Wilson-Brown)
Improve the download test: * Allow IPv4 DirPort checks to be turned off. * Add a timeout to stem's consensus download. * Actually check for download errors, rather than ignoring them. * Simplify the timeout and download error checking logic. Tweak whitelist/blacklist checks to be more robust. Improve logging, make it warn by default. Cleanse fallback comments more thoroughly: * non-printables (yes, ContactInfo can have these) * // comments (don't rely on newlines to prevent // */ escapes)
2016-03-26helper script to highlight undocumented membersNick Mathewson
2016-03-21Fix (most) lintChanges warnings on master.Nick Mathewson
2016-02-28Merge remote-tracking branch 'teor/fallbacks-201602-v2'Nick Mathewson
2016-02-27Update the copyright year.Nick Mathewson
2016-02-27Update default fallback directories for 0.2.8.2-alpha (Feb 2016)teor (Tim Wilson-Brown)
Allow fallback directories which have been stable for 7 days to work around #18050, which causes relays to submit descriptors with 0 DirPorts when restarted. (Particularly during Tor version upgrades.) Ignore low fallback directory count in alpha builds. Set the target count to 50.
2016-02-27Fix minor fallback directory script issues with time zonesteor (Tim Wilson-Brown)
2016-02-27Check if fallback directories can serve the consensus fast enoughteor (Tim Wilson-Brown)
2016-02-10Make the callgraph module-awareNick Mathewson
2016-02-01use sortChanges to fold changes files into changelog. No additional editing ↵Nick Mathewson
or formatting yet.
2016-02-01Fix all the warnings from lintChanges.pyNick Mathewson
2016-01-18Add default fallback directories for the 0.2.8 alpha releasesteor (Tim Wilson-Brown)
Allow fallback directories which have been stable for 30 days to work around #18050, which causes relays to submit descriptors with 0 DirPorts when restarted. (Particularly during Tor version upgrades.) Ignore low fallback directory count in alpha builds.
2016-01-18Fix a display issue in updateFallbackDirs.py outputteor (Tim Wilson-Brown)
2016-01-12Merge remote-tracking branch 'teor/bug17888'Nick Mathewson
2016-01-12Merge remote-tracking branch 'teor/bug17887-v2'Nick Mathewson
2016-01-12Don't limit fallback directory candidates to 500teor (Tim Wilson-Brown)
Only impose the limit when selecting fallback directories for inclusion in tor.
2016-01-12Fix various issues with fallback directory data handlingteor (Tim Wilson-Brown)
* support maximum history age in _avg_generic_history() * fix division-by-zero trap in _avg_generic_history() * skip missing (i.e. null/None) intervals in _avg_generic_history() * Python timedelta.total_seconds() function not available in 2.6; replace with equivalent expression * set DEBUG logging level to make relay exclusion reasons visible * move CUTOFF_GUARD test to end in order to expose more exclusion reasons Patch by "starlight", merge modifications by "teor".
2016-01-12Don't reduce the weight of exits selected as fallback directoriesteor (Tim Wilson-Brown)
When selecting exits as fallback directories, don't reduce their weights. Closes ticket #17888.
2016-01-12Allow fallback directory selection to use day-old datateor (Tim Wilson-Brown)
Allow cached or outdated Onionoo data to be used to choose fallback directories, as long as it's less than a day old. Modify last modified date checks in preparation for Onionoo change
2015-12-16Add Fallback Directory Candidate Selection Scriptteor
"Tor has included a feature to fetch the initial consensus from nodes other than the authorities for a while now. We just haven't shipped a list of alternate locations for clients to go to yet. Reasons why we might want to ship tor with a list of additional places where clients can find the consensus is that it makes authority reachability and BW less important. We want them to have been around and using their current key, address, and port for a while now (120 days), and have been running, a guard, and a v2 directory mirror for most of that time." Features: * whitelist and blacklist for an opt-in/opt-out trial. * excludes BadExits, tor versions that aren't recommended, and low consensus weight directory mirrors. * reduces the weighting of Exits to avoid overloading them. * places limits on the weight of any one fallback. * includes an IPv6 address and orport for each FallbackDir, as implemented in #17327. (Tor won't bootstrap using IPv6 fallbacks until #17840 is merged.) * generated output includes timestamps & Onionoo URL for traceability. * unit test ensures that we successfully load all included default fallback directories. Closes ticket #15775. Patch by "teor". OnionOO script by "weasel", "teor", "gsathya", and "karsten".
2015-10-07update codegen script to work with latest mozillaNick Mathewson
2015-09-22add more clang checkers; find no new bugs.Nick Mathewson
2015-09-22scan-build is more mature now; no need to hardcode the one in my /opt/clang-3.4Nick Mathewson
2015-08-25Document callgraph analysis codeNick Mathewson
2015-08-21Remove tor-fw-helper more thoroughlySebastian Hahn
2015-08-21Observe workqueue_reply_t in check-spacesSebastian Hahn
2015-08-15Hack up the scripts/maint/*callgraph* scripts to do more, betterNick Mathewson
These scripts are now a little more bulletproof, cache data a little better, and generate more information. Notably, they search for the vectors or edges to cut that would lower the size of the largest SCC.
2015-08-10Update callgraph code to find and output strongly connected componentsNick Mathewson
2015-08-05Allow cov-display to take directories as argumentsNick Mathewson
2015-07-30Check in some scripts I use for callgraph analysis.Nick Mathewson