Roger Dingledine [Fri, 17 Oct 2008 22:08:49 +0000 (22:08 +0000)]
backport candidate:
The "ClientDNSRejectInternalAddresses" config option wasn't being
consistently obeyed: if an exit relay refuses a stream because its
exit policy doesn't allow it, we would remember what IP address
the relay said the destination address resolves to, even if it's
an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
Roger Dingledine [Wed, 15 Oct 2008 20:59:48 +0000 (20:59 +0000)]
patch4 from proposal 155:
Hidden services start out building five intro circuits rather
than three, and when the first three finish they publish a service
descriptor using those. Now we publish our service descriptor much
faster after restart.
Roger Dingledine [Wed, 15 Oct 2008 18:52:06 +0000 (18:52 +0000)]
add patch2 from proposal 155:
Launch a second client-side introduction circuit in parallel
after a delay of 15 seconds (based on work by Christian Wilms).
Nick Mathewson [Tue, 14 Oct 2008 17:05:52 +0000 (17:05 +0000)]
Patch from rovv: when we have no pending streams, choose exits with choose_good_exit_server_general() rather than with circuit_get_unhandled_ports() and friends. Bugfix on 0.1.1.x, at least.
Roger Dingledine [Mon, 13 Oct 2008 03:34:29 +0000 (03:34 +0000)]
Minor fix in the warning messages when you're having problems
bootstrapping; also, be more forgiving of bootstrap problems when
we're still making incremental progress on a given bootstrap phase.
Make rend_cache_store() use the same return error codes as its v2
equivalent: I got a lonely "Failed to fetch rendezvous descriptor."
in my log file, even when the connection worked.
Nick Mathewson [Mon, 29 Sep 2008 14:53:53 +0000 (14:53 +0000)]
Patch from mwenge: update TrackHostExits mapping expiry times when the mappings are used, so that they expire a while after their last use, not a while after their creation.
Roger Dingledine [Mon, 29 Sep 2008 10:09:05 +0000 (10:09 +0000)]
If we have correct permissions on $datadir, we complain to stdout
and fail to start. But dangerous permissions on
$datadir/cached-status/ would cause us to open a log and complain
there. Now complain to stdout and fail to start in both cases. Fixes
bug 820, reported by seeess.
Roger Dingledine [Mon, 29 Sep 2008 09:36:42 +0000 (09:36 +0000)]
Fix a bug where an unreachable relay would establish enough
reachability testing circuits to do a bandwidth test -- if
we already have a connection to the middle hop of the testing
circuit, then it could establish the last hop by using the existing
connection. Bugfix on 0.1.2.2-alpha, exposed when we made testing
circuits no longer use entry guards in 0.2.1.3-alpha.
Nick Mathewson [Fri, 26 Sep 2008 18:02:48 +0000 (18:02 +0000)]
Code to serve a current stability calculations from /tor/dbg-stability.txt. Untested: somebody please run this on an authority and let me know if it is broken.
Nick Mathewson [Thu, 25 Sep 2008 20:21:35 +0000 (20:21 +0000)]
Add country-code support to configured node lists to implement the ever-popular "no exits in Monaco" feature (ExcludeExitNodes {MC}). Also allow country codes and IP ranges in ExitNodes. (EntryNodes needs more work.) Based on code by Robert Hogan. Needs more testing.
Nick Mathewson [Tue, 23 Sep 2008 20:25:01 +0000 (20:25 +0000)]
Patch from roger for 752, but with more comments: When we get an A.B.exit:P address, and B would reject most connections to P, but we do not know whether it would allow A, then allow the connection to procede. Bugfix, amusingly, on 0.0.9rc5.
Nick Mathewson [Mon, 22 Sep 2008 20:06:25 +0000 (20:06 +0000)]
Oops; we need to make sure that DNS request names are matched in the _questions_ section of the replies. Rejecting answers whether the _answers_ section did not match made us reject A records waiting at the end of a CNAME record. Bug 823.
Roger Dingledine [Sat, 13 Sep 2008 10:04:42 +0000 (10:04 +0000)]
Allow ports 465 and 587 in the default exit policy again. We had
rejected them in 0.1.0.15, because back in 2005 they were commonly
misconfigured and ended up as spam targets. We hear they are better
locked down these days.