tor.1.in 44 KB

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