Feature #5646

bridge mode vs tor restarts

Added by Tails 2013-07-18 07:43:58 . Updated 2013-07-19 01:47:28 .

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Target version:
Start date:
Due date:
% Done:

0%

Feature Branch:
Type of work:
Code
Blueprint:

Starter:
Affected tool:
Deliverable for:

Description

If Tor restarts during "bridge mode", Tor will lose any bridge info input by the user through Vidalia, bringing Tor to an inactive state. This is because options set by a controller, like Vidalia, aren’t saved to torrc (atleast for us where Vidalia doesn’t have write access to it), but are only kept in Tor’s in-memory state.

This can happen when:

  • tordate restarts Tor during bootstrap, which happens when the system clock is too off compared to the consensus downloaded through the bridge.
  • unsafe-browser restarts Tor on shutdown if Tor isn’t working.

The inevitable mismatches between what’s in torrc, a running Tor’s current state, and any Tor controllers configurations are troublesome to handle. The same goes with Vidalia’s inability to "reconnect" to Tor if it restarts, which would fix this particular problem. I suspect that’s largely an artifact from Vidalia being designed to completely own it’s Tor instance by even starting/stopping it, which makes us, users of a system-wide Tor instance, prone to errors like this.

One possible fix: we should aim for this: whenever Tor restarts, Vidalia should restart immediately after. Since there is some additional logic to this (e.g. if Vidalia isn’t running but Tor restarts we don’t want to start Vidalia, is is the case in the NM hook 10-tor.sh) we may want to create yet another wrapper that we always use when at least restarting Tor.

Implemented in the branch bugfix/bridge_mode_vs_tor_restarts, merged into experimental. Candidate for Tail 0.15.

done in 0.15.


Subtasks


History

#1 Updated by intrigeri 2013-07-19 01:47:29

  • Type of work set to Code

Type of work: Code