TODO 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. Legend:
  2. SPEC!! - Not specified
  3. SPEC - Spec not finalized
  4. NICK - nick claims
  5. ARMA - arma claims
  6. - Not done
  7. * Top priority
  8. . Partially done
  9. o Done
  10. D Deferred
  11. X Abandoned
  12. For scalability:
  13. - Slightly smarter bandwidth management: use link capacity
  14. intelligently.
  15. - Handle full buffers without totally borking
  16. For dtor:
  17. NICK pre1:
  18. o make all ORs serve the directory too.
  19. o "AuthoritativeDir 1" for dirservers
  20. o non-authorative servers with dirport publish opt dircacheport
  21. o make clients read that and use it.
  22. o make clients able to read a normal dirport from non-trusted OR too
  23. o make ORs parse-and-keep-and-serve the directory they pull down
  24. o authoritativedirservers should pull down directories from
  25. other authdirservers, to merge descriptors.
  26. D Have clients and dirservers preserve reputation info over
  27. reboots.
  28. [Deferred until we know what reputation info we actually want to
  29. maintain. Our current algorithm Couldn't Possibly Work.]
  30. . allow dirservers to serve running-router list separately.
  31. o "get /running-routers" will fetch just this.
  32. o actually make the clients use this sometimes.
  33. o distinguish directory-is-dirty from runninglist-is-dirty
  34. - ORs keep this too, and serve it
  35. - Design: do we need running and non-running lists?
  36. o tor remembers descriptor-lists across reboots.
  37. . Packages define datadir as /var/lib/tor/. If no datadir is defined,
  38. then choose, make, and secure ~/.tor as datadir.
  39. o Adjust tor
  40. o Change torrc.sample
  41. D Change packages (not till 0.0.8 packages!)
  42. - Look in ~/.torrc if no */etc/torrc is found?
  43. o Contact info, pgp fingerprint, comments in router desc.
  44. o Add a ContactInfo line to torrc, which gets published in
  45. descriptor (as opt)
  46. o write tor version at the top of each log file
  47. pre2:
  48. - refer to things by key:
  49. o extend cells need ip:port:identitykeyhash.
  50. . Lookup routers and connections by key digest; accept hex
  51. key digest in place of nicknames.
  52. - Audit all uses of lookup-by-hostname and lookup-by-addr-port
  53. to search by digest when appropriate.
  54. - also use this in intro points and rendezvous points, and
  55. hidserv descs. [XXXX This isn't enough.]
  56. - figure out what to do about ip:port:differentkey
  57. ARMA - ORs connect on demand. attach circuits to new connections, keep
  58. create cells around somewhere, send destroy if fail.
  59. - nickname defaults to first piece of hostname
  60. - running-routers list refers to nickname if verified, else
  61. hash-base64'ed.
  62. pre3:
  63. - users can set their bandwidth, or we auto-detect it:
  64. - advertised bandwidth defaults to 10KB
  65. - advertised bandwidth is the min of max seen in each direction
  66. in the past N seconds.
  67. - not counting "local" connections
  68. - round detected bandwidth up to nearest 10KB
  69. - client software not upload descriptor until:
  70. - you've been running for an hour
  71. - it's sufficiently satisfied with its bandwidth
  72. - it decides it is reachable
  73. - start counting again if your IP ever changes.
  74. - never regenerate identity keys, for now.
  75. - you can set a bit for not-being-an-OR.
  76. - clients choose nodes proportional to advertised bandwidth
  77. - authdirserver includes descriptor and lists as running iff:
  78. - he can connect to you
  79. - he has successfully extended to you
  80. - he has sufficient mean-time-between-failures
  81. - add new "Middleman 1" config variable?
  82. - if torrc not found, exitpolicy reject *:*
  83. ongoing:
  84. . rename/rearrange functions for what file they're in
  85. - generalize our transport: add transport.c in preparation for
  86. http, airhook, etc transport.
  87. For September:
  88. NICK . Windows port
  89. o works as client
  90. - deal with pollhup / reached_eof on all platforms
  91. . robust as a client
  92. . works as server
  93. - can be configured
  94. - robust as a server
  95. . Usable as NT service
  96. - docs for building in win
  97. - installer
  98. - Docs
  99. - FAQ
  100. o overview of tor. how does it work, what's it do, pros and
  101. cons of using it, why should I use it, etc.
  102. - a howto tutorial with examples
  103. o tutorial: how to set up your own tor network
  104. - (need to not hardcode dirservers file in config.c)
  105. . correct, update, polish spec
  106. - document the exposed function api?
  107. - document what we mean by socks.
  108. NICK . packages
  109. . rpm
  110. - find a long-term rpm maintainer
  111. - code
  112. - better warn/info messages
  113. o let tor do resolves.
  114. o extend socks4 to do resolves?
  115. o make script to ask tor for resolves
  116. - tsocks
  117. - gather patches, submit to maintainer
  118. - intercept gethostbyname and others, do resolve via tor
  119. - redesign and thorough code revamp, with particular eye toward:
  120. - support half-open tcp connections
  121. - conn key rotation
  122. - other transports -- http, airhook
  123. - modular introduction mechanism
  124. - allow non-clique topology
  125. Other details and small and hard things:
  126. - tor should be able to have a pool of outgoing IP addresses
  127. that it is able to rotate through. (maybe)
  128. - tie into squid
  129. - buffer size pool, to let a few buffers grow huge or many buffers
  130. grow a bit
  131. - hidserv offerers shouldn't need to define a SocksPort
  132. - when the client fails to pick an intro point for a hidserv,
  133. it should refetch the hidserv desc.
  134. . should maybe make clients exit(1) when bad things happen?
  135. e.g. clock skew.
  136. - should retry exitpolicy end streams even if the end cell didn't
  137. resolve the address for you
  138. - Add '[...truncated]' or similar to truncated log entries (like the directory
  139. in connection_dir_process_inbuf()).
  140. . Make logs handle it better when writing to them fails.
  141. o Dirserver shouldn't put you in running-routers list if you haven't
  142. uploaded a descriptor recently
  143. . Refactor: add own routerinfo to routerlist. Right now, only
  144. router_get_by_nickname knows about 'this router', as a hack to
  145. get circuit_launch_new to do the right thing.
  146. . Scrubbing proxies
  147. - Find an smtp proxy?
  148. . Get socks4a support into Mozilla
  149. - Extend by hostname, not by IP.
  150. - Need a relay teardown cell, separate from one-way ends.
  151. - Make it harder to circumvent bandwidth caps: look at number of bytes
  152. sent across sockets, not number sent inside TLS stream.
  153. - fix router_get_by_* functions so they can get ourselves too,
  154. and audit everything to make sure rend and intro points are
  155. just as likely to be us as not.
  156. ***************************Future tasks:****************************
  157. Rendezvous and hidden services:
  158. make it fast:
  159. - preemptively build and start rendezvous circs.
  160. - preemptively build n-1 hops of intro circs?
  161. - cannibalize general circs?
  162. make it reliable:
  163. - standby/hotswap/redundant services.
  164. - store stuff to disk? dirservers forget service descriptors when
  165. they restart; nodes offering hidden services forget their chosen
  166. intro points when they restart.
  167. make it robust:
  168. - auth mechanisms to let midpoint and bob selectively choose
  169. connection requests.
  170. make it scalable:
  171. - right now the hidserv store/lookup system is run by the dirservers;
  172. this won't scale.
  173. Tor scalability:
  174. Relax clique assumptions.
  175. Redesign how directories are handled.
  176. - Separate running-routers lookup from descriptor list lookup.
  177. - Resolve directory agreement somehow.
  178. - Cache directory on all servers.
  179. Find and remove bottlenecks
  180. - Address linear searches on e.g. circuit and connection lists.
  181. Reputation/memory system, so dirservers can measure people,
  182. and so other people can verify their measurements.
  183. - Need to measure via relay, so it's not distinguishable.
  184. Bandwidth-aware path selection. So people with T3's are picked
  185. more often than people with DSL.
  186. Reliability-aware node selection. So people who are stable are
  187. preferred for long-term circuits such as intro and rend circs,
  188. and general circs for irc, aim, ssh, etc.
  189. Let dissidents get to Tor servers via Tor users. ("Backbone model")
  190. Anonymity improvements:
  191. Is abandoning the circuit the only option when an extend fails, or
  192. can we do something without impacting anonymity too much?
  193. Is exiting from the middle of the circuit always a bad idea?
  194. Helper nodes. Decide how to use them to improve safety.
  195. DNS resolution: need to make tor support resolve requests. Need to write
  196. a script and an interface (including an extension to the socks
  197. protocol) so we can ask it to do resolve requests. Need to patch
  198. tsocks to intercept gethostbyname, else we'll continue leaking it.
  199. Improve path selection algorithms based on routing-zones paper. Be sure
  200. to start and end circuits in different ASs. Ideally, consider AS of
  201. source and destination -- maybe even enter and exit via nearby AS.
  202. Intermediate model, with some delays and mixing.
  203. Add defensive dropping regime?
  204. Make it more correct:
  205. Handle half-open connections: right now we don't support all TCP
  206. streams, at least according to the protocol. But we handle all that
  207. we've seen in the wild.
  208. Support IPv6.
  209. Efficiency/speed/robustness:
  210. Congestion control. Is our current design sufficient once we have heavy
  211. use? Need to measure and tweak, or maybe overhaul.
  212. Allow small cells and large cells on the same network?
  213. Cell buffering and resending. This will allow us to handle broken
  214. circuits as long as the endpoints don't break, plus will allow
  215. connection (tls session key) rotation.
  216. Implement Morphmix, so we can compare its behavior, complexity, etc.
  217. Use cpuworker for more heavy lifting.
  218. - Signing (and verifying) hidserv descriptors
  219. - Signing (and verifying) intro/rend requests
  220. - Signing (and verifying) router descriptors
  221. - Signing (and verifying) directories
  222. - Doing TLS handshake (this is very hard to separate out, though)
  223. Buffer size pool: allocate a maximum size for all buffers, not
  224. a maximum size for each buffer. So we don't have to give up as
  225. quickly (and kill the thickpipe!) when there's congestion.
  226. Exit node caching: tie into squid or other caching web proxy.
  227. Other transport. HTTP, udp, rdp, airhook, etc. May have to do our own
  228. link crypto, unless we can bully openssl into it.
  229. P2P Tor:
  230. Do all the scalability stuff above, first.
  231. Incentives to relay. Not so hard.
  232. Incentives to allow exit. Possibly quite hard.
  233. Sybil defenses without having a human bottleneck.
  234. How to gather random sample of nodes.
  235. How to handle nodelist recommendations.
  236. Consider incremental switches: a p2p tor with only 50 users has
  237. different anonymity properties than one with 10k users, and should
  238. be treated differently.