ChangeLog 85 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706
  1. Changes in version 0.1.1.6-alpha - 2005-09-09
  2. o Fixes on 0.1.1.5-alpha:
  3. - We broke fascistfirewall in 0.1.1.5-alpha. Oops.
  4. - Fix segfault in unit tests in 0.1.1.5-alpha. Oops.
  5. - Fix bug with tor_memmem finding a match at the end of the string.
  6. - Make unit tests run without segfaulting.
  7. - Resolve some solaris x86 compile warnings.
  8. - Handle duplicate lines in approved-routers files without warning.
  9. - Fix bug where as soon as a server refused any requests due to his
  10. exit policy (e.g. when we ask for localhost and he tells us that's
  11. 127.0.0.1 and he won't do it), we decided he wasn't obeying his
  12. exit policy using him for any exits.
  13. - Only do openssl hardware accelerator stuff if openssl version is
  14. at least 0.9.7.
  15. o New controller features/fixes:
  16. - Add a "RESETCONF" command so you can set config options like
  17. AllowUnverifiedNodes and LongLivedPorts to "". Also, if you give
  18. a config option in the torrc with no value, then it clears it
  19. entirely (rather than setting it to its default).
  20. - Add a "GETINFO config-file" to tell us where torrc is.
  21. - Avoid sending blank lines when GETINFO replies should be empty.
  22. - Add a QUIT command for the controller (for using it manually).
  23. - Fix a bug in SAVECONF that was adding default dirservers and
  24. other redundant entries to the torrc file.
  25. o Start on the new directory design:
  26. - Generate, publish, cache, serve new network-status format.
  27. - Publish individual descriptors (by fingerprint, by "all", and by
  28. "tell me yours").
  29. - Publish client and server recommended versions separately.
  30. - Allow tor_gzip_uncompress() to handle multiple concatenated
  31. compressed strings. Serve compressed groups of router
  32. descriptors. The compression logic here could be more
  33. memory-efficient.
  34. - Distinguish v1 authorities (all currently trusted directories)
  35. from v2 authorities (all trusted directories).
  36. - Change DirServers config line to note which dirs are v1 authorities.
  37. - Add configuration option "V1AuthoritativeDirectory 1" which
  38. moria1, moria2, and tor26 should set.
  39. - Remove option when getting directory cache to see whether they
  40. support running-routers; they all do now. Replace it with one
  41. to see whether caches support v2 stuff.
  42. o New features:
  43. - Dirservers now do their own external reachability testing of each
  44. Tor server, and only list them as running if they've been found to
  45. be reachable. We also send back warnings to the server's logs if
  46. it uploads a descriptor that we already believe is unreachable.
  47. - Implement exit enclaves: if we know an IP address for the
  48. destination, and there's a running Tor server at that address
  49. which allows exit to the destination, then extend the circuit to
  50. that exit first. This provides end-to-end encryption and end-to-end
  51. authentication. Also, if the user wants a .exit address or enclave,
  52. use 4 hops rather than 3, and cannibalize a general circ for it
  53. if you can.
  54. - Permit transitioning from ORPort=0 to ORPort!=0, and back, from the
  55. controller. Also, rotate dns and cpu workers if the controller
  56. changes options that will affect them; and initialize the dns
  57. worker cache tree whether or not we start out as a server.
  58. - Only upload a new server descriptor when options change, 18
  59. hours have passed, uptime is reset, or bandwidth changes a lot.
  60. - Check [X-]Forwarded-For headers in HTTP requests when generating
  61. log messages. This lets people run dirservers (and caches) behind
  62. Apache but still know which IP addresses are causing warnings.
  63. o Config option changes:
  64. - Replace (Fascist)Firewall* config options with a new
  65. ReachableAddresses option that understands address policies.
  66. For example, "ReachableAddresses *:80,*:443"
  67. - Get rid of IgnoreVersion undocumented config option, and make us
  68. only warn, never exit, when we're running an obsolete version.
  69. - Make MonthlyAccountingStart config option truly obsolete now.
  70. o Fixes on 0.1.0.x:
  71. - Reject ports 465 and 587 in the default exit policy, since
  72. people have started using them for spam too.
  73. - It turns out we couldn't bootstrap a network since we added
  74. reachability detection in 0.1.0.1-rc. Good thing the Tor network
  75. has never gone down. Add an AssumeReachable config option to let
  76. servers and dirservers bootstrap. When we're trying to build a
  77. high-uptime or high-bandwidth circuit but there aren't enough
  78. suitable servers, try being less picky rather than simply failing.
  79. - Our logic to decide if the OR we connected to was the right guy
  80. was brittle and maybe open to a mitm for unverified routers.
  81. - We weren't cannibalizing circuits correctly for
  82. CIRCUIT_PURPOSE_C_ESTABLISH_REND and
  83. CIRCUIT_PURPOSE_S_ESTABLISH_INTRO, so we were being forced to
  84. build those from scratch. This should make hidden services faster.
  85. - Predict required circuits better, with an eye toward making hidden
  86. services faster on the service end.
  87. - Retry streams if the exit node sends back a 'misc' failure. This
  88. should result in fewer random failures. Also, after failing
  89. from resolve failed or misc, reset the num failures, so we give
  90. it a fair shake next time we try.
  91. - Clean up the rendezvous warn log msgs, and downgrade some to info.
  92. - Reduce severity on logs about dns worker spawning and culling.
  93. - When we're shutting down and we do something like try to post a
  94. server descriptor or rendezvous descriptor, don't complain that
  95. we seem to be unreachable. Of course we are, we're shutting down.
  96. - Add TTLs to RESOLVED, CONNECTED, and END_REASON_EXITPOLICY cells.
  97. We don't use them yet, but maybe one day our DNS resolver will be
  98. able to discover them.
  99. - Make ContactInfo mandatory for authoritative directory servers.
  100. - Require server descriptors to list IPv4 addresses -- hostnames
  101. are no longer allowed. This also fixes some potential security
  102. problems with people providing hostnames as their address and then
  103. preferentially resolving them to partition users.
  104. - Change log line for unreachability to explicitly suggest /etc/hosts
  105. as the culprit. Also make it clearer what IP address and ports we're
  106. testing for reachability.
  107. - Put quotes around user-supplied strings when logging so users are
  108. more likely to realize if they add bad characters (like quotes)
  109. to the torrc.
  110. - Let auth dir servers start without specifying an Address config
  111. option.
  112. - Make unit tests (and other invocations that aren't the real Tor)
  113. run without launching listeners, creating subdirectories, and so on.
  114. Changes in version 0.1.1.5-alpha - 2005-08-08
  115. o Bugfixes included in 0.1.0.14.
  116. o Bugfixes on 0.1.0.x:
  117. - If you write "HiddenServicePort 6667 127.0.0.1 6668" in your
  118. torrc rather than "HiddenServicePort 6667 127.0.0.1:6668",
  119. it would silently using ignore the 6668.
  120. Changes in version 0.1.1.4-alpha - 2005-08-04
  121. o Bugfixes included in 0.1.0.13.
  122. o Features:
  123. - Improve tor_gettimeofday() granularity on windows.
  124. - Make clients regenerate their keys when their IP address changes.
  125. - Implement some more GETINFO goodness: expose helper nodes, config
  126. options, getinfo keys.
  127. Changes in version 0.1.1.3-alpha - 2005-07-25
  128. o Bugfixes on 0.1.1.2-alpha:
  129. - Fix a bug in handling the controller's "post descriptor"
  130. function.
  131. - Fix several bugs in handling the controller's "extend circuit"
  132. function.
  133. - Fix a bug in handling the controller's "stream status" event.
  134. - Fix an assert failure if we have a controller listening for
  135. circuit events and we go offline.
  136. - Re-allow hidden service descriptors to publish 0 intro points.
  137. - Fix a crash when generating your hidden service descriptor if
  138. you don't have enough intro points already.
  139. o New features on 0.1.1.2-alpha:
  140. - New controller function "getinfo accounting", to ask how
  141. many bytes we've used in this time period.
  142. - Experimental support for helper nodes: a lot of the risk from
  143. a small static adversary comes because users pick new random
  144. nodes every time they rebuild a circuit. Now users will try to
  145. stick to the same small set of entry nodes if they can. Not
  146. enabled by default yet.
  147. o Bugfixes on 0.1.0.12:
  148. - If you're an auth dir server, always publish your dirport,
  149. even if you haven't yet found yourself to be reachable.
  150. - Fix a size_t underflow in smartlist_join_strings2() that made
  151. it do bad things when you hand it an empty smartlist.
  152. Changes in version 0.1.1.2-alpha - 2005-07-14
  153. o New directory servers:
  154. - tor26 has changed IP address.
  155. o Bugfixes on 0.1.0.x, crashes/leaks:
  156. - Port the servers-not-obeying-their-exit-policies fix from 0.1.0.11.
  157. - Fix an fd leak in start_daemon().
  158. - On Windows, you can't always reopen a port right after you've
  159. closed it. So change retry_listeners() to only close and re-open
  160. ports that have changed.
  161. - Fix a possible double-free in tor_gzip_uncompress().
  162. o Bugfixes on 0.1.0.x, usability:
  163. - When tor_socketpair() fails in Windows, give a reasonable
  164. Windows-style errno back.
  165. - Let people type "tor --install" as well as "tor -install" when they
  166. want to make it an NT service.
  167. - NT service patch from Matt Edman to improve error messages.
  168. - When the controller asks for a config option with an abbreviated
  169. name, give the full name in our response.
  170. - Correct the man page entry on TrackHostExitsExpire.
  171. - Looks like we were never delivering deflated (i.e. compressed)
  172. running-routers lists, even when asked. Oops.
  173. - When --disable-threads is set, do not search for or link against
  174. pthreads libraries.
  175. o Bugfixes on 0.1.1.x:
  176. - Fix a seg fault with autodetecting which controller version is
  177. being used.
  178. o Features:
  179. - New hidden service descriptor format: put a version in it, and
  180. let people specify introduction/rendezvous points that aren't
  181. in "the directory" (which is subjective anyway).
  182. - Allow the DEBUG controller event to work again. Mark certain log
  183. entries as "don't tell this to controllers", so we avoid cycles.
  184. Changes in version 0.1.1.1-alpha - 2005-06-29
  185. o Bugfixes:
  186. - Make OS X init script check for missing argument, so we don't
  187. confuse users who invoke it incorrectly.
  188. - Fix a seg fault in "tor --hash-password foo".
  189. - Fix a possible way to DoS dirservers.
  190. - When we complain that your exit policy implicitly allows local or
  191. private address spaces, name them explicitly so operators can
  192. fix it.
  193. - Make the log message less scary when all the dirservers are
  194. temporarily unreachable.
  195. - We were printing the number of idle dns workers incorrectly when
  196. culling them.
  197. o Features:
  198. - Revised controller protocol (version 1) that uses ascii rather
  199. than binary. Add supporting libraries in python and java so you
  200. can use the controller from your applications without caring how
  201. our protocol works.
  202. - Spiffy new support for crypto hardware accelerators. Can somebody
  203. test this?
  204. Changes in version 0.1.0.14 - 2005-08-08
  205. o Bugfixes on 0.1.0.x:
  206. - Fix the other half of the bug with crypto handshakes.
  207. - Fix an assert trigger if you send a 'signal term' via the
  208. controller when it's listening for 'event info' messages.
  209. Changes in version 0.1.0.13 - 2005-08-04
  210. o Bugfixes on 0.1.0.x:
  211. - Fix a critical bug in the security of our crypto handshakes.
  212. - Fix a size_t underflow in smartlist_join_strings2() that made
  213. it do bad things when you hand it an empty smartlist.
  214. - Fix Windows installer to ship Tor license (thanks to Aphex for
  215. pointing out this oversight) and put a link to the doc directory
  216. in the start menu.
  217. - Explicitly set no-unaligned-access for sparc: it turns out the
  218. new gcc's let you compile broken code, but that doesn't make it
  219. not-broken.
  220. Changes in version 0.1.0.12 - 2005-07-18
  221. o New directory servers:
  222. - tor26 has changed IP address.
  223. o Bugfixes on 0.1.0.x:
  224. - Fix a possible double-free in tor_gzip_uncompress().
  225. - When --disable-threads is set, do not search for or link against
  226. pthreads libraries.
  227. - Don't trigger an assert if an authoritative directory server
  228. claims its dirport is 0.
  229. - Fix bug with removing Tor as an NT service: some people were
  230. getting "The service did not return an error." Thanks to Matt
  231. Edman for the fix.
  232. Changes in version 0.1.0.11 - 2005-06-30
  233. o Bugfixes on 0.1.0.x:
  234. - Fix major security bug: servers were disregarding their
  235. exit policies if clients behaved unexpectedly.
  236. - Make OS X init script check for missing argument, so we don't
  237. confuse users who invoke it incorrectly.
  238. - Fix a seg fault in "tor --hash-password foo".
  239. - The MAPADDRESS control command was broken.
  240. Changes in version 0.1.0.10 - 2005-06-14
  241. o Fixes on Win32:
  242. - Make NT services work and start on startup on Win32 (based on
  243. patch by Matt Edman). See the FAQ entry for details.
  244. - Make 'platform' string in descriptor more accurate for Win32
  245. servers, so it's not just "unknown platform".
  246. - REUSEADDR on normal platforms means you can rebind to the port
  247. right after somebody else has let it go. But REUSEADDR on Win32
  248. means you can bind to the port _even when somebody else already
  249. has it bound_! So, don't do that on Win32.
  250. - Clean up the log messages when starting on Win32 with no config
  251. file.
  252. - Allow seeding the RNG on Win32 even when you're not running as
  253. Administrator. If seeding the RNG on Win32 fails, quit.
  254. o Assert / crash bugs:
  255. - Refuse relay cells that claim to have a length larger than the
  256. maximum allowed. This prevents a potential attack that could read
  257. arbitrary memory (e.g. keys) from an exit server's process.
  258. - If unofficial Tor clients connect and send weird TLS certs, our
  259. Tor server triggers an assert. Stop asserting, and start handling
  260. TLS errors better in other situations too.
  261. - Fix a race condition that can trigger an assert when we have a
  262. pending create cell and an OR connection attempt fails.
  263. o Resource leaks:
  264. - Use pthreads for worker processes rather than forking. This was
  265. forced because when we forked, we ended up wasting a lot of
  266. duplicate ram over time.
  267. - Also switch to foo_r versions of some library calls to allow
  268. reentry and threadsafeness.
  269. - Implement --disable-threads configure option. Disable threads on
  270. netbsd and openbsd by default, because they have no reentrant
  271. resolver functions (!), and on solaris since it has other
  272. threading issues.
  273. - Fix possible bug on threading platforms (e.g. win32) which was
  274. leaking a file descriptor whenever a cpuworker or dnsworker died.
  275. - Fix a minor memory leak when somebody establishes an introduction
  276. point at your Tor server.
  277. - Fix possible memory leak in tor_lookup_hostname(). (Thanks to
  278. Adam Langley.)
  279. - Add ./configure --with-dmalloc option, to track memory leaks.
  280. - And try to free all memory on closing, so we can detect what
  281. we're leaking.
  282. o Protocol correctness:
  283. - When we've connected to an OR and handshaked but didn't like
  284. the result, we were closing the conn without sending destroy
  285. cells back for pending circuits. Now send those destroys.
  286. - Start sending 'truncated' cells back rather than destroy cells
  287. if the circuit closes in front of you. This means we won't have
  288. to abandon partially built circuits.
  289. - Handle changed router status correctly when dirserver reloads
  290. fingerprint file. We used to be dropping all unverified descriptors
  291. right then. The bug was hidden because we would immediately
  292. fetch a directory from another dirserver, which would include the
  293. descriptors we just dropped.
  294. - Revise tor-spec to add more/better stream end reasons.
  295. - Revise all calls to connection_edge_end to avoid sending 'misc',
  296. and to take errno into account where possible.
  297. - Client now retries when streams end early for 'hibernating' or
  298. 'resource limit' reasons, rather than failing them.
  299. - Try to be more zealous about calling connection_edge_end when
  300. things go bad with edge conns in connection.c.
  301. o Robustness improvements:
  302. - Better handling for heterogeneous / unreliable nodes:
  303. - Annotate circuits with whether they aim to contain high uptime
  304. nodes and/or high capacity nodes. When building circuits, choose
  305. appropriate nodes.
  306. - This means that every single node in an intro rend circuit,
  307. not just the last one, will have a minimum uptime.
  308. - New config option LongLivedPorts to indicate application streams
  309. that will want high uptime circuits.
  310. - Servers reset uptime when a dir fetch entirely fails. This
  311. hopefully reflects stability of the server's network connectivity.
  312. - If somebody starts his tor server in Jan 2004 and then fixes his
  313. clock, don't make his published uptime be a year.
  314. - Reset published uptime when we wake up from hibernation.
  315. - Introduce a notion of 'internal' circs, which are chosen without
  316. regard to the exit policy of the last hop. Intro and rendezvous
  317. circs must be internal circs, to avoid leaking information. Resolve
  318. and connect streams can use internal circs if they want.
  319. - New circuit pooling algorithm: keep track of what destination ports
  320. we've used recently (start out assuming we'll want to use 80), and
  321. make sure to have enough circs around to satisfy these ports. Also
  322. make sure to have 2 internal circs around if we've required internal
  323. circs lately (and with high uptime if we've seen that lately too).
  324. - Turn addr_policy_compare from a tristate to a quadstate; this should
  325. help address our "Ah, you allow 1.2.3.4:80. You are a good choice
  326. for google.com" problem.
  327. - When a client asks us for a dir mirror and we don't have one,
  328. launch an attempt to get a fresh one.
  329. - First cut at support for "create-fast" cells. Clients can use
  330. these when extending to their first hop, since the TLS already
  331. provides forward secrecy and authentication. Not enabled on
  332. clients yet.
  333. o Reachability testing.
  334. - Your Tor server will automatically try to see if its ORPort and
  335. DirPort are reachable from the outside, and it won't upload its
  336. descriptor until it decides at least ORPort is reachable (when
  337. DirPort is not yet found reachable, publish it as zero).
  338. - When building testing circs for ORPort testing, use only
  339. high-bandwidth nodes, so fewer circuits fail.
  340. - Notice when our IP changes, and reset stats/uptime/reachability.
  341. - Authdirservers don't do ORPort reachability detection, since
  342. they're in clique mode, so it will be rare to find a server not
  343. already connected to them.
  344. - Authdirservers now automatically approve nodes running 0.1.0.2-rc
  345. or later.
  346. o Dirserver fixes:
  347. - Now we allow two unverified servers with the same nickname
  348. but different keys. But if a nickname is verified, only that
  349. nickname+key are allowed.
  350. - If you're an authdirserver connecting to an address:port,
  351. and it's not the OR you were expecting, forget about that
  352. descriptor. If he *was* the one you were expecting, then forget
  353. about all other descriptors for that address:port.
  354. - Allow servers to publish descriptors from 12 hours in the future.
  355. Corollary: only whine about clock skew from the dirserver if
  356. he's a trusted dirserver (since now even verified servers could
  357. have quite wrong clocks).
  358. - Require servers that use the default dirservers to have public IP
  359. addresses. We have too many servers that are configured with private
  360. IPs and their admins never notice the log entries complaining that
  361. their descriptors are being rejected.
  362. o Efficiency improvements:
  363. - Use libevent. Now we can use faster async cores (like epoll, kpoll,
  364. and /dev/poll), and hopefully work better on Windows too.
  365. - Apple's OS X 10.4.0 ships with a broken kqueue API, and using
  366. kqueue on 10.3.9 causes kernel panics. Don't use kqueue on OS X.
  367. - Find libevent even if it's hiding in /usr/local/ and your
  368. CFLAGS and LDFLAGS don't tell you to look there.
  369. - Be able to link with libevent as a shared library (the default
  370. after 1.0d), even if it's hiding in /usr/local/lib and even
  371. if you haven't added /usr/local/lib to your /etc/ld.so.conf,
  372. assuming you're running gcc. Otherwise fail and give a useful
  373. error message.
  374. - Switch to a new buffer management algorithm, which tries to avoid
  375. reallocing and copying quite as much. In first tests it looks like
  376. it uses *more* memory on average, but less cpu.
  377. - Switch our internal buffers implementation to use a ring buffer,
  378. to hopefully improve performance for fast servers a lot.
  379. - Reenable the part of the code that tries to flush as soon as an
  380. OR outbuf has a full TLS record available. Perhaps this will make
  381. OR outbufs not grow as huge except in rare cases, thus saving lots
  382. of CPU time plus memory.
  383. - Improve performance for dirservers: stop re-parsing the whole
  384. directory every time you regenerate it.
  385. - Keep a big splay tree of (circid,orconn)->circuit mappings to make
  386. it much faster to look up a circuit for each relay cell.
  387. - Remove most calls to assert_all_pending_dns_resolves_ok(),
  388. since they're eating our cpu on exit nodes.
  389. - Stop wasting time doing a case insensitive comparison for every
  390. dns name every time we do any lookup. Canonicalize the names to
  391. lowercase when you first see them.
  392. o Hidden services:
  393. - Handle unavailable hidden services better. Handle slow or busy
  394. hidden services better.
  395. - Cannibalize GENERAL circs to be C_REND, C_INTRO, S_INTRO, and S_REND
  396. circ as necessary, if there are any completed ones lying around
  397. when we try to launch one.
  398. - Make hidden services try to establish a rendezvous for 30 seconds
  399. after fetching the descriptor, rather than for n (where n=3)
  400. attempts to build a circuit.
  401. - Adjust maximum skew and age for rendezvous descriptors: let skew
  402. be 48 hours rather than 90 minutes.
  403. - Reject malformed .onion addresses rather then passing them on as
  404. normal web requests.
  405. o Controller:
  406. - More Tor controller support. See
  407. http://tor.eff.org/doc/control-spec.txt for all the new features,
  408. including signals to emulate unix signals from any platform;
  409. redirectstream; extendcircuit; mapaddress; getinfo; postdescriptor;
  410. closestream; closecircuit; etc.
  411. - Encode hashed controller passwords in hex instead of base64,
  412. to make it easier to write controllers.
  413. - Revise control spec and implementation to allow all log messages to
  414. be sent to controller with their severities intact (suggested by
  415. Matt Edman). Disable debug-level logs while delivering a debug-level
  416. log to the controller, to prevent loop. Update TorControl to handle
  417. new log event types.
  418. o New config options/defaults:
  419. - Begin scrubbing sensitive strings from logs by default. Turn off
  420. the config option SafeLogging if you need to do debugging.
  421. - New exit policy: accept most low-numbered ports, rather than
  422. rejecting most low-numbered ports.
  423. - Put a note in the torrc about abuse potential with the default
  424. exit policy.
  425. - Add support for CONNECTing through https proxies, with "HttpsProxy"
  426. config option.
  427. - Add HttpProxyAuthenticator and HttpsProxyAuthenticator support
  428. based on patch from Adam Langley (basic auth only).
  429. - Bump the default BandwidthRate from 1 MB to 2 MB, to accommodate
  430. the fast servers that have been joining lately. (Clients are now
  431. willing to load balance over up to 2 MB of advertised bandwidth
  432. capacity too.)
  433. - New config option MaxAdvertisedBandwidth which lets you advertise
  434. a low bandwidthrate (to not attract as many circuits) while still
  435. allowing a higher bandwidthrate in reality.
  436. - Require BandwidthRate to be at least 20kB/s for servers.
  437. - Add a NoPublish config option, so you can be a server (e.g. for
  438. testing running Tor servers in other Tor networks) without
  439. publishing your descriptor to the primary dirservers.
  440. - Add a new AddressMap config directive to rewrite incoming socks
  441. addresses. This lets you, for example, declare an implicit
  442. required exit node for certain sites.
  443. - Add a new TrackHostExits config directive to trigger addressmaps
  444. for certain incoming socks addresses -- for sites that break when
  445. your exit keeps changing (based on patch from Mike Perry).
  446. - Split NewCircuitPeriod option into NewCircuitPeriod (30 secs),
  447. which describes how often we retry making new circuits if current
  448. ones are dirty, and MaxCircuitDirtiness (10 mins), which describes
  449. how long we're willing to make use of an already-dirty circuit.
  450. - Change compiled-in SHUTDOWN_WAIT_LENGTH from a fixed 30 secs to
  451. a config option "ShutdownWaitLength" (when using kill -INT on
  452. servers).
  453. - Fix an edge case in parsing config options: if they say "--"
  454. on the commandline, it's not a config option (thanks weasel).
  455. - New config option DirAllowPrivateAddresses for authdirservers.
  456. Now by default they refuse router descriptors that have non-IP or
  457. private-IP addresses.
  458. - Change DirFetchPeriod/StatusFetchPeriod to have a special "Be
  459. smart" default value: low for servers and high for clients.
  460. - Some people were putting "Address " in their torrc, and they had
  461. a buggy resolver that resolved " " to 0.0.0.0. Oops.
  462. - If DataDir is ~/.tor, and that expands to /.tor, then default to
  463. LOCALSTATEDIR/tor instead.
  464. - Implement --verify-config command-line option to check if your torrc
  465. is valid without actually launching Tor.
  466. o Logging improvements:
  467. - When dirservers refuse a server descriptor, we now log its
  468. contactinfo, platform, and the poster's IP address.
  469. - Only warn once per nickname from add_nickname_list_to_smartlist()
  470. per failure, so an entrynode or exitnode choice that's down won't
  471. yell so much.
  472. - When we're connecting to an OR and he's got a different nickname/key
  473. than we were expecting, only complain loudly if we're an OP or a
  474. dirserver. Complaining loudly to the OR admins just confuses them.
  475. - Whine at you if you're a server and you don't set your contactinfo.
  476. - Warn when exit policy implicitly allows local addresses.
  477. - Give a better warning when some other server advertises an
  478. ORPort that is actually an apache running ssl.
  479. - If we get an incredibly skewed timestamp from a dirserver mirror
  480. that isn't a verified OR, don't warn -- it's probably him that's
  481. wrong.
  482. - When a dirserver causes you to give a warn, mention which dirserver
  483. it was.
  484. - Initialize libevent later in the startup process, so the logs are
  485. already established by the time we start logging libevent warns.
  486. - Use correct errno on win32 if libevent fails.
  487. - Check and warn about known-bad/slow libevent versions.
  488. - Stop warning about sigpipes in the logs. We're going to
  489. pretend that getting these occassionally is normal and fine.
  490. o New contrib scripts:
  491. - New experimental script tor/contrib/exitlist: a simple python
  492. script to parse directories and find Tor nodes that exit to listed
  493. addresses/ports.
  494. - New experimental script tor/contrib/ExerciseServer.py (needs more
  495. work) that uses the controller interface to build circuits and
  496. fetch pages over them. This will help us bootstrap servers that
  497. have lots of capacity but haven't noticed it yet.
  498. - New experimental script tor/contrib/PathDemo.py (needs more work)
  499. that uses the controller interface to let you choose whole paths
  500. via addresses like
  501. "<hostname>.<path,separated by dots>.<length of path>.path"
  502. - New contributed script "privoxy-tor-toggle" to toggle whether
  503. Privoxy uses Tor. Seems to be configured for Debian by default.
  504. - Have torctl.in/tor.sh.in check for location of su binary (needed
  505. on FreeBSD)
  506. o Misc bugfixes:
  507. - chdir() to your datadirectory at the *end* of the daemonize process,
  508. not the beginning. This was a problem because the first time you
  509. run tor, if your datadir isn't there, and you have runasdaemon set
  510. to 1, it will try to chdir to it before it tries to create it. Oops.
  511. - Fix several double-mark-for-close bugs, e.g. where we were finding
  512. a conn for a cell even if that conn is already marked for close.
  513. - Stop most cases of hanging up on a socks connection without sending
  514. the socks reject.
  515. - Fix a bug in the RPM package: set home directory for _tor to
  516. something more reasonable when first installing.
  517. - Stop putting nodename in the Platform string in server descriptors.
  518. It doesn't actually help, and it is confusing/upsetting some people.
  519. - When using preferred entry or exit nodes, ignore whether the
  520. circuit wants uptime or capacity. They asked for the nodes, they
  521. get the nodes.
  522. - Tie MAX_DIR_SIZE to MAX_BUF_SIZE, so now directory sizes won't get
  523. artificially capped at 500kB.
  524. - Cache local dns resolves correctly even when they're .exit
  525. addresses.
  526. - If we're hibernating and we get a SIGINT, exit immediately.
  527. - tor-resolve requests were ignoring .exit if there was a working circuit
  528. they could use instead.
  529. - Pay more attention to the ClientOnly config option.
  530. - Resolve OS X installer bugs: stop claiming to be 0.0.9.2 in certain
  531. installer screens; and don't put stuff into StartupItems unless
  532. the user asks you to.
  533. o Misc features:
  534. - Rewrite address "serifos.exit" to "externalIP.serifos.exit"
  535. rather than just rejecting it.
  536. - If our clock jumps forward by 100 seconds or more, assume something
  537. has gone wrong with our network and abandon all not-yet-used circs.
  538. - When an application is using socks5, give him the whole variety of
  539. potential socks5 responses (connect refused, host unreachable, etc),
  540. rather than just "success" or "failure".
  541. - A more sane version numbering system. See
  542. http://tor.eff.org/cvs/tor/doc/version-spec.txt for details.
  543. - Change version parsing logic: a version is "obsolete" if it is not
  544. recommended and (1) there is a newer recommended version in the
  545. same series, or (2) there are no recommended versions in the same
  546. series, but there are some recommended versions in a newer series.
  547. A version is "new" if it is newer than any recommended version in
  548. the same series.
  549. - Report HTTP reasons to client when getting a response from directory
  550. servers -- so you can actually know what went wrong.
  551. - Reject odd-looking addresses at the client (e.g. addresses that
  552. contain a colon), rather than having the server drop them because
  553. they're malformed.
  554. - Stop publishing socksport in the directory, since it's not
  555. actually meant to be public. For compatibility, publish a 0 there
  556. for now.
  557. - Since we ship our own Privoxy on OS X, tweak it so it doesn't write
  558. cookies to disk and doesn't log each web request to disk. (Thanks
  559. to Brett Carrington for pointing this out.)
  560. - Add OSX uninstall instructions. An actual uninstall script will
  561. come later.
  562. - Add "opt hibernating 1" to server descriptor to make it clearer
  563. whether the server is hibernating.
  564. Changes in version 0.0.9.10 - 2005-06-16
  565. o Bugfixes on 0.0.9.x (backported from 0.1.0.10):
  566. - Refuse relay cells that claim to have a length larger than the
  567. maximum allowed. This prevents a potential attack that could read
  568. arbitrary memory (e.g. keys) from an exit server's process.
  569. Changes in version 0.0.9.9 - 2005-04-23
  570. o Bugfixes on 0.0.9.x:
  571. - If unofficial Tor clients connect and send weird TLS certs, our
  572. Tor server triggers an assert. This release contains a minimal
  573. backport from the broader fix that we put into 0.1.0.4-rc.
  574. Changes in version 0.0.9.8 - 2005-04-07
  575. o Bugfixes on 0.0.9.x:
  576. - We have a bug that I haven't found yet. Sometimes, very rarely,
  577. cpuworkers get stuck in the 'busy' state, even though the cpuworker
  578. thinks of itself as idle. This meant that no new circuits ever got
  579. established. Here's a workaround to kill any cpuworker that's been
  580. busy for more than 100 seconds.
  581. Changes in version 0.0.9.7 - 2005-04-01
  582. o Bugfixes on 0.0.9.x:
  583. - Fix another race crash bug (thanks to Glenn Fink for reporting).
  584. - Compare identity to identity, not to nickname, when extending to
  585. a router not already in the directory. This was preventing us from
  586. extending to unknown routers. Oops.
  587. - Make sure to create OS X Tor user in <500 range, so we aren't
  588. creating actual system users.
  589. - Note where connection-that-hasn't-sent-end was marked, and fix
  590. a few really loud instances of this harmless bug (it's fixed more
  591. in 0.1.0.x).
  592. Changes in version 0.0.9.6 - 2005-03-24
  593. o Bugfixes on 0.0.9.x (crashes and asserts):
  594. - Add new end stream reasons to maintainance branch. Fix bug where
  595. reason (8) could trigger an assert. Prevent bug from recurring.
  596. - Apparently win32 stat wants paths to not end with a slash.
  597. - Fix assert triggers in assert_cpath_layer_ok(), where we were
  598. blowing away the circuit that conn->cpath_layer points to, then
  599. checking to see if the circ is well-formed. Backport check to make
  600. sure we dont use the cpath on a closed connection.
  601. - Prevent circuit_resume_edge_reading_helper() from trying to package
  602. inbufs for marked-for-close streams.
  603. - Don't crash on hup if your options->address has become unresolvable.
  604. - Some systems (like OS X) sometimes accept() a connection and tell
  605. you the remote host is 0.0.0.0:0. If this happens, due to some
  606. other mis-features, we get confused; so refuse the conn for now.
  607. o Bugfixes on 0.0.9.x (other):
  608. - Fix harmless but scary "Unrecognized content encoding" warn message.
  609. - Add new stream error reason: TORPROTOCOL reason means "you are not
  610. speaking a version of Tor I understand; say bye-bye to your stream."
  611. - Be willing to cache directories from up to ROUTER_MAX_AGE seconds
  612. into the future, now that we are more tolerant of skew. This
  613. resolves a bug where a Tor server would refuse to cache a directory
  614. because all the directories it gets are too far in the future;
  615. yet the Tor server never logs any complaints about clock skew.
  616. - Mac packaging magic: make man pages useable, and do not overwrite
  617. existing torrc files.
  618. - Make OS X log happily to /var/log/tor/tor.log
  619. Changes in version 0.0.9.5 - 2005-02-22
  620. o Bugfixes on 0.0.9.x:
  621. - Fix an assert race at exit nodes when resolve requests fail.
  622. - Stop picking unverified dir mirrors--it only leads to misery.
  623. - Patch from Matt Edman to make NT services work better. Service
  624. support is still not compiled into the executable by default.
  625. - Patch from Dmitri Bely so the Tor service runs better under
  626. the win32 SYSTEM account.
  627. - Make tor-resolve actually work (?) on Win32.
  628. - Fix a sign bug when getrlimit claims to have 4+ billion
  629. file descriptors available.
  630. - Stop refusing to start when bandwidthburst == bandwidthrate.
  631. - When create cells have been on the onion queue more than five
  632. seconds, just send back a destroy and take them off the list.
  633. Changes in version 0.0.9.4 - 2005-02-03
  634. o Bugfixes on 0.0.9:
  635. - Fix an assert bug that took down most of our servers: when
  636. a server claims to have 1 GB of bandwidthburst, don't
  637. freak out.
  638. - Don't crash as badly if we have spawned the max allowed number
  639. of dnsworkers, or we're out of file descriptors.
  640. - Block more file-sharing ports in the default exit policy.
  641. - MaxConn is now automatically set to the hard limit of max
  642. file descriptors we're allowed (ulimit -n), minus a few for
  643. logs, etc.
  644. - Give a clearer message when servers need to raise their
  645. ulimit -n when they start running out of file descriptors.
  646. - SGI Compatibility patches from Jan Schaumann.
  647. - Tolerate a corrupt cached directory better.
  648. - When a dirserver hasn't approved your server, list which one.
  649. - Go into soft hibernation after 95% of the bandwidth is used,
  650. not 99%. This is especially important for daily hibernators who
  651. have a small accounting max. Hopefully it will result in fewer
  652. cut connections when the hard hibernation starts.
  653. - Load-balance better when using servers that claim more than
  654. 800kB/s of capacity.
  655. - Make NT services work (experimental, only used if compiled in).
  656. Changes in version 0.0.9.3 - 2005-01-21
  657. o Bugfixes on 0.0.9:
  658. - Backport the cpu use fixes from main branch, so busy servers won't
  659. need as much processor time.
  660. - Work better when we go offline and then come back, or when we
  661. run Tor at boot before the network is up. We do this by
  662. optimistically trying to fetch a new directory whenever an
  663. application request comes in and we think we're offline -- the
  664. human is hopefully a good measure of when the network is back.
  665. - Backport some minimal hidserv bugfixes: keep rend circuits open as
  666. long as you keep using them; actually publish hidserv descriptors
  667. shortly after they change, rather than waiting 20-40 minutes.
  668. - Enable Mac startup script by default.
  669. - Fix duplicate dns_cancel_pending_resolve reported by Giorgos Pallas.
  670. - When you update AllowUnverifiedNodes or FirewallPorts via the
  671. controller's setconf feature, we were always appending, never
  672. resetting.
  673. - When you update HiddenServiceDir via setconf, it was screwing up
  674. the order of reading the lines, making it fail.
  675. - Do not rewrite a cached directory back to the cache; otherwise we
  676. will think it is recent and not fetch a newer one on startup.
  677. - Workaround for webservers that lie about Content-Encoding: Tor
  678. now tries to autodetect compressed directories and compression
  679. itself. This lets us Proxypass dir fetches through apache.
  680. Changes in version 0.0.9.2 - 2005-01-04
  681. o Bugfixes on 0.0.9 (crashes and asserts):
  682. - Fix an assert on startup when the disk is full and you're logging
  683. to a file.
  684. - If you do socks4 with an IP of 0.0.0.x but *don't* provide a socks4a
  685. style address, then we'd crash.
  686. - Fix an assert trigger when the running-routers string we get from
  687. a dirserver is broken.
  688. - Make worker threads start and run on win32. Now win32 servers
  689. may work better.
  690. - Bandaid (not actually fix, but now it doesn't crash) an assert
  691. where the dns worker dies mysteriously and the main Tor process
  692. doesn't remember anything about the address it was resolving.
  693. o Bugfixes on 0.0.9 (Win32):
  694. - Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's
  695. name out of the warning/assert messages.
  696. - Fix a superficial "unhandled error on read" bug on win32.
  697. - The win32 installer no longer requires a click-through for our
  698. license, since our Free Software license grants rights but does not
  699. take any away.
  700. - Win32: When connecting to a dirserver fails, try another one
  701. immediately. (This was already working for non-win32 Tors.)
  702. - Stop trying to parse $HOME on win32 when hunting for default
  703. DataDirectory.
  704. - Make tor-resolve.c work on win32 by calling network_init().
  705. o Bugfixes on 0.0.9 (other):
  706. - Make 0.0.9.x build on Solaris again.
  707. - Due to a fencepost error, we were blowing away the \n when reporting
  708. confvalue items in the controller. So asking for multiple config
  709. values at once couldn't work.
  710. - When listing circuits that are pending on an opening OR connection,
  711. if we're an OR we were listing circuits that *end* at us as
  712. being pending on every listener, dns/cpu worker, etc. Stop that.
  713. - Dirservers were failing to create 'running-routers' or 'directory'
  714. strings if we had more than some threshold of routers. Fix them so
  715. they can handle any number of routers.
  716. - Fix a superficial "Duplicate mark for close" bug.
  717. - Stop checking for clock skew for OR connections, even for servers.
  718. - Fix a fencepost error that was chopping off the last letter of any
  719. nickname that is the maximum allowed nickname length.
  720. - Update URLs in log messages so they point to the new website.
  721. - Fix a potential problem in mangling server private keys while
  722. writing to disk (not triggered yet, as far as we know).
  723. - Include the licenses for other free software we include in Tor,
  724. now that we're shipping binary distributions more regularly.
  725. Changes in version 0.0.9.1 - 2004-12-15
  726. o Bugfixes on 0.0.9:
  727. - Make hibernation actually work.
  728. - Make HashedControlPassword config option work.
  729. - When we're reporting event circuit status to a controller,
  730. don't use the stream status code.
  731. Changes in version 0.0.9 - 2004-12-12
  732. o Bugfixes on 0.0.8.1 (Crashes and asserts):
  733. - Catch and ignore SIGXFSZ signals when log files exceed 2GB; our
  734. write() call will fail and we handle it there.
  735. - When we run out of disk space, or other log writing error, don't
  736. crash. Just stop logging to that log and continue.
  737. - Fix isspace() and friends so they still make Solaris happy
  738. but also so they don't trigger asserts on win32.
  739. - Fix assert failure on malformed socks4a requests.
  740. - Fix an assert bug where a hidden service provider would fail if
  741. the first hop of his rendezvous circuit was down.
  742. - Better handling of size_t vs int, so we're more robust on 64
  743. bit platforms.
  744. o Bugfixes on 0.0.8.1 (Win32):
  745. - Make windows sockets actually non-blocking (oops), and handle
  746. win32 socket errors better.
  747. - Fix parse_iso_time on platforms without strptime (eg win32).
  748. - win32: when being multithreaded, leave parent fdarray open.
  749. - Better handling of winsock includes on non-MSV win32 compilers.
  750. - Change our file IO stuff (especially wrt OpenSSL) so win32 is
  751. happier.
  752. - Make unit tests work on win32.
  753. o Bugfixes on 0.0.8.1 (Path selection and streams):
  754. - Calculate timeout for waiting for a connected cell from the time
  755. we sent the begin cell, not from the time the stream started. If
  756. it took a long time to establish the circuit, we would time out
  757. right after sending the begin cell.
  758. - Fix router_compare_addr_to_addr_policy: it was not treating a port
  759. of * as always matching, so we were picking reject *:* nodes as
  760. exit nodes too. Oops.
  761. - When read() failed on a stream, we would close it without sending
  762. back an end. So 'connection refused' would simply be ignored and
  763. the user would get no response.
  764. - Stop a sigpipe: when an 'end' cell races with eof from the app,
  765. we shouldn't hold-open-until-flush if the eof arrived first.
  766. - Let resolve conns retry/expire also, rather than sticking around
  767. forever.
  768. - Fix more dns related bugs: send back resolve_failed and end cells
  769. more reliably when the resolve fails, rather than closing the
  770. circuit and then trying to send the cell. Also attach dummy resolve
  771. connections to a circuit *before* calling dns_resolve(), to fix
  772. a bug where cached answers would never be sent in RESOLVED cells.
  773. o Bugfixes on 0.0.8.1 (Circuits):
  774. - Finally fix a bug that's been plaguing us for a year:
  775. With high load, circuit package window was reaching 0. Whenever
  776. we got a circuit-level sendme, we were reading a lot on each
  777. socket, but only writing out a bit. So we would eventually reach
  778. eof. This would be noticed and acted on even when there were still
  779. bytes sitting in the inbuf.
  780. - Use identity comparison, not nickname comparison, to choose which
  781. half of circuit-ID-space each side gets to use. This is needed
  782. because sometimes we think of a router as a nickname, and sometimes
  783. as a hex ID, and we can't predict what the other side will do.
  784. o Bugfixes on 0.0.8.1 (Other):
  785. - Fix a whole slew of memory leaks.
  786. - Disallow NDEBUG. We don't ever want anybody to turn off debug.
  787. - If we are using select, make sure we stay within FD_SETSIZE.
  788. - When poll() is interrupted, we shouldn't believe the revents values.
  789. - Add a FAST_SMARTLIST define to optionally inline smartlist_get
  790. and smartlist_len, which are two major profiling offenders.
  791. - If do_hup fails, actually notice.
  792. - Flush the log file descriptor after we print "Tor opening log file",
  793. so we don't see those messages days later.
  794. - Hidden service operators now correctly handle version 1 style
  795. INTRODUCE1 cells (nobody generates them still, so not a critical
  796. bug).
  797. - Handle more errnos from accept() without closing the listener.
  798. Some OpenBSD machines were closing their listeners because
  799. they ran out of file descriptors.
  800. - Some people had wrapped their tor client/server in a script
  801. that would restart it whenever it died. This did not play well
  802. with our "shut down if your version is obsolete" code. Now people
  803. don't fetch a new directory if their local cached version is
  804. recent enough.
  805. - Make our autogen.sh work on ksh as well as bash.
  806. - Better torrc example lines for dirbindaddress and orbindaddress.
  807. - Improved bounds checking on parsed ints (e.g. config options and
  808. the ones we find in directories.)
  809. - Stop using separate defaults for no-config-file and
  810. empty-config-file. Now you have to explicitly turn off SocksPort,
  811. if you don't want it open.
  812. - We were starting to daemonize before we opened our logs, so if
  813. there were any problems opening logs, we would complain to stderr,
  814. which wouldn't work, and then mysteriously exit.
  815. - If a verified OR connects to us before he's uploaded his descriptor,
  816. or we verify him and hup but he still has the original TLS
  817. connection, then conn->nickname is still set like he's unverified.
  818. o Code security improvements, inspired by Ilja:
  819. - tor_snprintf wrapper over snprintf with consistent (though not C99)
  820. overflow behavior.
  821. - Replace sprintf with tor_snprintf. (I think they were all safe, but
  822. hey.)
  823. - Replace strcpy/strncpy with strlcpy in more places.
  824. - Avoid strcat; use tor_snprintf or strlcat instead.
  825. o Features (circuits and streams):
  826. - New circuit building strategy: keep a list of ports that we've
  827. used in the past 6 hours, and always try to have 2 circuits open
  828. or on the way that will handle each such port. Seed us with port
  829. 80 so web users won't complain that Tor is "slow to start up".
  830. - Make kill -USR1 dump more useful stats about circuits.
  831. - When warning about retrying or giving up, print the address, so
  832. the user knows which one it's talking about.
  833. - If you haven't used a clean circuit in an hour, throw it away,
  834. just to be on the safe side. (This means after 6 hours a totally
  835. unused Tor client will have no circuits open.)
  836. - Support "foo.nickname.exit" addresses, to let Alice request the
  837. address "foo" as viewed by exit node "nickname". Based on a patch
  838. from Geoff Goodell.
  839. - If your requested entry or exit node has advertised bandwidth 0,
  840. pick it anyway.
  841. - Be more greedy about filling up relay cells -- we try reading again
  842. once we've processed the stuff we read, in case enough has arrived
  843. to fill the last cell completely.
  844. - Refuse application socks connections to port 0.
  845. - Use only 0.0.9pre1 and later servers for resolve cells.
  846. o Features (bandwidth):
  847. - Hibernation: New config option "AccountingMax" lets you
  848. set how many bytes per month (in each direction) you want to
  849. allow your server to consume. Rather than spreading those
  850. bytes out evenly over the month, we instead hibernate for some
  851. of the month and pop up at a deterministic time, work until
  852. the bytes are consumed, then hibernate again. Config option
  853. "MonthlyAccountingStart" lets you specify which day of the month
  854. your billing cycle starts on.
  855. - Implement weekly/monthly/daily accounting: now you specify your
  856. hibernation properties by
  857. AccountingMax N bytes|KB|MB|GB|TB
  858. AccountingStart day|week|month [day] HH:MM
  859. Defaults to "month 1 0:00".
  860. - Let bandwidth and interval config options be specified as 5 bytes,
  861. kb, kilobytes, etc; and as seconds, minutes, hours, days, weeks.
  862. o Features (directories):
  863. - New "router-status" line in directory, to better bind each verified
  864. nickname to its identity key.
  865. - Clients can ask dirservers for /dir.z to get a compressed version
  866. of the directory. Only works for servers running 0.0.9, of course.
  867. - Make clients cache directories and use them to seed their router
  868. lists at startup. This means clients have a datadir again.
  869. - Respond to content-encoding headers by trying to uncompress as
  870. appropriate.
  871. - Clients and servers now fetch running-routers; cache
  872. running-routers; compress running-routers; serve compressed
  873. running-routers.z
  874. - Make moria2 advertise a dirport of 80, so people behind firewalls
  875. will be able to get a directory.
  876. - Http proxy support
  877. - Dirservers translate requests for http://%s:%d/x to /x
  878. - You can specify "HttpProxy %s[:%d]" and all dir fetches will
  879. be routed through this host.
  880. - Clients ask for /tor/x rather than /x for new enough dirservers.
  881. This way we can one day coexist peacefully with apache.
  882. - Clients specify a "Host: %s%d" http header, to be compatible
  883. with more proxies, and so running squid on an exit node can work.
  884. - Protect dirservers from overzealous descriptor uploading -- wait
  885. 10 seconds after directory gets dirty, before regenerating.
  886. o Features (packages and install):
  887. - Add NSI installer contributed by J Doe.
  888. - Apply NT service patch from Osamu Fujino. Still needs more work.
  889. - Commit VC6 and VC7 workspace/project files.
  890. - Commit a tor.spec for making RPM files, with help from jbash.
  891. - Add contrib/torctl.in contributed by Glenn Fink.
  892. - Make expand_filename handle ~ and ~username.
  893. - Use autoconf to enable largefile support where necessary. Use
  894. ftello where available, since ftell can fail at 2GB.
  895. - Ship src/win32/ in the tarball, so people can use it to build.
  896. - Make old win32 fall back to CWD if SHGetSpecialFolderLocation
  897. is broken.
  898. o Features (ui controller):
  899. - Control interface: a separate program can now talk to your
  900. client/server over a socket, and get/set config options, receive
  901. notifications of circuits and streams starting/finishing/dying,
  902. bandwidth used, etc. The next step is to get some GUIs working.
  903. Let us know if you want to help out. See doc/control-spec.txt .
  904. - Ship a contrib/tor-control.py as an example script to interact
  905. with the control port.
  906. - "tor --hash-password zzyxz" will output a salted password for
  907. use in authenticating to the control interface.
  908. - Implement the control-spec's SAVECONF command, to write your
  909. configuration to torrc.
  910. - Get cookie authentication for the controller closer to working.
  911. - When set_conf changes our server descriptor, upload a new copy.
  912. But don't upload it too often if there are frequent changes.
  913. o Features (config and command-line):
  914. - Deprecate unofficial config option abbreviations, and abbreviations
  915. not on the command line.
  916. - Configuration infrastructure support for warning on obsolete
  917. options.
  918. - Give a slightly more useful output for "tor -h".
  919. - Break DirFetchPostPeriod into:
  920. - DirFetchPeriod for fetching full directory,
  921. - StatusFetchPeriod for fetching running-routers,
  922. - DirPostPeriod for posting server descriptor,
  923. - RendPostPeriod for posting hidden service descriptors.
  924. - New log format in config:
  925. "Log minsev[-maxsev] stdout|stderr|syslog" or
  926. "Log minsev[-maxsev] file /var/foo"
  927. - DirPolicy config option, to let people reject incoming addresses
  928. from their dirserver.
  929. - "tor --list-fingerprint" will list your identity key fingerprint
  930. and then exit.
  931. - Make tor --version --version dump the cvs Id of every file.
  932. - New 'MyFamily nick1,...' config option for a server to
  933. specify other servers that shouldn't be used in the same circuit
  934. with it. Only believed if nick1 also specifies us.
  935. - New 'NodeFamily nick1,nick2,...' config option for a client to
  936. specify nodes that it doesn't want to use in the same circuit.
  937. - New 'Redirectexit pattern address:port' config option for a
  938. server to redirect exit connections, e.g. to a local squid.
  939. - Add "pass" target for RedirectExit, to make it easier to break
  940. out of a sequence of RedirectExit rules.
  941. - Make the dirservers file obsolete.
  942. - Include a dir-signing-key token in directories to tell the
  943. parsing entity which key is being used to sign.
  944. - Remove the built-in bulky default dirservers string.
  945. - New config option "Dirserver %s:%d [fingerprint]", which can be
  946. repeated as many times as needed. If no dirservers specified,
  947. default to moria1,moria2,tor26.
  948. - Make 'Routerfile' config option obsolete.
  949. - Discourage people from setting their dirfetchpostperiod more often
  950. than once per minute.
  951. o Features (other):
  952. - kill -USR2 now moves all logs to loglevel debug (kill -HUP to
  953. get back to normal.)
  954. - Accept *:706 (silc) in default exit policy.
  955. - Implement new versioning format for post 0.1.
  956. - Distinguish between TOR_TLS_CLOSE and TOR_TLS_ERROR, so we can
  957. log more informatively.
  958. - Check clock skew for verified servers, but allow unverified
  959. servers and clients to have any clock skew.
  960. - Make sure the hidden service descriptors are at a random offset
  961. from each other, to hinder linkability.
  962. - Clients now generate a TLS cert too, in preparation for having
  963. them act more like real nodes.
  964. - Add a pure-C tor-resolve implementation.
  965. - Use getrlimit and friends to ensure we can reach MaxConn (currently
  966. 1024) file descriptors.
  967. - Raise the max dns workers from 50 to 100.
  968. Changes in version 0.0.8.1 - 2004-10-13
  969. o Bugfixes:
  970. - Fix a seg fault that can be triggered remotely for Tor
  971. clients/servers with an open dirport.
  972. - Fix a rare assert trigger, where routerinfos for entries in
  973. our cpath would expire while we're building the path.
  974. - Fix a bug in OutboundBindAddress so it (hopefully) works.
  975. - Fix a rare seg fault for people running hidden services on
  976. intermittent connections.
  977. - Fix a bug in parsing opt keywords with objects.
  978. - Fix a stale pointer assert bug when a stream detaches and
  979. reattaches.
  980. - Fix a string format vulnerability (probably not exploitable)
  981. in reporting stats locally.
  982. - Fix an assert trigger: sometimes launching circuits can fail
  983. immediately, e.g. because too many circuits have failed recently.
  984. - Fix a compile warning on 64 bit platforms.
  985. Changes in version 0.0.8 - 2004-08-25
  986. o Bugfixes:
  987. - Made our unit tests compile again on OpenBSD 3.5, and tor
  988. itself compile again on OpenBSD on a sparc64.
  989. - We were neglecting milliseconds when logging on win32, so
  990. everything appeared to happen at the beginning of each second.
  991. - Check directory signature _before_ you decide whether you're
  992. you're running an obsolete version and should exit.
  993. - Check directory signature _before_ you parse the running-routers
  994. list to decide who's running.
  995. - Check return value of fclose while writing to disk, so we don't
  996. end up with broken files when servers run out of disk space.
  997. - Port it to SunOS 5.9 / Athena
  998. - Fix two bugs in saving onion keys to disk when rotating, so
  999. hopefully we'll get fewer people using old onion keys.
  1000. - Remove our mostly unused -- and broken -- hex_encode()
  1001. function. Use base16_encode() instead. (Thanks to Timo Lindfors
  1002. for pointing out this bug.)
  1003. - Only pick and establish intro points after we've gotten a
  1004. directory.
  1005. - Fix assert triggers: if the other side returns an address 0.0.0.0,
  1006. don't put it into the client dns cache.
  1007. - If a begin failed due to exit policy, but we believe the IP
  1008. address should have been allowed, switch that router to exitpolicy
  1009. reject *:* until we get our next directory.
  1010. o Protocol changes:
  1011. - 'Extend' relay cell payloads now include the digest of the
  1012. intended next hop's identity key. Now we can verify that we're
  1013. extending to the right router, and also extend to routers we
  1014. hadn't heard of before.
  1015. o Features:
  1016. - Tor nodes can now act as relays (with an advertised ORPort)
  1017. without being manually verified by the dirserver operators.
  1018. - Uploaded descriptors of unverified routers are now accepted
  1019. by the dirservers, and included in the directory.
  1020. - Verified routers are listed by nickname in the running-routers
  1021. list; unverified routers are listed as "$<fingerprint>".
  1022. - We now use hash-of-identity-key in most places rather than
  1023. nickname or addr:port, for improved security/flexibility.
  1024. - AllowUnverifiedNodes config option to let circuits choose no-name
  1025. routers in entry,middle,exit,introduction,rendezvous positions.
  1026. Allow middle and rendezvous positions by default.
  1027. - When picking unverified routers, skip those with low uptime and/or
  1028. low bandwidth, depending on what properties you care about.
  1029. - ClientOnly option for nodes that never want to become servers.
  1030. - Directory caching.
  1031. - "AuthoritativeDir 1" option for the official dirservers.
  1032. - Now other nodes (clients and servers) will cache the latest
  1033. directory they've pulled down.
  1034. - They can enable their DirPort to serve it to others.
  1035. - Clients will pull down a directory from any node with an open
  1036. DirPort, and check the signature/timestamp correctly.
  1037. - Authoritative dirservers now fetch directories from other
  1038. authdirservers, to stay better synced.
  1039. - Running-routers list tells who's down also, along with noting
  1040. if they're verified (listed by nickname) or unverified (listed
  1041. by hash-of-key).
  1042. - Allow dirservers to serve running-router list separately.
  1043. This isn't used yet.
  1044. - You can now fetch $DIRURL/running-routers to get just the
  1045. running-routers line, not the whole descriptor list. (But
  1046. clients don't use this yet.)
  1047. - Clients choose nodes proportional to advertised bandwidth.
  1048. - Clients avoid using nodes with low uptime as introduction points.
  1049. - Handle servers with dynamic IP addresses: don't just replace
  1050. options->Address with the resolved one at startup, and
  1051. detect our address right before we make a routerinfo each time.
  1052. - 'FascistFirewall' option to pick dirservers and ORs on specific
  1053. ports; plus 'FirewallPorts' config option to tell FascistFirewall
  1054. which ports are open. (Defaults to 80,443)
  1055. - Try other dirservers immediately if the one you try is down. This
  1056. should tolerate down dirservers better now.
  1057. - ORs connect-on-demand to other ORs
  1058. - If you get an extend cell to an OR you're not connected to,
  1059. connect, handshake, and forward the create cell.
  1060. - The authoritative dirservers stay connected to everybody,
  1061. and everybody stays connected to 0.0.7 servers, but otherwise
  1062. clients/servers expire unused connections after 5 minutes.
  1063. - When servers get a sigint, they delay 30 seconds (refusing new
  1064. connections) then exit. A second sigint causes immediate exit.
  1065. - File and name management:
  1066. - Look for .torrc if no CONFDIR "torrc" is found.
  1067. - If no datadir is defined, then choose, make, and secure ~/.tor
  1068. as datadir.
  1069. - If torrc not found, exitpolicy reject *:*.
  1070. - Expands ~/ in filenames to $HOME/ (but doesn't yet expand ~arma).
  1071. - If no nickname is defined, derive default from hostname.
  1072. - Rename secret key files, e.g. identity.key -> secret_id_key,
  1073. to discourage people from mailing their identity key to tor-ops.
  1074. - Refuse to build a circuit before the directory has arrived --
  1075. it won't work anyway, since you won't know the right onion keys
  1076. to use.
  1077. - Parse tor version numbers so we can do an is-newer-than check
  1078. rather than an is-in-the-list check.
  1079. - New socks command 'resolve', to let us shim gethostbyname()
  1080. locally.
  1081. - A 'tor_resolve' script to access the socks resolve functionality.
  1082. - A new socks-extensions.txt doc file to describe our
  1083. interpretation and extensions to the socks protocols.
  1084. - Add a ContactInfo option, which gets published in descriptor.
  1085. - Write tor version at the top of each log file
  1086. - New docs in the tarball:
  1087. - tor-doc.html.
  1088. - Document that you should proxy your SSL traffic too.
  1089. - Log a warning if the user uses an unsafe socks variant, so people
  1090. are more likely to learn about privoxy or socat.
  1091. - Log a warning if you're running an unverified server, to let you
  1092. know you might want to get it verified.
  1093. - Change the default exit policy to reject the default edonkey,
  1094. kazaa, gnutella ports.
  1095. - Add replace_file() to util.[ch] to handle win32's rename().
  1096. - Publish OR uptime in descriptor (and thus in directory) too.
  1097. - Remember used bandwidth (both in and out), and publish 15-minute
  1098. snapshots for the past day into our descriptor.
  1099. - Be more aggressive about trying to make circuits when the network
  1100. has changed (e.g. when you unsuspend your laptop).
  1101. - Check for time skew on http headers; report date in response to
  1102. "GET /".
  1103. - If the entrynode config line has only one node, don't pick it as
  1104. an exitnode.
  1105. - Add strict{entry|exit}nodes config options. If set to 1, then
  1106. we refuse to build circuits that don't include the specified entry
  1107. or exit nodes.
  1108. - OutboundBindAddress config option, to bind to a specific
  1109. IP address for outgoing connect()s.
  1110. - End truncated log entries (e.g. directories) with "[truncated]".
  1111. Changes in version 0.0.7.3 - 2004-08-12
  1112. o Stop dnsworkers from triggering an assert failure when you
  1113. ask them to resolve the host "".
  1114. Changes in version 0.0.7.2 - 2004-07-07
  1115. o A better fix for the 0.0.0.0 problem, that will hopefully
  1116. eliminate the remaining related assertion failures.
  1117. Changes in version 0.0.7.1 - 2004-07-04
  1118. o When an address resolves to 0.0.0.0, treat it as a failed resolve,
  1119. since internally we use 0.0.0.0 to signify "not yet resolved".
  1120. Changes in version 0.0.7 - 2004-06-07
  1121. o Fixes for crashes and other obnoxious bugs:
  1122. - Fix an epipe bug: sometimes when directory connections failed
  1123. to connect, we would give them a chance to flush before closing
  1124. them.
  1125. - When we detached from a circuit because of resolvefailed, we
  1126. would immediately try the same circuit twice more, and then
  1127. give up on the resolve thinking we'd tried three different
  1128. exit nodes.
  1129. - Limit the number of intro circuits we'll attempt to build for a
  1130. hidden service per 15-minute period.
  1131. - Check recommended-software string *early*, before actually parsing
  1132. the directory. Thus we can detect an obsolete version and exit,
  1133. even if the new directory format doesn't parse.
  1134. o Fixes for security bugs:
  1135. - Remember which nodes are dirservers when you startup, and if a
  1136. random OR enables his dirport, don't automatically assume he's
  1137. a trusted dirserver.
  1138. o Other bugfixes:
  1139. - Directory connections were asking the wrong poll socket to
  1140. start writing, and not asking themselves to start writing.
  1141. - When we detached from a circuit because we sent a begin but
  1142. didn't get a connected, we would use it again the first time;
  1143. but after that we would correctly switch to a different one.
  1144. - Stop warning when the first onion decrypt attempt fails; they
  1145. will sometimes legitimately fail now that we rotate keys.
  1146. - Override unaligned-access-ok check when $host_cpu is ia64 or
  1147. arm. Apparently they allow it but the kernel whines.
  1148. - Dirservers try to reconnect periodically too, in case connections
  1149. have failed.
  1150. - Fix some memory leaks in directory servers.
  1151. - Allow backslash in Win32 filenames.
  1152. - Made Tor build complain-free on FreeBSD, hopefully without
  1153. breaking other BSD builds. We'll see.
  1154. - Check directory signatures based on name of signer, not on whom
  1155. we got the directory from. This will let us cache directories more
  1156. easily.
  1157. - Rotate dnsworkers and cpuworkers on SIGHUP, so they get new config
  1158. settings too.
  1159. o Features:
  1160. - Doxygen markup on all functions and global variables.
  1161. - Make directory functions update routerlist, not replace it. So
  1162. now directory disagreements are not so critical a problem.
  1163. - Remove the upper limit on number of descriptors in a dirserver's
  1164. directory (not that we were anywhere close).
  1165. - Allow multiple logfiles at different severity ranges.
  1166. - Allow *BindAddress to specify ":port" rather than setting *Port
  1167. separately. Allow multiple instances of each BindAddress config
  1168. option, so you can bind to multiple interfaces if you want.
  1169. - Allow multiple exit policy lines, which are processed in order.
  1170. Now we don't need that huge line with all the commas in it.
  1171. - Enable accept/reject policies on SOCKS connections, so you can bind
  1172. to 0.0.0.0 but still control who can use your OP.
  1173. - Updated the man page to reflect these features.
  1174. Changes in version 0.0.6.2 - 2004-05-16
  1175. o Our integrity-checking digest was checking only the most recent cell,
  1176. not the previous cells like we'd thought.
  1177. Thanks to Stefan Mark for finding the flaw!
  1178. Changes in version 0.0.6.1 - 2004-05-06
  1179. o Fix two bugs in our AES counter-mode implementation (this affected
  1180. onion-level stream encryption, but not TLS-level). It turns
  1181. out we were doing something much more akin to a 16-character
  1182. polyalphabetic cipher. Oops.
  1183. Thanks to Stefan Mark for finding the flaw!
  1184. o Retire moria3 as a directory server, and add tor26 as a directory
  1185. server.
  1186. Changes in version 0.0.6 - 2004-05-02
  1187. o Features:
  1188. - Hidden services and rendezvous points are implemented. Go to
  1189. http://6sxoyfb3h2nvok2d.onion/ for an index of currently available
  1190. hidden services. (This only works via a socks4a proxy such as
  1191. Privoxy, and currently it's quite slow.)
  1192. - We now rotate link (tls context) keys and onion keys.
  1193. - CREATE cells now include oaep padding, so you can tell
  1194. if you decrypted them correctly.
  1195. - Retry stream correctly when we fail to connect because of
  1196. exit-policy-reject (should try another) or can't-resolve-address.
  1197. - When we hup a dirserver and we've *removed* a server from the
  1198. approved-routers list, now we remove that server from the
  1199. in-memory directories too.
  1200. - Add bandwidthburst to server descriptor.
  1201. - Directories now say which dirserver signed them.
  1202. - Use a tor_assert macro that logs failed assertions too.
  1203. - Since we don't support truncateds much, don't bother sending them;
  1204. just close the circ.
  1205. - Fetch randomness from /dev/urandom better (not via fopen/fread)
  1206. - Better debugging for tls errors
  1207. - Set Content-Type on the directory and hidserv descriptor.
  1208. - Remove IVs from cipher code, since AES-ctr has none.
  1209. o Bugfixes:
  1210. - Fix an assert trigger for exit nodes that's been plaguing us since
  1211. the days of 0.0.2prexx (thanks weasel!)
  1212. - Fix a bug where we were closing tls connections intermittently.
  1213. It turns out openssl keeps its errors around -- so if an error
  1214. happens, and you don't ask about it, and then another openssl
  1215. operation happens and succeeds, and you ask if there was an error,
  1216. it tells you about the first error.
  1217. - Fix a bug that's been lurking since 27 may 03 (!)
  1218. When passing back a destroy cell, we would use the wrong circ id.
  1219. - Don't crash if a conn that sent a begin has suddenly lost its circuit.
  1220. - Some versions of openssl have an SSL_pending function that erroneously
  1221. returns bytes when there is a non-application record pending.
  1222. - Win32 fixes. Tor now compiles on win32 with no warnings/errors.
  1223. o We were using an array of length zero in a few places.
  1224. o Win32's gethostbyname can't resolve an IP to an IP.
  1225. o Win32's close can't close a socket.
  1226. o Handle windows socket errors correctly.
  1227. o Portability:
  1228. - check for <sys/limits.h> so we build on FreeBSD again, and
  1229. <machine/limits.h> for NetBSD.
  1230. Changes in version 0.0.5 - 2004-03-30
  1231. o Install torrc as torrc.sample -- we no longer clobber your
  1232. torrc. (Woo!)
  1233. o Fix mangled-state bug in directory fetching (was causing sigpipes).
  1234. o Only build circuits after we've fetched the directory: clients were
  1235. using only the directory servers before they'd fetched a directory.
  1236. This also means longer startup time; so it goes.
  1237. o Fix an assert trigger where an OP would fail to handshake, and we'd
  1238. expect it to have a nickname.
  1239. o Work around a tsocks bug: do a socks reject when AP connection dies
  1240. early, else tsocks goes into an infinite loop.
  1241. o Hold socks connection open until reply is flushed (if possible)
  1242. o Make exit nodes resolve IPs to IPs immediately, rather than asking
  1243. the dns farm to do it.
  1244. o Fix c99 aliasing warnings in rephist.c
  1245. o Don't include server descriptors that are older than 24 hours in the
  1246. directory.
  1247. o Give socks 'reject' replies their whole 15s to attempt to flush,
  1248. rather than seeing the 60s timeout and assuming the flush had failed.
  1249. o Clean automake droppings from the cvs repository
  1250. o Add in a 'notice' log level for things the operator should hear
  1251. but that aren't warnings
  1252. Changes in version 0.0.4 - 2004-03-26
  1253. o When connecting to a dirserver or OR and the network is down,
  1254. we would crash.
  1255. Changes in version 0.0.3 - 2004-03-26
  1256. o Warn and fail if server chose a nickname with illegal characters
  1257. o Port to Solaris and Sparc:
  1258. - include missing header fcntl.h
  1259. - have autoconf find -lsocket -lnsl automatically
  1260. - deal with hardware word alignment
  1261. - make uname() work (solaris has a different return convention)
  1262. - switch from using signal() to sigaction()
  1263. o Preliminary work on reputation system:
  1264. - Keep statistics on success/fail of connect attempts; they're published
  1265. by kill -USR1 currently.
  1266. - Add a RunTesting option to try to learn link state by creating test
  1267. circuits, even when SocksPort is off.
  1268. - Remove unused open circuits when there are too many.
  1269. Changes in version 0.0.2 - 2004-03-19
  1270. - Include strlcpy and strlcat for safer string ops
  1271. - define INADDR_NONE so we compile (but still not run) on solaris
  1272. Changes in version 0.0.2pre27 - 2004-03-14
  1273. o Bugfixes:
  1274. - Allow internal tor networks (we were rejecting internal IPs,
  1275. now we allow them if they're set explicitly).
  1276. - And fix a few endian issues.
  1277. Changes in version 0.0.2pre26 - 2004-03-14
  1278. o New features:
  1279. - If a stream times out after 15s without a connected cell, don't
  1280. try that circuit again: try a new one.
  1281. - Retry streams at most 4 times. Then give up.
  1282. - When a dirserver gets a descriptor from an unknown router, it
  1283. logs its fingerprint (so the dirserver operator can choose to
  1284. accept it even without mail from the server operator).
  1285. - Inform unapproved servers when we reject their descriptors.
  1286. - Make tor build on Windows again. It works as a client, who knows
  1287. about as a server.
  1288. - Clearer instructions in the torrc for how to set up a server.
  1289. - Be more efficient about reading fd's when our global token bucket
  1290. (used for rate limiting) becomes empty.
  1291. o Bugfixes:
  1292. - Stop asserting that computers always go forward in time. It's
  1293. simply not true.
  1294. - When we sent a cell (e.g. destroy) and then marked an OR connection
  1295. expired, we might close it before finishing a flush if the other
  1296. side isn't reading right then.
  1297. - Don't allow dirservers to start if they haven't defined
  1298. RecommendedVersions
  1299. - We were caching transient dns failures. Oops.
  1300. - Prevent servers from publishing an internal IP as their address.
  1301. - Address a strcat vulnerability in circuit.c
  1302. Changes in version 0.0.2pre25 - 2004-03-04
  1303. o New features:
  1304. - Put the OR's IP in its router descriptor, not its fqdn. That way
  1305. we'll stop being stalled by gethostbyname for nodes with flaky dns,
  1306. e.g. poblano.
  1307. o Bugfixes:
  1308. - If the user typed in an address that didn't resolve, the server
  1309. crashed.
  1310. Changes in version 0.0.2pre24 - 2004-03-03
  1311. o Bugfixes:
  1312. - Fix an assertion failure in dns.c, where we were trying to dequeue
  1313. a pending dns resolve even if it wasn't pending
  1314. - Fix a spurious socks5 warning about still trying to write after the
  1315. connection is finished.
  1316. - Hold certain marked_for_close connections open until they're finished
  1317. flushing, rather than losing bytes by closing them too early.
  1318. - Correctly report the reason for ending a stream
  1319. - Remove some duplicate calls to connection_mark_for_close
  1320. - Put switch_id and start_daemon earlier in the boot sequence, so it
  1321. will actually try to chdir() to options.DataDirectory
  1322. - Make 'make test' exit(1) if a test fails; fix some unit tests
  1323. - Make tor fail when you use a config option it doesn't know about,
  1324. rather than warn and continue.
  1325. - Make --version work
  1326. - Bugfixes on the rpm spec file and tor.sh, so it's more up to date
  1327. Changes in version 0.0.2pre23 - 2004-02-29
  1328. o New features:
  1329. - Print a statement when the first circ is finished, so the user
  1330. knows it's working.
  1331. - If a relay cell is unrecognized at the end of the circuit,
  1332. send back a destroy. (So attacks to mutate cells are more
  1333. clearly thwarted.)
  1334. - New config option 'excludenodes' to avoid certain nodes for circuits.
  1335. - When it daemonizes, it chdir's to the DataDirectory rather than "/",
  1336. so you can collect coredumps there.
  1337. o Bugfixes:
  1338. - Fix a bug in tls flushing where sometimes data got wedged and
  1339. didn't flush until more data got sent. Hopefully this bug was
  1340. a big factor in the random delays we were seeing.
  1341. - Make 'connected' cells include the resolved IP, so the client
  1342. dns cache actually gets populated.
  1343. - Disallow changing from ORPort=0 to ORPort>0 on hup.
  1344. - When we time-out on a stream and detach from the circuit, send an
  1345. end cell down it first.
  1346. - Only warn about an unknown router (in exitnodes, entrynodes,
  1347. excludenodes) after we've fetched a directory.
  1348. Changes in version 0.0.2pre22 - 2004-02-26
  1349. o New features:
  1350. - Servers publish less revealing uname information in descriptors.
  1351. - More memory tracking and assertions, to crash more usefully when
  1352. errors happen.
  1353. - If the default torrc isn't there, just use some default defaults.
  1354. Plus provide an internal dirservers file if they don't have one.
  1355. - When the user tries to use Tor as an http proxy, give them an http
  1356. 501 failure explaining that we're a socks proxy.
  1357. - Dump a new router.desc on hup, to help confused people who change
  1358. their exit policies and then wonder why router.desc doesn't reflect
  1359. it.
  1360. - Clean up the generic tor.sh init script that we ship with.
  1361. o Bugfixes:
  1362. - If the exit stream is pending on the resolve, and a destroy arrives,
  1363. then the stream wasn't getting removed from the pending list. I
  1364. think this was the one causing recent server crashes.
  1365. - Use a more robust poll on OSX 10.3, since their poll is flaky.
  1366. - When it couldn't resolve any dirservers, it was useless from then on.
  1367. Now it reloads the RouterFile (or default dirservers) if it has no
  1368. dirservers.
  1369. - Move the 'tor' binary back to /usr/local/bin/ -- it turns out
  1370. many users don't even *have* a /usr/local/sbin/.
  1371. Changes in version 0.0.2pre21 - 2004-02-18
  1372. o New features:
  1373. - There's a ChangeLog file that actually reflects the changelog.
  1374. - There's a 'torify' wrapper script, with an accompanying
  1375. tor-tsocks.conf, that simplifies the process of using tsocks for
  1376. tor. It even has a man page.
  1377. - The tor binary gets installed to sbin rather than bin now.
  1378. - Retry streams where the connected cell hasn't arrived in 15 seconds
  1379. - Clean up exit policy handling -- get the default out of the torrc,
  1380. so we can update it without forcing each server operator to fix
  1381. his/her torrc.
  1382. - Allow imaps and pop3s in default exit policy
  1383. o Bugfixes:
  1384. - Prevent picking middleman nodes as the last node in the circuit
  1385. Changes in version 0.0.2pre20 - 2004-01-30
  1386. o New features:
  1387. - We now have a deb package, and it's in debian unstable. Go to
  1388. it, apt-getters. :)
  1389. - I've split the TotalBandwidth option into BandwidthRate (how many
  1390. bytes per second you want to allow, long-term) and
  1391. BandwidthBurst (how many bytes you will allow at once before the cap
  1392. kicks in). This better token bucket approach lets you, say, set
  1393. BandwidthRate to 10KB/s and BandwidthBurst to 10MB, allowing good
  1394. performance while not exceeding your monthly bandwidth quota.
  1395. - Push out a tls record's worth of data once you've got it, rather
  1396. than waiting until you've read everything waiting to be read. This
  1397. may improve performance by pipelining better. We'll see.
  1398. - Add an AP_CONN_STATE_CONNECTING state, to allow streams to detach
  1399. from failed circuits (if they haven't been connected yet) and attach
  1400. to new ones.
  1401. - Expire old streams that haven't managed to connect. Some day we'll
  1402. have them reattach to new circuits instead.
  1403. o Bugfixes:
  1404. - Fix several memory leaks that were causing servers to become bloated
  1405. after a while.
  1406. - Fix a few very rare assert triggers. A few more remain.
  1407. - Setuid to User _before_ complaining about running as root.
  1408. Changes in version 0.0.2pre19 - 2004-01-07
  1409. o Bugfixes:
  1410. - Fix deadlock condition in dns farm. We were telling a child to die by
  1411. closing the parent's file descriptor to him. But newer children were
  1412. inheriting the open file descriptor from the parent, and since they
  1413. weren't closing it, the socket never closed, so the child never read
  1414. eof, so he never knew to exit. Similarly, dns workers were holding
  1415. open other sockets, leading to all sorts of chaos.
  1416. - New cleaner daemon() code for forking and backgrounding.
  1417. - If you log to a file, it now prints an entry at the top of the
  1418. logfile so you know it's working.
  1419. - The onionskin challenge length was 30 bytes longer than necessary.
  1420. - Started to patch up the spec so it's not quite so out of date.
  1421. Changes in version 0.0.2pre18 - 2004-01-02
  1422. o Bugfixes:
  1423. - Fix endian issues with the 'integrity' field in the relay header.
  1424. - Fix a potential bug where connections in state
  1425. AP_CONN_STATE_CIRCUIT_WAIT might unexpectedly ask to write.
  1426. Changes in version 0.0.2pre17 - 2003-12-30
  1427. o Bugfixes:
  1428. - Made --debuglogfile (or any second log file, actually) work.
  1429. - Resolved an edge case in get_unique_circ_id_by_conn where a smart
  1430. adversary could force us into an infinite loop.
  1431. o Features:
  1432. - Each onionskin handshake now includes a hash of the computed key,
  1433. to prove the server's identity and help perfect forward secrecy.
  1434. - Changed cell size from 256 to 512 bytes (working toward compatibility
  1435. with MorphMix).
  1436. - Changed cell length to 2 bytes, and moved it to the relay header.
  1437. - Implemented end-to-end integrity checking for the payloads of
  1438. relay cells.
  1439. - Separated streamid from 'recognized' (otherwise circuits will get
  1440. messed up when we try to have streams exit from the middle). We
  1441. use the integrity-checking to confirm that a cell is addressed to
  1442. this hop.
  1443. - Randomize the initial circid and streamid values, so an adversary who
  1444. breaks into a node can't learn how many circuits or streams have
  1445. been made so far.
  1446. Changes in version 0.0.2pre16 - 2003-12-14
  1447. o Bugfixes:
  1448. - Fixed a bug that made HUP trigger an assert
  1449. - Fixed a bug where a circuit that immediately failed wasn't being
  1450. counted as a failed circuit in counting retries.
  1451. o Features:
  1452. - Now we close the circuit when we get a truncated cell: otherwise we're
  1453. open to an anonymity attack where a bad node in the path truncates
  1454. the circuit and then we open streams at him.
  1455. - Add port ranges to exit policies
  1456. - Add a conservative default exit policy
  1457. - Warn if you're running tor as root
  1458. - on HUP, retry OR connections and close/rebind listeners
  1459. - options.EntryNodes: try these nodes first when picking the first node
  1460. - options.ExitNodes: if your best choices happen to include any of
  1461. your preferred exit nodes, you choose among just those preferred
  1462. exit nodes.
  1463. - options.ExcludedNodes: nodes that are never picked in path building
  1464. Changes in version 0.0.2pre15 - 2003-12-03
  1465. o Robustness and bugfixes:
  1466. - Sometimes clients would cache incorrect DNS resolves, which would
  1467. really screw things up.
  1468. - An OP that goes offline would slowly leak all its sockets and stop
  1469. working.
  1470. - A wide variety of bugfixes in exit node selection, exit policy
  1471. handling, and processing pending streams when a new circuit is
  1472. established.
  1473. - Pick nodes for a path only from those the directory says are up
  1474. - Choose randomly from all running dirservers, not always the first one
  1475. - Increase allowed http header size for directory fetch.
  1476. - Stop writing to stderr (if we're daemonized it will be closed).
  1477. - Enable -g always, so cores will be more useful to me.
  1478. - Switch "-lcrypto -lssl" to "-lssl -lcrypto" for broken distributions.
  1479. o Documentation:
  1480. - Wrote a man page. It lists commonly used options.
  1481. o Configuration:
  1482. - Change default loglevel to warn.
  1483. - Make PidFile default to null rather than littering in your CWD.
  1484. - OnionRouter config option is now obsolete. Instead it just checks
  1485. ORPort>0.
  1486. - Moved to a single unified torrc file for both clients and servers.
  1487. Changes in version 0.0.2pre14 - 2003-11-29
  1488. o Robustness and bugfixes:
  1489. - Force the admin to make the DataDirectory himself
  1490. - to get ownership/permissions right
  1491. - so clients no longer make a DataDirectory and then never use it
  1492. - fix bug where a client who was offline for 45 minutes would never
  1493. pull down a directory again
  1494. - fix (or at least hide really well) the dns assert bug that was
  1495. causing server crashes
  1496. - warnings and improved robustness wrt clockskew for certs
  1497. - use the native daemon(3) to daemonize, when available
  1498. - exit if bind() fails
  1499. - exit if neither socksport nor orport is defined
  1500. - include our own tor_timegm (Win32 doesn't have its own)
  1501. - bugfix for win32 with lots of connections
  1502. - fix minor bias in PRNG
  1503. - make dirserver more robust to corrupt cached directory
  1504. o Documentation:
  1505. - Wrote the design document (woo)
  1506. o Circuit building and exit policies:
  1507. - Circuits no longer try to use nodes that the directory has told them
  1508. are down.
  1509. - Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and
  1510. bitcounts (18.0.0.0/8).
  1511. - Make AP connections standby for a circuit if no suitable circuit
  1512. exists, rather than failing
  1513. - Circuits choose exit node based on addr/port, exit policies, and
  1514. which AP connections are standing by
  1515. - Bump min pathlen from 2 to 3
  1516. - Relay end cells have a payload to describe why the stream ended.
  1517. - If the stream failed because of exit policy, try again with a new
  1518. circuit.
  1519. - Clients have a dns cache to remember resolved addresses.
  1520. - Notice more quickly when we have no working circuits
  1521. o Configuration:
  1522. - APPort is now called SocksPort
  1523. - SocksBindAddress, ORBindAddress, DirBindAddress let you configure
  1524. where to bind
  1525. - RecommendedVersions is now a config variable rather than
  1526. hardcoded (for dirservers)
  1527. - Reloads config on HUP
  1528. - Usage info on -h or --help
  1529. - If you set User and Group config vars, it'll setu/gid to them.
  1530. Changes in version 0.0.2pre13 - 2003-10-19
  1531. o General stability:
  1532. - SSL_write no longer fails when it returns WANTWRITE and the number
  1533. of bytes in the buf has changed by the next SSL_write call.
  1534. - Fix segfault fetching directory when network is down
  1535. - Fix a variety of minor memory leaks
  1536. - Dirservers reload the fingerprints file on HUP, so I don't have
  1537. to take down the network when I approve a new router
  1538. - Default server config file has explicit Address line to specify fqdn
  1539. o Buffers:
  1540. - Buffers grow and shrink as needed (Cut process size from 20M to 2M)
  1541. - Make listener connections not ever alloc bufs
  1542. o Autoconf improvements:
  1543. - don't clobber an external CFLAGS in ./configure
  1544. - Make install now works
  1545. - create var/lib/tor on make install
  1546. - autocreate a tor.sh initscript to help distribs
  1547. - autocreate the torrc and sample-server-torrc with correct paths
  1548. o Log files and Daemonizing now work:
  1549. - If --DebugLogFile is specified, log to it at -l debug
  1550. - If --LogFile is specified, use it instead of commandline
  1551. - If --RunAsDaemon is set, tor forks and backgrounds on startup