tor.1.in 44 KB

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