TODO 10 KB

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