tor.1.in 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007
  1. .TH TOR 1 "January 2006" "TOR"
  2. .SH NAME
  3. tor \- The second-generation onion router
  4. .SH SYNOPSIS
  5. .B tor
  6. [\fIOPTION value\fR]...
  7. .SH DESCRIPTION
  8. .I tor
  9. is a connection-oriented anonymizing communication
  10. service. Users choose a source-routed path through a set of nodes, and
  11. negotiate a "virtual circuit" through the network, in which each node
  12. knows its predecessor and successor, but no others. Traffic flowing down
  13. the circuit is unwrapped by a symmetric key at each node, which reveals
  14. the downstream node.
  15. .PP
  16. Basically \fItor\fR provides a distributed network of servers ("onion
  17. routers"). Users bounce their TCP streams -- web traffic, ftp, ssh, etc --
  18. around the routers, and recipients, observers, and even the routers
  19. themselves have difficulty tracking the source of the stream.
  20. .SH OPTIONS
  21. \fB-h, -help\fP
  22. Display a short help message and exit.
  23. .LP
  24. .TP
  25. \fB-f \fR\fIFILE\fP
  26. FILE contains further "option value" pairs. (Default: @CONFDIR@/torrc)
  27. .LP
  28. .TP
  29. Other options can be specified either on the command-line (\fI--option
  30. value\fR), or in the configuration file (\fIoption value\fR).
  31. Options are case-insensitive.
  32. .LP
  33. .TP
  34. \fBBandwidthRate \fR\fIN\fR \fBbytes\fR|\fBKB\fR|\fBMB\fR|\fBGB\fR|\fBTB\fP
  35. A token bucket limits the average incoming bandwidth on this node to
  36. the specified number of bytes per second. (Default: 3 MB)
  37. .LP
  38. .TP
  39. \fBBandwidthBurst \fR\fIN\fR \fBbytes\fR|\fBKB\fR|\fBMB\fR|\fBGB\fR|\fBTB\fP
  40. Limit the maximum token bucket size (also known as the burst) to the
  41. given number of bytes. (Default: 6 MB)
  42. .LP
  43. .TP
  44. \fBMaxAdvertisedBandwidth \fR\fIN\fR \fBbytes\fR|\fBKB\fR|\fBMB\fR|\fBGB\fR|\fBTB\fP
  45. If set, we will not advertise more than this amount of bandwidth for our
  46. BandwidthRate. Server operators who want to reduce the number of clients
  47. who ask to build circuits through them (since this is proportional to
  48. advertised bandwidth rate) can thus reduce the CPU demands on their
  49. server without impacting network performance.
  50. .LP
  51. .TP
  52. \fBConnLimit \fR\fINUM\fP
  53. The minimum number of file descriptors that must be available to
  54. the Tor process before it will start. Tor will ask the OS for as
  55. many file descriptors as the OS will allow (you can find this
  56. by "ulimit -H -n"). If this number is less than ConnLimit, then
  57. Tor will refuse to start.
  58. You probably don't need to adjust this. It has no effect on
  59. Windows since that platform lacks getrlimit(). (Default: 1000)
  60. .LP
  61. .TP
  62. \fBControlPort \fR\fIPort\fP
  63. If set, Tor will accept connections on
  64. this port, and allow those connections to control the Tor process using the
  65. Tor Control Protocol (described in control-spec.txt). Note: unless you also
  66. specify one of \fBHashedControlPassword\fP or \fBCookieAuthentication\fP,
  67. setting this option will cause Tor to allow any process on the local host to
  68. control it.
  69. .LP
  70. .TP
  71. \fBControlListenAddress \fR\fIIP\fR[:\fIPORT\fR]\fP
  72. Bind the controller listener to this address. If you specify a port,
  73. bind to this port rather than the one specified in ControlPort. We
  74. strongly recommend that you leave this alone unless you know what you're
  75. doing, since giving attackers access to your control listener is really
  76. dangerous. (Default: 127.0.0.1)
  77. This directive can be specified multiple times to bind to multiple
  78. addresses/ports.
  79. .LP
  80. .TP
  81. \fBHashedControlPassword \fR\fIhashed_password\fP
  82. Don't allow any connections on the control port except when the other process
  83. knows the password whose one-way hash is \fIhashed_password\fP. You can
  84. compute the hash of a password by running "tor --hash-password
  85. \fIpassword\fP".
  86. .LP
  87. .TP
  88. \fBCookieAuthentication \fR\fB0\fR|\fB1\fP
  89. If this option is set to 1, don't allow any connections on the control port
  90. except when the connecting process knows the contents of a file named
  91. "control_auth_cookie", which Tor will create in its data directory. This
  92. authentication methods should only be used on systems with good filesystem
  93. security. (Default: 0)
  94. .LP
  95. .TP
  96. \fBDataDirectory \fR\fIDIR\fP
  97. Store working data in DIR (Default: @LOCALSTATEDIR@/lib/tor)
  98. .LP
  99. .TP
  100. \fBDirServer \fR[\fInickname\fR] [\fBflags\fR] \fIaddress\fR\fB:\fIport fingerprint\fP
  101. Use a nonstandard authoritative directory server at the provided
  102. address and port, with the specified key fingerprint. This option can
  103. be repeated many times, for multiple authoritative directory
  104. servers. Flags are separated by spaces, and determine what kind of an
  105. authority this directory is. By default, every authority is authoritative
  106. for current ("v2")-style directories, unless the "no-v2" flag is given. If the "v1" flags is provided, Tor will use this server as an
  107. authority for old-style (v1) directories as well. (Only directory mirrors
  108. care about this.) Tor will use this server as an authority for hidden
  109. service information if the "hs" flag is set, or if the "v1" flag is set and
  110. the "no-hs" flag is \fBnot\fP set. If a flag "orport=\fBport\fR" is given,
  111. Tor will use the given port when opening encrypted tunnels to the
  112. dirserver.
  113. If no \fBdirserver\fP line is given, Tor will use the default
  114. directory servers. NOTE: this option is intended
  115. for setting up a private Tor network with its own directory authorities. If
  116. you use it, you will be distinguishable from other users, because you won't
  117. believe the same authorities they do.
  118. .LP
  119. .TP
  120. \fBFetchHidServDescriptors \fR\fB0\fR|\fB1\fR\fP
  121. If set to 0, Tor will never fetch any hidden service descriptors from
  122. the rendezvous directories. This option is only useful if you're using
  123. a Tor controller that handles hidserv fetches for you.
  124. (Default: 1)
  125. .LP
  126. .TP
  127. \fBFetchServerDescriptors \fR\fB0\fR|\fB1\fR\fP
  128. If set to 0, Tor will never fetch any network status summaries or server
  129. descriptors from the directory servers. This option is only useful if
  130. you're using a Tor controller that handles directory fetches for you.
  131. (Default: 1)
  132. .LP
  133. .TP
  134. \fBFetchUselessDescriptors \fR\fB0\fR|\fB1\fR\fP
  135. If set to 1, Tor will fetch every non-obsolete descriptor from the
  136. authorities that it hears about. Otherwise, it will avoid fetching
  137. useless descriptors, for example for routers that are not running.
  138. This option is useful if you're using the contributed "exitlist"
  139. script to enumerate Tor nodes that exit to certain addresses.
  140. (Default: 0)
  141. .LP
  142. .TP
  143. \fBGroup \fR\fIGID\fP
  144. On startup, setgid to this group.
  145. .LP
  146. .TP
  147. \fBHttpProxy\fR \fIhost\fR[:\fIport\fR]\fP
  148. Tor will make all its directory requests through this host:port
  149. (or host:80 if port is not specified),
  150. rather than connecting directly to any directory servers.
  151. .LP
  152. .TP
  153. \fBHttpProxyAuthenticator\fR \fIusername:password\fP
  154. If defined, Tor will use this username:password for Basic Http proxy
  155. authentication, as in RFC 2617. This is currently the only form of
  156. Http proxy authentication that Tor supports; feel free to submit a
  157. patch if you want it to support others.
  158. .LP
  159. .TP
  160. \fBHttpsProxy\fR \fIhost\fR[:\fIport\fR]\fP
  161. Tor will make all its OR (SSL) connections through this host:port
  162. (or host:443 if port is not specified), via HTTP CONNECT rather than
  163. connecting directly to servers. You may want to set \fBFascistFirewall\fR
  164. to restrict the set of ports you might try to connect to, if your Https
  165. proxy only allows connecting to certain ports.
  166. .LP
  167. .TP
  168. \fBHttpsProxyAuthenticator\fR \fIusername:password\fP
  169. If defined, Tor will use this username:password for Basic Https proxy
  170. authentication, as in RFC 2617. This is currently the only form of
  171. Https proxy authentication that Tor supports; feel free to submit a
  172. patch if you want it to support others.
  173. .LP
  174. .TP
  175. \fBKeepalivePeriod \fR\fINUM\fP
  176. To keep firewalls from expiring connections, send a padding keepalive
  177. cell every NUM seconds on open connections that are in use. If the
  178. connection has no open circuits, it will instead be closed after NUM
  179. seconds of idleness. (Default: 5 minutes)
  180. .LP
  181. .TP
  182. \fBLog \fR\fIminSeverity\fR[-\fImaxSeverity\fR] \fBstderr\fR|\fBstdout\fR|\fBsyslog\fR\fP
  183. Send all messages between \fIminSeverity\fR and \fImaxSeverity\fR to
  184. the standard output stream, the standard error stream, or to the system
  185. log. (The "syslog" value is only supported on Unix.) Recognized
  186. severity levels are debug, info, notice, warn, and err. We advise using
  187. "notice" in most cases, since anything more verbose may provide sensitive
  188. information to an attacker who obtains the logs. If only one
  189. severity level is given, all messages of that level or higher will be
  190. sent to the listed destination.
  191. .LP
  192. .TP
  193. \fBLog \fR\fIminSeverity\fR[-\fImaxSeverity\fR] \fBfile\fR \fIFILENAME\fP
  194. As above, but send log messages to the listed filename. The "Log"
  195. option may appear more than once in a configuration file. Messages
  196. are sent to all the logs that match their severity level.
  197. .LP
  198. .TP
  199. \fBOutboundBindAddress \fR\fIIP\fP
  200. Make all outbound connections originate from the IP address specified. This
  201. is only useful when you have multiple network interfaces, and you want all
  202. of Tor's outgoing connections to use a single one.
  203. .LP
  204. .TP
  205. \fBPidFile \fR\fIFILE\fP
  206. On startup, write our PID to FILE. On clean shutdown, remove FILE.
  207. .LP
  208. .TP
  209. \fBProtocolWarnings \fR\fB0\fR|\fB1\fR\fP
  210. If 1, Tor will log with severity 'warn' various cases of other parties
  211. not following the Tor specification. Otherwise, they are logged with
  212. severity 'info'. (Default: 0)
  213. .LP
  214. .TP
  215. \fBRunAsDaemon \fR\fB0\fR|\fB1\fR\fP
  216. If 1, Tor forks and daemonizes to the background. This option has
  217. no effect on Windows; instead you should use the --service command-line
  218. option. (Default: 0)
  219. .LP
  220. .TP
  221. \fBSafeLogging \fR\fB0\fR|\fB1\fP
  222. If 1, Tor replaces potentially sensitive strings in the logs
  223. (e.g. addresses) with the string [scrubbed]. This way logs can still be
  224. useful, but they don't leave behind personally identifying information
  225. about what sites a user might have visited. (Default: 1)
  226. .LP
  227. .TP
  228. \fBUser \fR\fIUID\fP
  229. On startup, setuid to this user.
  230. .LP
  231. .TP
  232. \fBHardwareAccel \fR\fB0\fR|\fB1\fP
  233. If non-zero, try to use crypto hardware acceleration when
  234. available. This is untested and probably buggy. (Default: 0)
  235. .LP
  236. .TP
  237. \fBAvoidDiskWrites \fR\fB0|\fR\fB1\fP
  238. If non-zero, try to write to disk less frequently than we would otherwise.
  239. This is useful when running on flash memory or other media that support only
  240. a limited number of writes. (Default: 0)
  241. .LP
  242. .TP
  243. \fBTunnelDirConns \fR\fB0|\fR\fB1\fP
  244. If non-zero, when a directory server we contact supports it, we will
  245. build a one-hop circuit and make an encrypted connection via its
  246. ORPort. (Default: 0)
  247. .LP
  248. .TP
  249. \fBPreferTunneledDirConns \fR\fB0|\fR\fB1\fP
  250. If non-zero, we will avoid directory servers that don't support tunneled
  251. directory connections, when possible. (Default: 0)
  252. .SH CLIENT OPTIONS
  253. .PP
  254. The following options are useful only for clients (that is, if \fBSocksPort\fP is non-zero):
  255. .LP
  256. .TP
  257. \fBAllowInvalidNodes\fR \fBentry\fR|\fBexit\fR|\fBmiddle\fR|\fBintroduction\fR|\fBrendezvous\fR|...\fP
  258. If some Tor servers are obviously not working right, the directory
  259. authorities can manually mark them as invalid, meaning that it's not
  260. recommended you use them for entry or exit positions in your circuits. You
  261. can opt to use them in some circuit positions, though. The default is
  262. "middle,rendezvous", and other choices are not advised.
  263. .LP
  264. .TP
  265. \fBCircuitBuildTimeout \fR\fINUM\fP
  266. Try for at most NUM seconds when building circuits. If the circuit
  267. isn't open in that time, give up on it.
  268. (Default: 1 minute.)
  269. .LP
  270. .TP
  271. \fBCircuitIdleTimeout \fR\fINUM\fP
  272. If we have keept a clean (never used) circuit around for NUM seconds,
  273. then close it. This way when the Tor client is entirely idle, it can
  274. expire all of its circuits, and then expire its TLS connections. Also,
  275. if we end up making a circuit that is not useful for exiting any of
  276. the requests we're receiving, it won't forever take up a slot in the
  277. circuit list.
  278. (Default: 1 hour.)
  279. .LP
  280. .TP
  281. \fBClientOnly \fR\fB0\fR|\fB1\fR\fP
  282. If set to 1, Tor will under no circumstances run as a server. The default
  283. is to run as a client unless ORPort is configured. (Usually,
  284. you don't need to set this; Tor is pretty smart at figuring out whether
  285. you are reliable and high-bandwidth enough to be a useful server.)
  286. (Default: 0)
  287. .LP
  288. .TP
  289. \fBExcludeNodes \fR\fInickname\fR,\fInickname\fR,\fI...\fP
  290. A list of nodes to never use when building a circuit.
  291. .LP
  292. .TP
  293. \fBEntryNodes \fR\fInickname\fR,\fInickname\fR,\fI...\fP
  294. A list of preferred nodes to use for the first hop in the circuit.
  295. These are treated only as preferences unless StrictEntryNodes (see
  296. below) is also set.
  297. .LP
  298. .TP
  299. \fBExitNodes \fR\fInickname\fR,\fInickname\fR,\fI...\fP
  300. A list of preferred nodes to use for the last hop in the circuit.
  301. These are treated only as preferences unless StrictExitNodes (see
  302. below) is also set.
  303. .LP
  304. .TP
  305. \fBStrictEntryNodes \fR\fB0\fR|\fB1\fR\fP
  306. If 1, Tor will never use any nodes besides those listed in "EntryNodes" for
  307. the first hop of a circuit.
  308. .LP
  309. .TP
  310. \fBStrictExitNodes \fR\fB0\fR|\fB1\fR\fP
  311. If 1, Tor will never use any nodes besides those listed in "ExitNodes" for
  312. the last hop of a circuit.
  313. .LP
  314. .TP
  315. \fBFascistFirewall \fR\fB0\fR|\fB1\fR\fP
  316. If 1, Tor will only create outgoing connections to ORs running on ports that
  317. your firewall allows (defaults to 80 and 443; see \fBFirewallPorts\fR). This will
  318. allow you to run Tor as a client behind a firewall with restrictive policies,
  319. but will not allow you to run as a server behind such a firewall.
  320. This option is deprecated; use
  321. ReachableAddresses instead.
  322. .LP
  323. .TP
  324. \fBFirewallPorts \fR\fIPORTS\fP
  325. A list of ports that your firewall allows you to connect to. Only
  326. used when \fBFascistFirewall\fR is set. This option is deprecated; use
  327. ReachableAddresses instead. (Default: 80, 443)
  328. .LP
  329. .TP
  330. \fBReachableAddresses \fR\fIADDR\fP[\fB/\fP\fIMASK\fP][:\fIPORT\fP]...\fP
  331. A comma-separated list of IP addresses and ports that your firewall allows you
  332. to connect to. The format is as
  333. for the addresses in ExitPolicy, except that "accept" is understood
  334. unless "reject" is explicitly provided. For example, 'ReachableAddresses
  335. 99.0.0.0/8, reject 18.0.0.0/8:80, accept *:80' means that your
  336. firewall allows connections to everything inside net 99, rejects port
  337. 80 connections to net 18, and accepts connections to port 80 otherwise.
  338. (Default: 'accept *:*'.)
  339. .LP
  340. .TP
  341. \fBReachableDirAddresses \fR\fIADDR\fP[\fB/\fP\fIMASK\fP][:\fIPORT\fP]...\fP
  342. Like \fBReachableAddresses\fP, a list of addresses and ports. Tor will obey
  343. these restrictions when fetching directory information, using standard HTTP
  344. GET requests. If not set explicitly then the value of \fBReachableAddresses\fP
  345. is used. If \fBHttpProxy\fR is set then these connections will go through that
  346. proxy.
  347. .LP
  348. .TP
  349. \fBReachableORAddresses \fR\fIADDR\fP[\fB/\fP\fIMASK\fP][:\fIPORT\fP]...\fP
  350. Like \fBReachableAddresses\fP, a list of addresses and ports. Tor will obey
  351. these restrictions when connecting to Onion Routers, using TLS/SSL. If not set
  352. explicitly then the value of \fBReachableAddresses\fP is used. If
  353. \fBHttpsProxy\fR is set then these connections will go through that proxy.
  354. The separation between \fBReachableORAddresses\fP and
  355. \fBReachableDirAddresses\fP is only interesting when you are connecting through
  356. proxies (see \fBHttpProxy\fR and \fBHttpsProxy\fR). Most proxies limit TLS
  357. connections (which Tor uses to connect to Onion Routers) to port 443, and some
  358. limit HTTP GET requests (which Tor uses for fetching directory information) to
  359. port 80.
  360. .LP
  361. .TP
  362. \fBLongLivedPorts \fR\fIPORTS\fP
  363. A list of ports for services that tend to have long-running connections
  364. (e.g. chat and interactive shells). Circuits for streams that use these
  365. ports will contain only high-uptime nodes, to reduce the chance that a
  366. node will go down before the stream is finished.
  367. (Default: 21, 22, 706, 1863, 5050, 5190, 5222, 5223, 6667, 6697, 8300)
  368. .LP
  369. .TP
  370. \fBMapAddress\fR \fIaddress\fR \fInewaddress\fR
  371. When a request for address arrives to Tor, it will rewrite it to
  372. newaddress before processing it. For example, if you always want
  373. connections to www.indymedia.org to exit via \fItorserver\fR (where
  374. \fItorserver\fR is the nickname of the server),
  375. use "MapAddress www.indymedia.org www.indymedia.org.torserver.exit".
  376. .LP
  377. .TP
  378. \fBNewCircuitPeriod \fR\fINUM\fP
  379. Every NUM seconds consider whether to build a new circuit. (Default: 30 seconds)
  380. .LP
  381. .TP
  382. \fBMaxCircuitDirtiness \fR\fINUM\fP
  383. Feel free to reuse a circuit that was first used at most NUM seconds ago,
  384. but never attach a new stream to a circuit that is too old.
  385. (Default: 10 minutes)
  386. .LP
  387. .TP
  388. \fBNodeFamily \fR\fInickname\fR,\fInickname\fR,\fI...\fP
  389. The named Tor servers constitute a "family" of similar or co-administered
  390. servers, so never use any two of them in the same circuit. Defining a
  391. NodeFamily is only needed when a server doesn't list the family itself
  392. (with MyFamily). This option can be used multiple times.
  393. .LP
  394. .TP
  395. \fBEnforceDistinctSubnets \fR\fB0\fR|\fB1\fR\fP
  396. If 1, Tor will not put two servers whose IP addresses are "too
  397. close" on the same circuit. Currently, two addresses are
  398. "too close" if they lie in the same /16 range. (Default: 1)
  399. .\" \fBPathlenCoinWeight \fR\fI0.0-1.0\fP
  400. .\" Paths are 3 hops plus a geometric distribution centered around this coinweight.
  401. .\" Must be >=0.0 and <1.0. (Default: 0.3) NOT USED CURRENTLY
  402. .\" .TP
  403. .LP
  404. .TP
  405. \fBRendNodes \fR\fInickname\fR,\fInickname\fR,\fI...\fP
  406. A list of preferred nodes to use for the rendezvous point, if possible.
  407. .LP
  408. .TP
  409. \fBRendExcludeNodes \fR\fInickname\fR,\fInickname\fR,\fI...\fP
  410. A list of nodes to never use when choosing a rendezvous point.
  411. .LP
  412. .TP
  413. \fBSocksPort \fR\fIPORT\fP
  414. Advertise this port to listen for connections from Socks-speaking
  415. applications. Set this to 0 if you don't want to allow application
  416. connections. (Default: 9050)
  417. .LP
  418. .TP
  419. \fBSocksListenAddress \fR\fIIP\fR[:\fIPORT\fR]\fP
  420. Bind to this address to listen for connections from Socks-speaking
  421. applications. (Default: 127.0.0.1) You can also specify a port
  422. (e.g. 192.168.0.1:9100).
  423. This directive can be specified multiple times to bind to multiple
  424. addresses/ports.
  425. .LP
  426. .TP
  427. \fBSocksPolicy \fR\fIpolicy\fR,\fIpolicy\fR,\fI...\fP
  428. Set an entrance policy for this server, to limit who can connect to the
  429. Socks ports.
  430. The policies have the same form as exit policies below.
  431. .LP
  432. .TP
  433. \fBSocksTimeout \fR\fINUM\fP
  434. Let a socks connection wait NUM seconds unattached before we fail it.
  435. (Default: 2 minutes.)
  436. .LP
  437. .TP
  438. \fBTestVia \fR\fInickname\fR,\fInickname\fR,\fI...\fP
  439. A list of nodes to prefer for your middle hop when building testing
  440. circuits. This option is mainly for debugging reachability problems.
  441. .LP
  442. .TP
  443. \fBTrackHostExits \fR\fIhost\fR,\fI.domain\fR,\fI...\fR\fP
  444. For each value in the comma separated list, Tor will track recent connections
  445. to hosts that match this value and attempt to
  446. reuse the same exit node for each. If the value is prepended with a '.', it is
  447. treated as matching an entire domain. If one of the values is just a '.', it
  448. means match everything. This option is useful if you frequently connect to
  449. sites that will expire all your authentication cookies (ie log you out) if
  450. your IP address changes. Note that this option does have the disadvantage of
  451. making it more clear that a given history is
  452. associated with a single user. However, most people who would wish to observe
  453. this will observe it through cookies or other protocol-specific means anyhow.
  454. .LP
  455. .TP
  456. \fBTrackHostExitsExpire \fR\fINUM\fP
  457. Since exit servers go up and down, it is desirable to expire the association
  458. between host and exit server after NUM seconds. The default
  459. is 1800 seconds (30 minutes).
  460. .LP
  461. .TP
  462. \fBUseEntryGuards \fR\fB0\fR|\fB1\fR\fP
  463. If this option is set to 1, we pick a few long-term entry servers, and
  464. try to stick with them. This is desirable because
  465. constantly changing servers increases the odds that an adversary who owns
  466. some servers will observe a fraction of your paths.
  467. (Defaults to 1.)
  468. .LP
  469. .TP
  470. \fBNumEntryGuards \fR\fINUM\fP
  471. If UseEntryGuards is set to 1, we will try to pick a total of NUM routers
  472. as long-term entries for our circuits.
  473. (Defaults to 3.)
  474. .LP
  475. .TP
  476. \fBSafeSocks \fR\fB0\fR|\fB1\fR\fP
  477. When this option is enabled, Tor will reject application connections that
  478. use unsafe variants of the socks protocol -- ones that only provide an
  479. IP address, meaning the application is doing a DNS resolve first.
  480. Specifically, these are socks4 and socks5 when not doing remote DNS.
  481. (Defaults to 0.)
  482. .LP
  483. .TP
  484. \fBTestSocks \fR\fB0\fR|\fB1\fR\fP
  485. When this option is enabled, Tor will make a notice-level log entry for
  486. each connection to the Socks port indicating whether the request used
  487. a safe socks protocol or an unsafe one (see above entry on SafeSocks).
  488. This helps to determine whether an application using Tor is possibly
  489. leaking DNS requests.
  490. (Default: 0)
  491. .LP
  492. .TP
  493. \fBVirtualAddrNetwork \fR\fIAddress\fB/\fIbits\fP
  494. When a controller asks for a virtual (unused) address with the
  495. 'MAPADDRESS' command, Tor picks an unassigned address from this range.
  496. (Default: 127.192.0.0/10)
  497. .LP
  498. .TP
  499. \fBAllowNonRFC953Hostnames \fR\fB0\fR|\fB1\fR\fP
  500. When this option is enabled, Tor blocks hostnames containing illegal
  501. characters (like @ and :) rather than sending them to an exit node to be
  502. resolved. This helps trap accidental attempts to resolve URLs and so on.
  503. (Default: 0)
  504. .LP
  505. .TP
  506. \fBFastFirstHopPK \fR\fB0\fR|fB1\fR\fP
  507. When this option is enabled and we aren't running as a server, Tor
  508. skips the public key step for the first hop of creating circuits. This is
  509. safe since we have already used TLS to authenticate the server and to
  510. establish forward-secure keys. Turning this option off makes circuit
  511. building slower.
  512. (Default: 1)
  513. .SH SERVER OPTIONS
  514. .PP
  515. The following options are useful only for servers (that is, if \fBORPort\fP is non-zero):
  516. .LP
  517. .TP
  518. \fBAddress \fR\fIaddress\fP
  519. The IP or fqdn of this server (e.g. moria.mit.edu). You can leave this
  520. unset, and Tor will guess your IP.
  521. .LP
  522. .TP
  523. \fBAssumeReachable \fR\fB0\fR|\fB1\fR\fP
  524. This option is used when bootstrapping a new Tor network. If set to 1,
  525. don't do self-reachability testing; just upload your server descriptor
  526. immediately. If \fBAuthoritativeDirectory\fP is also set, this option
  527. instructs the dirserver to bypass remote reachability testing too and
  528. list all connected servers as running.
  529. .LP
  530. .TP
  531. \fBContactInfo \fR\fIemail_address\fP
  532. Administrative contact information for server. This line might get
  533. picked up by spam harvesters, so you may want to obscure the fact
  534. that it's an email address.
  535. .LP
  536. .TP
  537. \fBExitPolicy \fR\fIpolicy\fR,\fIpolicy\fR,\fI...\fP
  538. Set an exit policy for this server. Each policy is of the form
  539. "\fBaccept\fP|\fBreject\fP \fIADDR\fP[\fB/\fP\fIMASK\fP]\fB[:\fP\fIPORT\fP]".
  540. If \fB/\fP\fIMASK\fP is omitted then this policy just applies to the host
  541. given. Instead of giving a host or network you can also use "\fB*\fP" to
  542. denote the universe (0.0.0.0/0). \fIPORT\fP can be a single port number,
  543. an interval of ports "\fIFROM_PORT\fP\fB-\fP\fITO_PORT\fP", or "\fB*\fP".
  544. If \fIPORT\fP is omitted, that means "\fB*\fP".
  545. For example, "accept 18.7.22.69:*,reject 18.0.0.0/8:*,accept *:*" would
  546. reject any traffic destined for MIT except for web.mit.edu, and
  547. accept anything else.
  548. To specify all internal and link-local networks (including 0.0.0.0/8,
  549. 169.254.0.0/16, 127.0.0.0/8, 192.168.0.0/16, 10.0.0.0/8, and
  550. 172.16.0.0/12), you can use the "private" alias instead of an address.
  551. These addresses are rejected by default (at the beginning of your
  552. exit policy) unless you set the ExitPolicyRejectPrivate config option
  553. to 0. For example, once you've done that, you could allow HTTP to
  554. 127.0.0.1 and block all other connections to internal networks with
  555. "accept
  556. 127.0.0.1:80,reject private:*". See RFC 1918 and RFC 3330 for more
  557. details about internal and reserved IP address space.
  558. This directive can be specified multiple times so you don't have to put
  559. it all on one line.
  560. Policies are considered first to last, and the first match wins. If
  561. you want to _replace_ the default exit policy, end your exit policy with
  562. either a reject *:* or an accept *:*. Otherwise, you're _augmenting_
  563. (prepending to) the default exit policy. The default exit policy is:
  564. .PD 0
  565. .RS 12
  566. .IP "reject *:25"
  567. .IP "reject *:119"
  568. .IP "reject *:135-139"
  569. .IP "reject *:445"
  570. .IP "reject *:465"
  571. .IP "reject *:563"
  572. .IP "reject *:587"
  573. .IP "reject *:1214"
  574. .IP "reject *:4661-4666"
  575. .IP "reject *:6346-6429"
  576. .IP "reject *:6699"
  577. .IP "reject *:6881-6999"
  578. .IP "accept *:*"
  579. .RE
  580. .PD
  581. .LP
  582. .TP
  583. \fBExitPolicyRejectPrivate \fR\fB0\fR|\fB1\fR\fP
  584. Reject all private (local) networks at the beginning of your exit
  585. policy. See above entry on ExitPolicy. (Default: 1)
  586. .LP
  587. .TP
  588. \fBMaxOnionsPending \fR\fINUM\fP
  589. If you have more than this number of onionskins queued for decrypt, reject new ones. (Default: 100)
  590. .LP
  591. .TP
  592. \fBMyFamily \fR\fInickname\fR,\fInickname\fR,\fI...\fP
  593. Declare that this Tor server is controlled or administered by a group
  594. or organization identical or similar to that of the other named servers.
  595. When two servers both declare that they are in the same 'family', Tor clients
  596. will not use them in the same circuit. (Each server only needs to list the
  597. other servers in its family; it doesn't need to list itself, but it won't hurt.)
  598. .LP
  599. .TP
  600. \fBNickname \fR\fIname\fP
  601. Set the server's nickname to 'name'. Nicknames must be between 1
  602. and 19 characters inclusive, and must contain only the characters
  603. [a-zA-Z0-9].
  604. .LP
  605. .TP
  606. \fBNumCPUs \fR\fInum\fP
  607. How many processes to use at once for decrypting onionskins. (Default: 1)
  608. .LP
  609. .TP
  610. \fBORPort \fR\fIPORT\fP
  611. Advertise this port to listen for connections from Tor clients and servers.
  612. .LP
  613. .TP
  614. \fBORListenAddress \fR\fIIP\fR[:\fIPORT\fR]\fP
  615. Bind to this IP address to listen for connections from Tor clients and
  616. servers. If you specify a port, bind to this port rather than the one
  617. specified in ORPort. (Default: 0.0.0.0)
  618. This directive can be specified multiple times to bind to multiple
  619. addresses/ports.
  620. .LP
  621. .TP
  622. \fBPublishServerDescriptor \fR\fB0\fR|\fB1\fR\fP
  623. If set to 0, Tor will act as a server if you have an ORPort
  624. defined, but it will not publish its descriptor to the dirservers. This
  625. option is useful if you're testing out your server, or if you're using
  626. a Tor controller that handles directory publishing for you.
  627. (Default: 1)
  628. .LP
  629. .TP
  630. \fBRedirectExit \fR\fIpattern target\fP
  631. Whenever an outgoing connection tries to connect to one of a given set
  632. of addresses, connect to \fItarget\fP (an \fIaddress:port\fP pair) instead.
  633. The address
  634. pattern is given in the same format as for an exit policy. The
  635. address translation applies after exit policies are applied. Multiple
  636. \fBRedirectExit\fP options can be used: once any one has matched
  637. successfully, no subsequent rules are considered. You can specify that no
  638. redirection is to be performed on a given set of addresses by using the
  639. special target string "pass", which prevents subsequent rules from being
  640. considered.
  641. .LP
  642. .TP
  643. \fBShutdownWaitLength\fR \fINUM\fP
  644. When we get a SIGINT and we're a server, we begin shutting down: we close
  645. listeners and start refusing new circuits. After \fBNUM\fP seconds,
  646. we exit. If we get a second SIGINT, we exit immediately. (Default:
  647. 30 seconds)
  648. .LP
  649. .TP
  650. \fBAccountingMax \fR\fIN\fR \fBbytes\fR|\fBKB\fR|\fBMB\fR|\fBGB\fR|\fBTB\fP
  651. Never send more than the specified number of bytes in a given
  652. accounting period, or receive more than that number in the period.
  653. For example, with AccountingMax set to 1 GB, a server could send 900 MB
  654. and receive 800 MB and continue running. It will only hibernate once one
  655. of the two reaches 1 GB.
  656. When the number of bytes is exhausted, Tor will hibernate until some
  657. time in the next accounting period. To prevent all servers from
  658. waking at the same time, Tor will also wait until a random point in
  659. each period before waking up. If you have bandwidth cost issues,
  660. enabling hibernation is preferable to setting a low bandwidth, since it
  661. provides users with a collection of fast servers that are up some of
  662. the time, which is more useful than a set of slow servers that are
  663. always "available".
  664. .LP
  665. .TP
  666. \fBAccountingStart \fR\fBday\fR|\fBweek\fR|\fBmonth\fR [\fIday\fR] \fIHH:MM\fR\fP
  667. Specify how long accounting periods last. If \fBmonth\fP is given,
  668. each accounting period runs from the time \fIHH:MM\fR on the
  669. \fIday\fRth day of one month to the same day and time of the next.
  670. (The day must be between 1 and 28.) If \fBweek\fP is given, each
  671. accounting period runs from the time \fIHH:MM\fR of the \fIday\fRth
  672. day of one week to the same day and time of the next week, with Monday
  673. as day 1 and Sunday as day 7. If \fBday\fR is given, each accounting
  674. period runs from the time \fIHH:MM\fR each day to the same time on the
  675. next day. All times are local, and given in 24-hour time. (Defaults to
  676. "month 1 0:00".)
  677. .LP
  678. .TP
  679. \fBServerDNSResolvConfFile \fR\fIfilename\fP
  680. Overrides the default DNS configuration with the configuration in
  681. \fIfilename\fP. The file format is the same as the standard Unix
  682. "\fBresolv.conf\fP" file (7). This option only affects name lookup for
  683. addresses requested by clients; and only takes effect if Tor was built with
  684. eventdns support. (Defaults to use the system DNS configuration.)
  685. .LP
  686. .TP
  687. \fBServerDNSSearchDomains \fR\fB0\fR|\fB1\fR\fP
  688. If set to \fB1\fP, then we will search for addresses in the local search
  689. domain. For example, if this system is configured to believe it is in
  690. "example.com", and a client tries to connect to "www", the client will be
  691. connected to "www.example.com".
  692. This option only affects name lookup for addresses requested by clients.
  693. (Defaults to "0".)
  694. .LP
  695. .TP
  696. \fBServerDNSDetectHijacking \fR\fB0\fR|\fB1\fR\fP
  697. When this option is set to 1, we will test periodically to determine whether
  698. our local nameservers have been configured to hijack failing DNS requests
  699. (usually to an advertising site). If they are, we will attempt to correct
  700. this. This option only affects name lookup for addresses requested by
  701. clients; and only takes effect if Tor was built with eventdns support.
  702. (Defaults to "1".)
  703. .LP
  704. .TP
  705. \fBServerDNSTestAddresses \fR\fIaddress\fR,\fIaddress\fR,\fI...\fP
  706. When we're detecting DNS hijacking, make sure that these \fIvalid\fP
  707. addresses aren't getting redirected. If they are, then our DNS is
  708. completely useless, and we'll reset our exit policy to "reject *:*".
  709. (Defaults to "www.google.com, www.mit.edu, www.yahoo.com,
  710. www.slashdot.org".)
  711. .SH DIRECTORY SERVER OPTIONS
  712. .PP
  713. The following options are useful only for directory servers (that is, if \fBDirPort\fP is non-zero):
  714. .LP
  715. .TP
  716. \fBAuthoritativeDirectory \fR\fB0\fR|\fB1\fR\fP
  717. When this option is set to 1, Tor operates as an authoritative
  718. directory server. Instead of caching the directory, it generates its
  719. own list of good servers, signs it, and sends that to the clients.
  720. Unless the clients already have you listed as a trusted directory, you
  721. probably do not want to set this option. Please coordinate with the other
  722. admins at tor-ops@freehaven.net if you think you should be a directory.
  723. .LP
  724. .TP
  725. \fBV1AuthoritativeDirectory \fR\fB0\fR|\fB1\fR\fP
  726. When this option is set in addition to \fBAuthoritativeDirectory\fP, Tor also
  727. generates a version 1 directory (for Tor clients up to 0.1.0.x).
  728. (As of Tor 0.1.1.12 every (v2) authoritative directory still provides most of
  729. the v1 directory functionality, even without this option set to 1.
  730. This however is expected to change in the future.)
  731. .LP
  732. .TP
  733. \fBVersioningAuthoritativeDirectory \fR\fB0\fR|\fB1\fR\fP
  734. When this option is set to 1, Tor adds information on
  735. which versions of Tor are still believed safe for use to
  736. the published directory. Each version 1 authority is
  737. automatically a versioning authority; version 2 authorities
  738. provide this service optionally. See \fBRecommendedVersions\fP,
  739. \fBRecommendedClientVersions\fP, and \fBRecommendedServerVersions\fP.
  740. .LP
  741. .TP
  742. \fBNamingAuthoritativeDirectory \fR\fB0\fR|\fB1\fR\fP
  743. When this option is set to 1, then the server advertises that it has
  744. opinions about nickname-to-fingerprint bindings. It will include these
  745. opinions in its published network-status pages, by listing servers with
  746. the flag "Named" if a correct binding between that nickname and
  747. fingerprint has been registered with the dirserver. Naming dirservers
  748. will refuse to accept or publish descriptors that contradict a
  749. registered binding. See \fBapproved-routers\fP in the \fBFILES\fP
  750. section below.
  751. .LP
  752. .TP
  753. \fBHSAuthoritativeDir \fR\fB0\fR|\fB1\fR\fP
  754. When this option is set in addition to \fBAuthoritativeDirectory\fP, Tor also
  755. accepts and serves hidden service descriptors. (Default: 0)
  756. .LP
  757. .TP
  758. \fBDirPort \fR\fIPORT\fP
  759. Advertise the directory service on this port.
  760. .LP
  761. .TP
  762. \fBDirListenAddress \fR\fIIP\fR[:\fIPORT\fR]\fP
  763. Bind the directory service to this address. If you specify a port, bind
  764. to this port rather than the one specified in DirPort. (Default: 0.0.0.0)
  765. This directive can be specified multiple times to bind to multiple
  766. addresses/ports.
  767. .LP
  768. .TP
  769. \fBDirPolicy \fR\fIpolicy\fR,\fIpolicy\fR,\fI...\fP
  770. Set an entrance policy for this server, to limit who can connect to the
  771. directory ports.
  772. The policies have the same form as exit policies above.
  773. .LP
  774. .TP
  775. \fBRecommendedVersions \fR\fISTRING\fP
  776. STRING is a comma-separated list of Tor versions currently believed
  777. to be safe. The list is included in each directory, and nodes which
  778. pull down the directory learn whether they need to upgrade. This
  779. option can appear multiple times: the values from multiple lines are
  780. spliced together.
  781. When this is set then
  782. \fBVersioningAuthoritativeDirectory\fP should be set too.
  783. .LP
  784. .TP
  785. \fBRecommendedClientVersions \fR\fISTRING\fP
  786. STRING is a comma-separated list of Tor versions currently believed
  787. to be safe for clients to use. This information is included in version 2
  788. directories. If this is not set then the value of \fBRecommendedVersions\fR
  789. is used.
  790. When this is set then
  791. \fBVersioningAuthoritativeDirectory\fP should be set too.
  792. .LP
  793. .TP
  794. \fBRecommendedServerVersions \fR\fISTRING\fP
  795. STRING is a comma-separated list of Tor versions currently believed
  796. to be safe for servers to use. This information is included in version 2
  797. directories. If this is not set then the value of \fBRecommendedVersions\fR
  798. is used.
  799. When this is set then
  800. \fBVersioningAuthoritativeDirectory\fP should be set too.
  801. .LP
  802. .TP
  803. \fBDirAllowPrivateAddresses \fR\fB0\fR|\fB1\fR\fP
  804. If set to 1, Tor will accept router descriptors with arbitrary "Address"
  805. elements. Otherwise, if the address is not an IP or is a private IP,
  806. it will reject the router descriptor. Defaults to 0.
  807. .LP
  808. .TP
  809. \fBAuthDirBadExit \fR\fIAddressPattern\fR...\fP
  810. Authoritative directories only. A set of address patterns for servers that
  811. will be listed as bad exits in any network status document this authority
  812. publishes, if \fBAuthDirListBadExits\fR is set.
  813. .LP
  814. .TP
  815. \fBAuthDirInvalid \fR\fIAddressPattern\fR...\fP
  816. Authoritative directories only. A set of address patterns for servers that
  817. will never be listed as "valid" in any network status document that this
  818. authority publishes.
  819. .LP
  820. .TP
  821. \fBAuthDirReject \fR\fIAddressPattern\fR...\fP
  822. Authoritative directories only. A set of address patterns for servers that
  823. will never be listed at all in any network status document that this
  824. authority publishes, or accepted as an OR address in any descriptor submitted
  825. for publication by this authority.
  826. .LP
  827. .TP
  828. \fBAuthDirListBadExits \fR\fB0\fR|\fB1\fR\fP
  829. Authoritative directories only. If set to 1, this directory has
  830. some opinion about which nodes are unsuitable as exit nodes. (Do not
  831. set this to 1 unless you plan to list nonfunctioning exits as bad;
  832. otherwise, you are effectively voting in favor of every declared exit
  833. as an exit.)
  834. .LP
  835. .TP
  836. \fBAuthDirRejectUnlisted \fR\fB0\fR|\fB1\fR\fP
  837. Authoritative directories only. If set to 1, the directory server
  838. rejects all uploaded server descriptors that aren't explicitly listed
  839. in the fingerprints file. This acts as a "panic button" if we get
  840. Sybiled. (Default: 0)
  841. .SH HIDDEN SERVICE OPTIONS
  842. .PP
  843. The following options are used to configure a hidden service.
  844. .LP
  845. .TP
  846. \fBHiddenServiceDir \fR\fIDIRECTORY\fP
  847. Store data files for a hidden service in DIRECTORY. Every hidden
  848. service must have a separate directory. You may use this option multiple
  849. times to specify multiple services.
  850. .LP
  851. .TP
  852. \fBHiddenServicePort \fR\fIVIRTPORT \fR[\fITARGET\fR]\fP
  853. Configure a virtual port VIRTPORT for a hidden service. You may use this
  854. option multiple times; each time applies to the service using the most recent
  855. hiddenservicedir. By default, this option maps the virtual port to the
  856. same port on 127.0.0.1. You may override the target port, address, or both
  857. by specifying a target of addr, port, or addr:port.
  858. .LP
  859. .TP
  860. \fBHiddenServiceNodes \fR\fInickname\fR,\fInickname\fR,\fI...\fP
  861. If possible, use the specified nodes as introduction points for the hidden
  862. service. If this is left unset, Tor will be smart and pick some reasonable
  863. ones; most people can leave this unset.
  864. .LP
  865. .TP
  866. \fBHiddenServiceExcludeNodes \fR\fInickname\fR,\fInickname\fR,\fI...\fP
  867. Do not use the specified nodes as introduction points for the hidden
  868. service. In normal use there is no reason to set this.
  869. .LP
  870. .TP
  871. \fBPublishHidServDescriptors \fR\fB0\fR|\fB1\fR\fP
  872. If set to 0, Tor will run any hidden services you configure, but it won't
  873. advertise them to the rendezvous directory. This option is only useful
  874. if you're using a Tor controller that handles hidserv publishing for you.
  875. (Default: 1)
  876. .LP
  877. .TP
  878. \fBRendPostPeriod \fR\fIN\fR \fBseconds\fR|\fBminutes\fR|\fBhours\fR|\fBdays\fR|\fBweeks\fP
  879. Every time the specified period elapses, Tor uploads any rendezvous
  880. service descriptors to the directory servers. This information is also
  881. uploaded whenever it changes. (Default: 20 minutes)
  882. .\" UNDOCUMENTED
  883. .\" ignoreversion
  884. .SH SIGNALS
  885. Tor catches the following signals:
  886. .LP
  887. .TP
  888. \fBSIGTERM\fR
  889. Tor will catch this, clean up and sync to disk if necessary, and exit.
  890. .LP
  891. .TP
  892. \fBSIGINT\fR
  893. Tor clients behave as with SIGTERM; but Tor servers will do a controlled
  894. slow shutdown, closing listeners and waiting 30 seconds before exiting.
  895. (The delay can be configured with the ShutdownWaitLength config option.)
  896. .LP
  897. .TP
  898. \fBSIGHUP\fR
  899. The signal instructs Tor to reload its configuration (including closing
  900. and reopening logs), fetch a new directory, and kill and restart its
  901. helper processes if applicable.
  902. .LP
  903. .TP
  904. \fBSIGUSR1\fR
  905. Log statistics about current connections, past connections, and
  906. throughput.
  907. .LP
  908. .TP
  909. \fBSIGUSR2\fR
  910. Switch all logs to loglevel debug. You can go back to the old loglevels
  911. by sending a SIGHUP.
  912. .LP
  913. .TP
  914. \fBSIGCHLD\fR
  915. Tor receives this signal when one of its helper processes has exited,
  916. so it can clean up.
  917. .LP
  918. .TP
  919. \fBSIGPIPE\fR
  920. Tor catches this signal and ignores it.
  921. .LP
  922. .TP
  923. \fBSIGXFSZ\fR
  924. If this signal exists on your platform, Tor catches and ignores it.
  925. .SH FILES
  926. .LP
  927. .TP
  928. .B @CONFDIR@/torrc
  929. The configuration file, which contains "option value" pairs.
  930. .LP
  931. .TP
  932. .B @LOCALSTATEDIR@/lib/tor/
  933. The tor process stores keys and other data here.
  934. .LP
  935. .TP
  936. .B \fIDataDirectory\fP/cached-status/*
  937. The most recently downloaded network status document for each authority. Each file holds one such document; the filenames are the hexadecimal identity key fingerprints of the directory authorities.
  938. .LP
  939. .TP
  940. .B \fIDataDirectory\fB/cached-routers\fR and \fBcached-routers.new\fR
  941. These files hold downloaded router statuses. Some routers may appear more than once; if so, the most recently published descriptor is used. The ".new" file is an append-only journal; when it gets too large, all entries are merged into a new cached-routers file.
  942. .LP
  943. .TP
  944. .B \fIDataDirectory\fP/state
  945. A set of persistent key-value mappings. These are documented in the file. These include:
  946. .PD 0
  947. .RS 5
  948. .IP "- The current entry guards and their status."
  949. .IP "- The current bandwidth accounting values (unused so far; see below)."
  950. .IP "- When the file was last written"
  951. .IP "- What version of Tor generated the state file"
  952. .IP "- A short history of bandwidth usage, as produced in the router descriptors."
  953. .RE
  954. .PD
  955. .LP
  956. .TP
  957. .B \fIDataDirectory\fP/bw_accounting
  958. Used to track bandwidth accounting values (when the current period starts and ends; how much has been read and written so far this period). This file is obsolete, and the data is now stored in the 'state' file as well. Only used when bandwidth accounting is enabled.
  959. .LP
  960. .TP
  961. .B \fIDataDirectory\fP/control_auth_cookie
  962. Used for cookie authentication with the controller. Regenerated on startup. See control-spec.txt for details. Only used when cookie authentication is enabled.
  963. .LP
  964. .TP
  965. .B \fIDataDirectory\fP/keys/*
  966. Only used by servers. Holds identity keys and onion keys.
  967. .LP
  968. .TP
  969. .B \fIDataDirectory\fP/fingerprint
  970. Only used by servers. Holds the fingerprint of the server's identity key.
  971. .LP
  972. .TP
  973. .B \fIDataDirectory\fP/approved-routers
  974. Only for naming authoritative directory servers (see \fBNamingAuthoritativeDirectory\fP). This file lists nickname to identity bindings. Each line lists a nickname and a fingerprint separated by whitespace. See your \fBfingerprint\fP file in the \fIDataDirectory\fP for an example line. If the nickname is \fB!reject\fP then descriptors from the given identity (fingerprint) are rejected by this server. If it is \fB!invalid\fP then descriptors are accepted but marked in the directory as not valid, that is, not recommended.
  975. .LP
  976. .TP
  977. .B \fIHiddenServiceDirectory\fP/hostname
  978. The <base32-encoded-fingerprint>.onion domain name for this hidden service.
  979. .LP
  980. .TP
  981. .B \fIHiddenServiceDirectory\fP/private_key
  982. The private key for this hidden service.
  983. .SH SEE ALSO
  984. .BR privoxy (1),
  985. .BR tsocks (1),
  986. .BR torify (1)
  987. .BR http://tor.eff.org/
  988. .SH BUGS
  989. Plenty, probably. Tor is still in development. Please report them.
  990. .SH AUTHORS
  991. Roger Dingledine <arma@mit.edu>, Nick Mathewson <nickm@alum.mit.edu>.