120-shutdown-descriptors.txt 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. Filename: 120-shutdown-descriptors.txt
  2. Title: Shutdown descriptors when Tor servers stop
  3. Author: Roger Dingledine
  4. Created: 15-Aug-2007
  5. Status: Dead
  6. [Proposal dead as of 11 Jul 2008. The point of this proposal was to give
  7. routers a good way to get out of the networkstatus early, but proposal
  8. 138 (already implemented) has achieved this.]
  9. Overview:
  10. Tor servers should publish a last descriptor whenever they shut down,
  11. to let others know that they are no longer offering service.
  12. The Problem:
  13. The main reason for this is in reaction to Internet services that want
  14. to treat connections from the Tor network differently. Right now,
  15. if a user experiments with turning on the "relay" functionality, he
  16. is punished by being locked out of some websites, some IRC networks,
  17. etc --- and this lockout persists for several days even after he turns
  18. the server off.
  19. Design:
  20. During the "slow shutdown" period if exiting, or shortly after the
  21. user sets his ORPort back to 0 if not exiting, Tor should publish a
  22. final descriptor with the following characteristics:
  23. 1) Exit policy is listed as "reject *:*"
  24. 2) It includes a new entry called "opt shutdown 1"
  25. The first step is so current blacklists will no longer list this node
  26. as exiting to whatever the service is.
  27. The second step is so directory authorities can avoid wasting time
  28. doing reachability testing. Authorities should automatically not list
  29. as Running any router whose latest descriptor says it shut down.
  30. [I originally had in mind a third step --- Advertised bandwidth capacity
  31. is listed as "0" --- so current Tor clients will skip over this node
  32. when building most circuits. But since clients won't fetch descriptors
  33. from nodes not listed as Running, this step seems pointless. -RD]
  34. Spec:
  35. TBD but should be pretty straightforward.
  36. Security issues:
  37. Now external people can learn exactly when a node stopped offering
  38. relay service. How bad is this? I can see a few minor attacks based
  39. on this knowledge, but on the other hand as it is we don't really take
  40. any steps to keep this information secret.
  41. Overhead issues:
  42. We are creating more descriptors that want to be remembered. However,
  43. since the router won't be marked as Running, ordinary clients won't
  44. fetch the shutdown descriptors. Caches will, though. I hope this is ok.
  45. Implementation:
  46. To make things easy, we should publish the shutdown descriptor only
  47. on controlled shutdown (SIGINT as opposed to SIGTERM). That would
  48. leave enough time for publishing that we probably wouldn't need any
  49. extra synchronization code.
  50. If that turns out to be too unintuitive for users, I could imagine doing
  51. it on SIGTERMs too, and just delaying exit until we had successfully
  52. published to at least one authority, at which point we'd hope that it
  53. propagated from there.
  54. Acknowledgements:
  55. tup suggested this idea.
  56. Comments:
  57. 2) Maybe add a rule "Don't do this for hibernation if we expect to wake
  58. up before the next consensus is published"?
  59. - NM 9 Oct 2007