tor.1.in 42 KB

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