tor.1.in 67 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643
  1. .TH TOR 1 "August 2009" "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 https://wiki.torproject.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 and exit.
  53. .LP
  54. .TP
  55. \fB--quiet\fP
  56. Do not start Tor with a console log unless explicitly requested to do
  57. so. (By default, Tor starts out logging messages at level "notice" or
  58. higher to the console, until it has parsed its configuration.)
  59. .LP
  60. .TP
  61. Other options can be specified either on the command-line (\fI--option
  62. value\fR), or in the configuration file (\fIoption value\fR or
  63. \fIoption "value"\fR). Options are case-insensitive. C-style escaped
  64. characters are allowed inside quoted values.
  65. .LP
  66. .TP
  67. \fBBandwidthRate \fR\fIN\fR \fBbytes\fR|\fBKB\fR|\fBMB\fR|\fBGB\fR|\fBTB\fP
  68. A token bucket limits the average incoming bandwidth usage on this node
  69. to the specified number of bytes per second, and the average outgoing
  70. bandwidth usage to that same value. (Default: 5 MB)
  71. .LP
  72. .TP
  73. \fBBandwidthBurst \fR\fIN\fR \fBbytes\fR|\fBKB\fR|\fBMB\fR|\fBGB\fR|\fBTB\fP
  74. Limit the maximum token bucket size (also known as the burst) to the
  75. given number of bytes in each direction. (Default: 10 MB)
  76. .LP
  77. .TP
  78. \fBMaxAdvertisedBandwidth \fR\fIN\fR \fBbytes\fR|\fBKB\fR|\fBMB\fR|\fBGB\fR|\fBTB\fP
  79. If set, we will not advertise more than this amount of bandwidth for our
  80. BandwidthRate. Server operators who want to reduce the number of clients
  81. who ask to build circuits through them (since this is proportional to
  82. advertised bandwidth rate) can thus reduce the CPU demands on their
  83. server without impacting network performance.
  84. .LP
  85. .TP
  86. \fBRelayBandwidthRate \fR\fIN\fR \fBbytes\fR|\fBKB\fR|\fBMB\fR|\fBGB\fR|\fBTB\fP
  87. If defined, a separate token bucket limits the average incoming bandwidth
  88. usage for _relayed traffic_ on this node to the specified number of
  89. bytes per second, and the average outgoing bandwidth usage to that same
  90. value. Relayed traffic currently is calculated to include answers to directory
  91. requests, but that may change in future versions. (Default: 0)
  92. .LP
  93. .TP
  94. \fBRelayBandwidthBurst \fR\fIN\fR \fBbytes\fR|\fBKB\fR|\fBMB\fR|\fBGB\fR|\fBTB\fP
  95. Limit the maximum token bucket size (also known as the burst) for
  96. _relayed traffic_ to the
  97. given number of bytes in each direction. (Default: 0)
  98. .LP
  99. .TP
  100. \fBPerConnBWRate \fR\fIN\fR \fBbytes\fR|\fBKB\fR|\fBMB\fR|\fBGB\fR|\fBTB\fP
  101. If set, do separate rate limiting for each connection from a non-relay.
  102. You should never need to change this value, since a network-wide value
  103. is published in the consensus and your relay will use that value.
  104. (Default: 0)
  105. .LP
  106. .TP
  107. \fBPerConnBWBurst \fR\fIN\fR \fBbytes\fR|\fBKB\fR|\fBMB\fR|\fBGB\fR|\fBTB\fP
  108. If set, do separate rate limiting for each connection from a non-relay.
  109. You should never need to change this value, since a network-wide value
  110. is published in the consensus and your relay will use that value.
  111. (Default: 0)
  112. .LP
  113. .TP
  114. \fBConnLimit \fR\fINUM\fP
  115. The minimum number of file descriptors that must be available to
  116. the Tor process before it will start. Tor will ask the OS for as
  117. many file descriptors as the OS will allow (you can find this
  118. by "ulimit -H -n"). If this number is less than ConnLimit, then
  119. Tor will refuse to start.
  120. You probably don't need to adjust this. It has no effect on
  121. Windows since that platform lacks getrlimit(). (Default: 1000)
  122. .LP
  123. .TP
  124. \fBConstrainedSockets \fR\fB0\fR|\fB1\fR\fP
  125. If set, Tor will tell the kernel to attempt to shrink the buffers for all
  126. sockets to the size specified in \fBConstrainedSockSize\fP. This is useful
  127. for virtual servers and other environments where system level TCP
  128. buffers may be limited. If you're on a virtual server, and you
  129. encounter the "Error creating network
  130. socket: No buffer space available" message, you are likely experiencing
  131. this problem.
  132. The preferred solution is to have the admin increase the buffer pool for
  133. the host itself via /proc/sys/net/ipv4/tcp_mem or equivalent facility; this
  134. configuration option is a second-resort.
  135. The DirPort option should also not be used if TCP buffers are scarce. The
  136. cached directory requests consume additional sockets which exacerbates the
  137. problem.
  138. You should \fBnot\fP enable this feature unless you encounter the "no buffer
  139. space available" issue. Reducing the TCP buffers affects window size for
  140. the TCP stream and will reduce throughput in proportion to round trip
  141. time on long paths. (Default: 0.)
  142. .LP
  143. .TP
  144. \fBConstrainedSockSize \fR\fIN\fR \fBbytes\fR|\fBKB\fP
  145. When \fBConstrainedSockets\fP is enabled the receive and transmit buffers for
  146. all sockets will be set to this limit. Must be a value between 2048
  147. and 262144, in 1024 byte increments. Default of 8192 is recommended.
  148. .LP
  149. .TP
  150. \fBControlPort \fR\fIPort\fP
  151. If set, Tor will accept connections on this port and allow those
  152. connections to control the Tor process using the Tor Control Protocol
  153. (described in control-spec.txt). Note: unless you also specify one of
  154. \fBHashedControlPassword\fP or \fBCookieAuthentication\fP, setting
  155. this option will cause Tor to allow any process on the local host to
  156. control it. This option is required for many Tor controllers; most use
  157. the value of 9051.
  158. .LP
  159. .TP
  160. \fBControlListenAddress \fR\fIIP\fR[:\fIPORT\fR]\fP
  161. Bind the controller listener to this address. If you specify a port,
  162. bind to this port rather than the one specified in ControlPort. We
  163. strongly recommend that you leave this alone unless you know what you're
  164. doing, since giving attackers access to your control listener is really
  165. dangerous. (Default: 127.0.0.1)
  166. This directive can be specified multiple times to bind to multiple
  167. addresses/ports.
  168. .LP
  169. .TP
  170. \fBControlSocket \fR\fIPath\fP
  171. Like ControlPort, but listens on a Unix domain socket, rather than a TCP
  172. socket. (Unix and Unix-like systems only.)
  173. .LP
  174. .TP
  175. \fBHashedControlPassword \fR\fIhashed_password\fP
  176. Don't allow any connections on the control port except when the other process
  177. knows the password whose one-way hash is \fIhashed_password\fP. You can
  178. compute the hash of a password by running "tor --hash-password
  179. \fIpassword\fP". You can provide several acceptable passwords by using
  180. more than HashedControlPassword line.
  181. .LP
  182. .TP
  183. \fBCookieAuthentication \fR\fB0\fR|\fB1\fP
  184. If this option is set to 1, don't allow any connections on the control port
  185. except when the connecting process knows the contents of a file named
  186. "control_auth_cookie", which Tor will create in its data directory. This
  187. authentication method should only be used on systems with good filesystem
  188. security. (Default: 0)
  189. .LP
  190. .TP
  191. \fBCookieAuthFile \fR\fIPath\fP
  192. If set, this option overrides the default location and file name for Tor's
  193. cookie file. (See CookieAuthentication above.)
  194. .LP
  195. .TP
  196. \fBCookieAuthFileGroupReadable \fR\fB0\fR|\fB1\fR|\fIGroupName\fP
  197. If this option is set to 0, don't allow the filesystem group to read
  198. the cookie file. If the option is set to 1, make the cookie file
  199. readable by the default GID. [Making the file readable by other
  200. groups is not yet implemented; let us know if you need this for some
  201. reason.] (Default: 0).
  202. .LP
  203. .TP
  204. \fBDataDirectory \fR\fIDIR\fP
  205. Store working data in DIR (Default: @LOCALSTATEDIR@/lib/tor)
  206. .LP
  207. .TP
  208. \fBDirServer \fR[\fInickname\fR] [\fBflags\fR] \fIaddress\fR\fB:\fIport fingerprint\fP
  209. Use a nonstandard authoritative directory server at the provided
  210. address and port, with the specified key fingerprint. This option can
  211. be repeated many times, for multiple authoritative directory
  212. servers. Flags are separated by spaces, and determine what kind of an
  213. authority this directory is. By default, every authority is authoritative
  214. 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
  215. authority for old-style (v1) directories as well. (Only directory mirrors
  216. care about this.) Tor will use this server as an authority for hidden
  217. service information if the "hs" flag is set, or if the "v1" flag is set and
  218. the "no-hs" flag is \fBnot\fP set. Tor will use this authority as a bridge
  219. authoritative directory if the "bridge" flag is set. If a flag
  220. "orport=\fBport\fR" is given, Tor will use the given port when opening
  221. encrypted tunnels to the dirserver. Lastly, if a flag "v3ident=\fBfp\fR" is
  222. given, the dirserver is a v3 directory authority whose v3 long-term
  223. signing key has the fingerprint \fBfp\fR.
  224. If no \fBdirserver\fP line is given, Tor will use the default
  225. directory servers. NOTE: this option is intended
  226. for setting up a private Tor network with its own directory authorities. If
  227. you use it, you will be distinguishable from other users, because you won't
  228. believe the same authorities they do.
  229. .LP
  230. .TP
  231. \fBAlternateDirAuthority \fR[\fInickname\fR] [\fBflags\fR] \fIaddress\fR\fB:\fIport fingerprint\fP
  232. .LP
  233. .TP
  234. \fBAlternateHSAuthority \fR[\fInickname\fR] [\fBflags\fR] \fIaddress\fR\fB:\fIport fingerprint\fP
  235. .LP
  236. .TP
  237. \fBAlternateBridgeAuthority \fR[\fInickname\fR] [\fBflags\fR] \fIaddress\fR\fB:\fIport fingerprint\fP
  238. As DirServer, but replaces less of the default directory authorities.
  239. Using AlternateDirAuthority replaces the default Tor directory
  240. authorities, but leaves the hidden service authorities and bridge
  241. authorities in place. Similarly, Using AlternateHSAuthority replaces
  242. the default hidden service authorities, but not the directory or
  243. bridge authorities.
  244. .LP
  245. .TP
  246. \fBDisableAllSwap \fR\fB0\fR|\fB1\fR\fP
  247. If set to 1, Tor will attempt to lock all current and future memory pages.
  248. On supported platforms, this should effectively disable any and all attempts
  249. to page out memory. Under the hood, DisableAllSwap uses mlockall() on unix-like
  250. platforms. Windows is currently unsupported. We believe that this feature works
  251. on modern Gnu/Linux distributions. Mac OS X appears to be broken by design. On
  252. reasonable *BSD systems it should also be supported but this is untested. This
  253. option requires that you start your Tor as root. If you use DisableAllSwap,
  254. please consider using the User option to properly reduce the privileges of
  255. your Tor.
  256. (Default: 0)
  257. .LP
  258. .TP
  259. \fBFetchDirInfoEarly \fR\fB0\fR|\fB1\fR\fP
  260. If set to 1, Tor will always fetch directory information like other
  261. directory caches, even if you don't meet the normal criteria for
  262. fetching early. Normal users should leave it off.
  263. (Default: 0)
  264. .LP
  265. .TP
  266. \fBFetchDirInfoExtraEarly \fR\fB0\fR|\fB1\fR\fP
  267. If set to 1, Tor will fetch directory information before other
  268. directory caches. It will attempt to download directory information closer to
  269. the start of the consensus period. Normal users should leave it off.
  270. (Default: 0)
  271. .LP
  272. .TP
  273. \fBFetchHidServDescriptors \fR\fB0\fR|\fB1\fR\fP
  274. If set to 0, Tor will never fetch any hidden service descriptors from
  275. the rendezvous directories. This option is only useful if you're using
  276. a Tor controller that handles hidden service fetches for you.
  277. (Default: 1)
  278. .LP
  279. .TP
  280. \fBFetchServerDescriptors \fR\fB0\fR|\fB1\fR\fP
  281. If set to 0, Tor will never fetch any network status summaries or server
  282. descriptors from the directory servers. This option is only useful if
  283. you're using a Tor controller that handles directory fetches for you.
  284. (Default: 1)
  285. .LP
  286. .TP
  287. \fBFetchUselessDescriptors \fR\fB0\fR|\fB1\fR\fP
  288. If set to 1, Tor will fetch every non-obsolete descriptor from the
  289. authorities that it hears about. Otherwise, it will avoid fetching
  290. useless descriptors, for example for routers that are not running.
  291. This option is useful if you're using the contributed "exitlist"
  292. script to enumerate Tor nodes that exit to certain addresses.
  293. (Default: 0)
  294. .LP
  295. .TP
  296. \fBHTTPProxy\fR \fIhost\fR[:\fIport\fR]\fP
  297. Tor will make all its directory requests through this host:port
  298. (or host:80 if port is not specified),
  299. rather than connecting directly to any directory servers.
  300. .LP
  301. .TP
  302. \fBHTTPProxyAuthenticator\fR \fIusername:password\fP
  303. If defined, Tor will use this username:password for Basic HTTP proxy
  304. authentication, as in RFC 2617. This is currently the only form of
  305. HTTP proxy authentication that Tor supports; feel free to submit a
  306. patch if you want it to support others.
  307. .LP
  308. .TP
  309. \fBHTTPSProxy\fR \fIhost\fR[:\fIport\fR]\fP
  310. Tor will make all its OR (SSL) connections through this host:port
  311. (or host:443 if port is not specified), via HTTP CONNECT rather than
  312. connecting directly to servers. You may want to set \fBFascistFirewall\fR
  313. to restrict the set of ports you might try to connect to, if your HTTPS
  314. proxy only allows connecting to certain ports.
  315. .LP
  316. .TP
  317. \fBHTTPSProxyAuthenticator\fR \fIusername:password\fP
  318. If defined, Tor will use this username:password for Basic HTTPS proxy
  319. authentication, as in RFC 2617. This is currently the only form of
  320. HTTPS proxy authentication that Tor supports; feel free to submit a
  321. patch if you want it to support others.
  322. .LP
  323. .TP
  324. \fBSocks4Proxy\fR \fIhost\fR[:\fIport\fR]\fP
  325. Tor will make all OR connections through the SOCKS 4 proxy at host:port
  326. (or host:1080 if port is not specified).
  327. .LP
  328. .TP
  329. \fBSocks5Proxy\fR \fIhost\fR[:\fIport\fR]\fP
  330. Tor will make all OR connections through the SOCKS 5 proxy at host:port
  331. (or host:1080 if port is not specified).
  332. .LP
  333. .TP
  334. \fBSocks5ProxyUsername\fR \fIusername\fP
  335. .LP
  336. .TP
  337. \fBSocks5ProxyPassword\fR \fIpassword\fP
  338. If defined, authenticate to the SOCKS 5 server using username and password
  339. in accordance to RFC 1929. Both username and password must be between 1 and 255
  340. characters.
  341. .LP
  342. .TP
  343. \fBKeepalivePeriod \fR\fINUM\fP
  344. To keep firewalls from expiring connections, send a padding keepalive
  345. cell every NUM seconds on open connections that are in use. If the
  346. connection has no open circuits, it will instead be closed after NUM
  347. seconds of idleness. (Default: 5 minutes)
  348. .LP
  349. .TP
  350. \fBLog \fR\fIminSeverity\fR[-\fImaxSeverity\fR] \fBstderr\fR|\fBstdout\fR|\fBsyslog\fR\fP
  351. Send all messages between \fIminSeverity\fR and \fImaxSeverity\fR to
  352. the standard output stream, the standard error stream, or to the system
  353. log. (The "syslog" value is only supported on Unix.) Recognized
  354. severity levels are debug, info, notice, warn, and err. We advise using
  355. "notice" in most cases, since anything more verbose may provide sensitive
  356. information to an attacker who obtains the logs. If only one
  357. severity level is given, all messages of that level or higher will be
  358. sent to the listed destination.
  359. .LP
  360. .TP
  361. \fBLog \fR\fIminSeverity\fR[-\fImaxSeverity\fR] \fBfile\fR \fIFILENAME\fP
  362. As above, but send log messages to the listed filename. The "Log"
  363. option may appear more than once in a configuration file. Messages
  364. are sent to all the logs that match their severity level.
  365. .LP
  366. .TP
  367. \fBOutboundBindAddress \fR\fIIP\fP
  368. Make all outbound connections originate from the IP address specified. This
  369. is only useful when you have multiple network interfaces, and you want all
  370. of Tor's outgoing connections to use a single one.
  371. .LP
  372. .TP
  373. \fBPidFile \fR\fIFILE\fP
  374. On startup, write our PID to FILE. On clean shutdown, remove FILE.
  375. .LP
  376. .TP
  377. \fBProtocolWarnings \fR\fB0\fR|\fB1\fR\fP
  378. If 1, Tor will log with severity 'warn' various cases of other parties
  379. not following the Tor specification. Otherwise, they are logged with
  380. severity 'info'. (Default: 0)
  381. .LP
  382. .TP
  383. \fBRunAsDaemon \fR\fB0\fR|\fB1\fR\fP
  384. If 1, Tor forks and daemonizes to the background. This option has
  385. no effect on Windows; instead you should use the --service command-line
  386. option. (Default: 0)
  387. .LP
  388. .TP
  389. \fBSafeLogging \fR\fB0\fR|\fB1\fR|\fBrelay\fP
  390. Tor can scrub potentially sensitive strings from log messages (e.g. addresses)
  391. by replacing them with the string [scrubbed]. This way logs can still be
  392. useful, but they don't leave behind personally identifying information
  393. about what sites a user might have visited.
  394. If this option is set to 0, Tor will not perform any scrubbing, if it is set
  395. to 1, all potentially sensitive strings are replaced. If it is set to
  396. relay, all log messages generated when acting as a relay are sanitized, but all
  397. messages generated when acting as a client are not. (Default: 1)
  398. .LP
  399. .TP
  400. \fBUser \fR\fIUID\fP
  401. On startup, setuid to this user and setgid to their primary group.
  402. .LP
  403. .TP
  404. \fBHardwareAccel \fR\fB0\fR|\fB1\fP
  405. If non-zero, try to use built-in (static) crypto hardware acceleration when
  406. available. (Default: 0)
  407. .LP
  408. .TP
  409. \fBAccelName \fR\fINAME\fP
  410. When using OpenSSL hardware crypto acceleration attempt to load the dynamic
  411. engine of this name. This must be used for any dynamic hardware engine. Names
  412. can be verified with the openssl engine command.
  413. .LP
  414. .TP
  415. \fBAccelDir \fR\fIDIR\fP
  416. Specify this option if using dynamic hardware acceleration and the engine
  417. implementation library resides somewhere other than the OpenSSL default.
  418. .LP
  419. .TP
  420. \fBAvoidDiskWrites \fR\fB0\fR|\fB1\fP
  421. If non-zero, try to write to disk less frequently than we would otherwise.
  422. This is useful when running on flash memory or other media that support only
  423. a limited number of writes. (Default: 0)
  424. .LP
  425. .TP
  426. \fBTunnelDirConns \fR\fB0\fR|\fB1\fP
  427. If non-zero, when a directory server we contact supports it, we will
  428. build a one-hop circuit and make an encrypted connection via its
  429. ORPort. (Default: 1)
  430. .LP
  431. .TP
  432. \fBPreferTunneledDirConns \fR\fB0\fR|\fB1\fP
  433. If non-zero, we will avoid directory servers that don't support tunneled
  434. directory connections, when possible. (Default: 1)
  435. .LP
  436. .TP
  437. \fBCircuitPriorityHalflife \fR\fBNUM\fB1\fP
  438. If this value is set, we override the default algorithm for choosing which
  439. circuit's cell to deliver or relay next. When the value is 0, we
  440. round-robin between the active circuits on a connection, delivering one cell
  441. from each in turn. When the value is positive, we prefer delivering cells
  442. from whichever connection has the lowest weighted cell count, where cells are
  443. weighted exponentially according to the supplied CircuitPriorityHalflife
  444. value (in seconds). If this option is not set at all, we use the behavior
  445. recommended in the current consensus networkstatus.
  446. This is an advanced option; you generally shouldn't have mess with it.
  447. (Default: not set.)
  448. .SH CLIENT OPTIONS
  449. .PP
  450. The following options are useful only for clients (that is, if \fBSocksPort\fP is non-zero):
  451. .LP
  452. .TP
  453. \fBAllowInvalidNodes\fR \fBentry\fR|\fBexit\fR|\fBmiddle\fR|\fBintroduction\fR|\fBrendezvous\fR|...\fP
  454. If some Tor servers are obviously not working right, the directory
  455. authorities can manually mark them as invalid, meaning that it's not
  456. recommended you use them for entry or exit positions in your circuits. You
  457. can opt to use them in some circuit positions, though. The default is
  458. "middle,rendezvous", and other choices are not advised.
  459. .LP
  460. .TP
  461. \fBExcludeSingleHopRelays \fR\fB0\fR|\fB1\fR\fP
  462. This option controls whether circuits built by Tor will include relays with
  463. the AllowSingleHopExits flag set to true. If ExcludeSingleHopRelays is set to
  464. 0, these relays will be included. Note that these relays might be at higher
  465. risk of being seized or observed, so they are not normally included.
  466. (Default: 1)
  467. .LP
  468. .TP
  469. \fBBridge \fR\fIIP:ORPort\fR [fingerprint]\fP
  470. When set along with UseBridges, instructs Tor to use the relay at
  471. "IP:ORPort" as a "bridge" relaying into the Tor network. If "fingerprint"
  472. is provided (using the same format as for DirServer), we will verify that
  473. the relay running at that location has the right fingerprint. We also use
  474. fingerprint to look up the bridge descriptor at the bridge authority, if
  475. it's provided and if UpdateBridgesFromAuthority is set too.
  476. .LP
  477. .TP
  478. \fBCircuitBuildTimeout \fR\fINUM\fP
  479. Try for at most NUM seconds when building circuits. If the circuit
  480. isn't open in that time, give up on it.
  481. (Default: 1 minute.)
  482. .LP
  483. .TP
  484. \fBCircuitIdleTimeout \fR\fINUM\fP
  485. If we have kept a clean (never used) circuit around for NUM seconds,
  486. then close it. This way when the Tor client is entirely idle, it can
  487. expire all of its circuits, and then expire its TLS connections. Also,
  488. if we end up making a circuit that is not useful for exiting any of
  489. the requests we're receiving, it won't forever take up a slot in the
  490. circuit list.
  491. (Default: 1 hour.)
  492. .LP
  493. .TP
  494. \fBCircuitStreamTimeout \fR\fINUM\fP
  495. If non-zero, this option overrides our internal timeout schedule for
  496. how many seconds until we detach a stream from a circuit and try a new
  497. circuit. If your network is particularly slow, you might want to set
  498. this to a number like 60. (Default: 0)
  499. .LP
  500. .TP
  501. \fBClientOnly \fR\fB0\fR|\fB1\fR\fP
  502. If set to 1, Tor will under no circumstances run as a server or serve
  503. directory requests. The default
  504. is to run as a client unless ORPort is configured. (Usually,
  505. you don't need to set this; Tor is pretty smart at figuring out whether
  506. you are reliable and high-bandwidth enough to be a useful server.)
  507. (Default: 0)
  508. .LP
  509. .TP
  510. \fBExcludeNodes \fR\fInode\fR,\fInode\fR,\fI...\fP
  511. A list of identity fingerprints, nicknames, country codes and address patterns
  512. of nodes to never use when building a circuit. (Example: ExcludeNodes
  513. SlowServer, $ABCDEFFFFFFFFFFFFFFF, {cc}, 255.254.0.0/8)
  514. .LP
  515. .TP
  516. \fBExcludeExitNodes \fR\fInode\fR,\fInode\fR,\fI...\fP
  517. A list of identity fingerprints, nicknames, country codes and address patterns
  518. of nodes to never use when picking an exit node. Note that any node
  519. listed in ExcludeNodes is automatically considered to be part of this
  520. list.
  521. .LP
  522. .TP
  523. \fBEntryNodes \fR\fInode\fR,\fInode\fR,\fI...\fP
  524. A list of identity fingerprints, nicknames, country codes and address patterns
  525. of nodes to use for the first hop in normal circuits.
  526. These are treated only as preferences unless StrictNodes (see
  527. below) is also set.
  528. .LP
  529. .TP
  530. \fBExitNodes \fR\fInode\fR,\fInode\fR,\fI...\fP
  531. A list of identity fingerprints, nicknames, country codes and address patterns
  532. of nodes to use for the last hop in normal exit circuits.
  533. These are treated only as preferences unless StrictNodes (see
  534. below) is also set.
  535. .LP
  536. .TP
  537. \fBStrictNodes \fR\fB0\fR|\fB1\fR\fP
  538. If 1 and EntryNodes config option is set, Tor will never use any
  539. nodes besides those listed in EntryNodes for the first hop of a normal
  540. circuit. If 1 and ExitNodes config option is set, Tor will never use any
  541. nodes besides those listed in ExitNodes for the last hop of a normal exit
  542. circuit. Note that Tor might still use these nodes for non-exit circuits
  543. such as one-hop directory fetches or hidden service support circuits.
  544. .LP
  545. .TP
  546. \fBFascistFirewall \fR\fB0\fR|\fB1\fR\fP
  547. If 1, Tor will only create outgoing connections to ORs running on ports that
  548. your firewall allows (defaults to 80 and 443; see \fBFirewallPorts\fR). This will
  549. allow you to run Tor as a client behind a firewall with restrictive policies,
  550. but will not allow you to run as a server behind such a firewall.
  551. If you prefer more fine-grained control, use ReachableAddresses instead.
  552. .LP
  553. .TP
  554. \fBFirewallPorts \fR\fIPORTS\fP
  555. A list of ports that your firewall allows you to connect to. Only
  556. used when \fBFascistFirewall\fR is set. This option is deprecated; use
  557. ReachableAddresses instead. (Default: 80, 443)
  558. .LP
  559. .TP
  560. \fBHidServAuth \fR\fIonion-address\fR \fIauth-cookie\fP [\fIservice-name\fR]
  561. Client authorization for a hidden service. Valid onion addresses contain 16
  562. characters in a-z2-7 plus ".onion", and valid auth cookies contain 22
  563. characters in A-Za-z0-9+/. The service name is only used for internal
  564. purposes, e.g., for Tor controllers. This option may be used multiple times
  565. for different hidden services. If a hidden service uses authorization and
  566. this option is not set, the hidden service is not accessible. Hidden
  567. services can be configured to require authorization using the
  568. \fBHiddenServiceAuthorizeClient\fR option.
  569. .LP
  570. .TP
  571. \fBReachableAddresses \fR\fIADDR\fP[\fB/\fP\fIMASK\fP][:\fIPORT\fP]...\fP
  572. A comma-separated list of IP addresses and ports that your firewall allows you
  573. to connect to. The format is as
  574. for the addresses in ExitPolicy, except that "accept" is understood
  575. unless "reject" is explicitly provided. For example, 'ReachableAddresses
  576. 99.0.0.0/8, reject 18.0.0.0/8:80, accept *:80' means that your
  577. firewall allows connections to everything inside net 99, rejects port
  578. 80 connections to net 18, and accepts connections to port 80 otherwise.
  579. (Default: 'accept *:*'.)
  580. .LP
  581. .TP
  582. \fBReachableDirAddresses \fR\fIADDR\fP[\fB/\fP\fIMASK\fP][:\fIPORT\fP]...\fP
  583. Like \fBReachableAddresses\fP, a list of addresses and ports. Tor will obey
  584. these restrictions when fetching directory information, using standard HTTP
  585. GET requests. If not set explicitly then the value of \fBReachableAddresses\fP
  586. is used. If \fBHTTPProxy\fR is set then these connections will go through that
  587. proxy.
  588. .LP
  589. .TP
  590. \fBReachableORAddresses \fR\fIADDR\fP[\fB/\fP\fIMASK\fP][:\fIPORT\fP]...\fP
  591. Like \fBReachableAddresses\fP, a list of addresses and ports. Tor will obey
  592. these restrictions when connecting to Onion Routers, using TLS/SSL. If not set
  593. explicitly then the value of \fBReachableAddresses\fP is used. If
  594. \fBHTTPSProxy\fR is set then these connections will go through that proxy.
  595. The separation between \fBReachableORAddresses\fP and
  596. \fBReachableDirAddresses\fP is only interesting when you are connecting through
  597. proxies (see \fBHTTPProxy\fR and \fBHTTPSProxy\fR). Most proxies limit TLS
  598. connections (which Tor uses to connect to Onion Routers) to port 443, and some
  599. limit HTTP GET requests (which Tor uses for fetching directory information) to
  600. port 80.
  601. .LP
  602. .TP
  603. \fBLongLivedPorts \fR\fIPORTS\fP
  604. A list of ports for services that tend to have long-running connections
  605. (e.g. chat and interactive shells). Circuits for streams that use these
  606. ports will contain only high-uptime nodes, to reduce the chance that a
  607. node will go down before the stream is finished.
  608. (Default: 21, 22, 706, 1863, 5050, 5190, 5222, 5223, 6667, 6697, 8300)
  609. .LP
  610. .TP
  611. \fBMapAddress\fR \fIaddress\fR \fInewaddress\fR
  612. When a request for address arrives to Tor, it will rewrite it to
  613. newaddress before processing it. For example, if you always want
  614. connections to www.indymedia.org to exit via \fItorserver\fR (where
  615. \fItorserver\fR is the nickname of the server),
  616. use "MapAddress www.indymedia.org www.indymedia.org.torserver.exit".
  617. .LP
  618. .TP
  619. \fBNewCircuitPeriod \fR\fINUM\fP
  620. Every NUM seconds consider whether to build a new circuit. (Default: 30 seconds)
  621. .LP
  622. .TP
  623. \fBMaxCircuitDirtiness \fR\fINUM\fP
  624. Feel free to reuse a circuit that was first used at most NUM seconds ago,
  625. but never attach a new stream to a circuit that is too old.
  626. (Default: 10 minutes)
  627. .LP
  628. .TP
  629. \fBNodeFamily \fR\fInode\fR,\fInode\fR,\fI...\fP
  630. The Tor servers, defined by their identity fingerprints or nicknames,
  631. constitute a "family" of similar or co-administered
  632. servers, so never use any two of them in the same circuit. Defining a
  633. NodeFamily is only needed when a server doesn't list the family itself
  634. (with MyFamily). This option can be used multiple times.
  635. .LP
  636. .TP
  637. \fBEnforceDistinctSubnets \fR\fB0\fR|\fB1\fR\fP
  638. If 1, Tor will not put two servers whose IP addresses are "too
  639. close" on the same circuit. Currently, two addresses are
  640. "too close" if they lie in the same /16 range. (Default: 1)
  641. .\" \fBPathlenCoinWeight \fR\fI0.0-1.0\fP
  642. .\" Paths are 3 hops plus a geometric distribution centered around this coinweight.
  643. .\" Must be >=0.0 and <1.0. (Default: 0.3) NOT USED CURRENTLY
  644. .\" .TP
  645. .LP
  646. .TP
  647. \fBSocksPort \fR\fIPORT\fP
  648. Advertise this port to listen for connections from Socks-speaking
  649. applications. Set this to 0 if you don't want to allow application
  650. connections. (Default: 9050)
  651. .LP
  652. .TP
  653. \fBSocksListenAddress \fR\fIIP\fR[:\fIPORT\fR]\fP
  654. Bind to this address to listen for connections from Socks-speaking
  655. applications. (Default: 127.0.0.1) You can also specify a port
  656. (e.g. 192.168.0.1:9100).
  657. This directive can be specified multiple times to bind to multiple
  658. addresses/ports.
  659. .LP
  660. .TP
  661. \fBSocksPolicy \fR\fIpolicy\fR,\fIpolicy\fR,\fI...\fP
  662. Set an entrance policy for this server, to limit who can connect to the
  663. SocksPort and DNSPort ports.
  664. The policies have the same form as exit policies below.
  665. .LP
  666. .TP
  667. \fBSocksTimeout \fR\fINUM\fP
  668. Let a socks connection wait NUM seconds handshaking, and NUM seconds
  669. unattached waiting for an appropriate circuit, before we fail it.
  670. (Default: 2 minutes.)
  671. .LP
  672. .TP
  673. \fBTrackHostExits \fR\fIhost\fR,\fI.domain\fR,\fI...\fR\fP
  674. For each value in the comma separated list, Tor will track recent connections
  675. to hosts that match this value and attempt to
  676. reuse the same exit node for each. If the value is prepended with a '.', it is
  677. treated as matching an entire domain. If one of the values is just a '.', it
  678. means match everything. This option is useful if you frequently connect to
  679. sites that will expire all your authentication cookies (i.e. log you out) if
  680. your IP address changes. Note that this option does have the disadvantage of
  681. making it more clear that a given history is
  682. associated with a single user. However, most people who would wish to observe
  683. this will observe it through cookies or other protocol-specific means anyhow.
  684. .LP
  685. .TP
  686. \fBTrackHostExitsExpire \fR\fINUM\fP
  687. Since exit servers go up and down, it is desirable to expire the association
  688. between host and exit server after NUM seconds. The default
  689. is 1800 seconds (30 minutes).
  690. .LP
  691. .TP
  692. \fBUpdateBridgesFromAuthority \fR\fB0\fR|\fB1\fR\fP
  693. When set (along with UseBridges), Tor will try to fetch bridge descriptors
  694. from the configured bridge authorities when feasible. It will fall back
  695. to a direct request if the authority responds with a 404. (Default: 0)
  696. .LP
  697. .TP
  698. \fBUseBridges \fR\fB0\fR|\fB1\fR\fP
  699. When set, Tor will fetch descriptors for each bridge listed in the
  700. "Bridge" config lines, and use these relays as both entry guards and
  701. directory guards. (Default: 0)
  702. .LP
  703. .TP
  704. \fBUseEntryGuards \fR\fB0\fR|\fB1\fR\fP
  705. If this option is set to 1, we pick a few long-term entry servers, and
  706. try to stick with them. This is desirable because
  707. constantly changing servers increases the odds that an adversary who owns
  708. some servers will observe a fraction of your paths.
  709. (Defaults to 1.)
  710. .LP
  711. .TP
  712. \fBNumEntryGuards \fR\fINUM\fP
  713. If UseEntryGuards is set to 1, we will try to pick a total of NUM routers
  714. as long-term entries for our circuits.
  715. (Defaults to 3.)
  716. .LP
  717. .TP
  718. \fBSafeSocks \fR\fB0\fR|\fB1\fR\fP
  719. When this option is enabled, Tor will reject application connections that
  720. use unsafe variants of the socks protocol -- ones that only provide an
  721. IP address, meaning the application is doing a DNS resolve first.
  722. Specifically, these are socks4 and socks5 when not doing remote DNS.
  723. (Defaults to 0.)
  724. .LP
  725. .TP
  726. \fBTestSocks \fR\fB0\fR|\fB1\fR\fP
  727. When this option is enabled, Tor will make a notice-level log entry for
  728. each connection to the Socks port indicating whether the request used
  729. a safe socks protocol or an unsafe one (see above entry on SafeSocks).
  730. This helps to determine whether an application using Tor is possibly
  731. leaking DNS requests.
  732. (Default: 0)
  733. .LP
  734. .TP
  735. \fBVirtualAddrNetwork \fR\fIAddress\fB/\fIbits\fP
  736. When a controller asks for a virtual (unused) address with the
  737. MAPADDRESS command, Tor picks an unassigned address from this range.
  738. (Default: 127.192.0.0/10)
  739. When providing proxy server service to a network of computers using a tool like
  740. dns-proxy-tor,
  741. change this address to "10.192.0.0/10" or "172.16.0.0/12".
  742. The default \fBVirtualAddrNetwork\fP address range on a
  743. properly configured machine will route to the loopback interface.
  744. For local use, no change to the
  745. default \fBVirtualAddrNetwork\fP setting is needed.
  746. .LP
  747. .TP
  748. \fBAllowNonRFC953Hostnames \fR\fB0\fR|\fB1\fR\fP
  749. When this option is disabled, Tor blocks hostnames containing illegal
  750. characters (like @ and :) rather than sending them to an exit node to be
  751. resolved. This helps trap accidental attempts to resolve URLs and so on.
  752. (Default: 0)
  753. .LP
  754. .TP
  755. \fBAllowDotExit \fR\fB0\fR|\fB1\fR\fP
  756. If enabled, we convert "www.google.com.foo.exit" addresses on the
  757. SocksPort/TransPort/NatdPort into "www.google.com" addresses that exit
  758. from the node "foo". Disabled by default since attacking websites and
  759. exit relays can use it to manipulate your path selection. (Default: 0)
  760. .LP
  761. .TP
  762. \fBFastFirstHopPK \fR\fB0\fR|\fB1\fR\fP
  763. When this option is disabled, Tor uses the public key step for the first
  764. hop of creating circuits. Skipping it is generally safe since we have
  765. already used TLS to authenticate the relay and to establish forward-secure
  766. keys. Turning this option off makes circuit building slower.
  767. Note that Tor will always use the public key step for the first hop if
  768. it's operating as a relay, and it will never use the public key step if
  769. it doesn't yet know the onion key of the first hop.
  770. (Default: 1)
  771. .LP
  772. .TP
  773. \fBTransPort\fP \fR\fIPORT\fP
  774. If non-zero, enables transparent proxy support on \fR\fIPORT\fP (by
  775. convention, 9040).
  776. .\" This is required to enable support for \fBdns-proxy-tor\fP.
  777. .\" ControlPort must be set when using \fBTransPort\fP.
  778. Requires OS support for transparent proxies, such as BSDs' pf or
  779. Linux's IPTables.
  780. If you're planning
  781. to use Tor as a transparent proxy for a network, you'll want to examine
  782. and change VirtualAddrNetwork from the default setting. You'll also want
  783. to set the TransListenAddress option for the network you'd like to proxy.
  784. (Default: 0).
  785. .LP
  786. .TP
  787. \fBTransListenAddress\fP \fR\fIIP\fR[:\fIPORT\fR]\fP
  788. Bind to this address to listen for transparent proxy connections.
  789. (Default: 127.0.0.1).
  790. This is useful for exporting a transparent proxy server
  791. to an entire network.
  792. .LP
  793. .TP
  794. \fBNATDPort\fP \fR\fIPORT\fP
  795. Allow old versions of ipfw (as included in old versions of FreeBSD,
  796. etc.) to send connections through Tor using the NATD protocol.
  797. This option is only for people who cannot
  798. use TransPort.
  799. .LP
  800. .TP
  801. \fBNATDListenAddress\fP \fR\fIIP\fR[:\fIPORT\fR]\fP
  802. Bind to this address to listen for NATD connections.
  803. (Default: 127.0.0.1).
  804. .LP
  805. .TP
  806. \fBAutomapHostsOnResolve\fP \fR\fB0\fR|\fB1\fR\fP
  807. When this option is enabled, and we get a request to resolve an
  808. address that ends with one of the suffixes in
  809. \fBAutomapHostsSuffixes\fP, we map an unused virtual address to that
  810. address, and return the new virtual address. This is handy for making
  811. ".onion" addresses work with applications that resolve an address and
  812. then connect to it.
  813. (Default: 0).
  814. .LP
  815. .TP
  816. \fBAutomapHostsSuffixes\fP \fR\fISUFFIX\fR,\fISUFFIX\fR,...\fP
  817. A comma-separated list of suffixes to use with \fBAutomapHostsOnResolve\fP.
  818. The "." suffix is equivalent to "all addresses."
  819. (Default: .exit,.onion).
  820. .LP
  821. .TP
  822. \fBDNSPort\fP \fR\fIPORT\fP
  823. If non-zero, Tor listens for UDP DNS requests on this port and resolves them
  824. anonymously.
  825. (Default: 0).
  826. .LP
  827. .TP
  828. \fBDNSListenAddress\fP \fR\fIIP\fR[:\fIPORT\fR]\fP
  829. Bind to this address to listen for DNS connections.
  830. (Default: 127.0.0.1).
  831. .LP
  832. .TP
  833. \fBClientDNSRejectInternalAddresses\fP \fR\fB0\fR|\fB1\fR\fP
  834. If true, Tor does not believe any anonymously retrieved DNS answer that tells
  835. it that an address resolves to an internal address (like 127.0.0.1 or
  836. 192.168.0.1). This option prevents certain browser-based attacks; don't turn
  837. it off unless you know what you're doing. (Default: 1).
  838. .LP
  839. .TP
  840. \fBDownloadExtraInfo\fP \fR\fB0\fR|\fB1\fR\fP
  841. If true, Tor downloads and caches "extra-info" documents. These
  842. documents contain information about servers other than the information
  843. in their regular router descriptors. Tor does not use this information for
  844. anything itself; to save bandwidth, leave this option turned off.
  845. (Default: 0).
  846. .LP
  847. .TP
  848. \fBFallbackNetworkstatusFile\fP \fIFILENAME\fP
  849. If Tor doesn't have a cached networkstatus file, it starts out using
  850. this one instead. Even if this file is out of date, Tor can still use
  851. it to learn about directory mirrors, so it doesn't need to put load on
  852. the authorities. (Default: None).
  853. .LP
  854. .TP
  855. \fBWarnPlaintextPorts\fP \fR\fIport\fR,\fIport\fR,\fI...\fP
  856. Tells Tor to issue a warnings whenever the user tries to make an
  857. anonymous connection to one of these ports. This option is designed
  858. to alert users to services that risk sending passwords in the clear.
  859. (Default: 23,109,110,143).
  860. .LP
  861. .TP
  862. \fBRejectPlaintextPorts\fP \fR\fIport\fR,\fIport\fR,\fI...\fP
  863. Like WarnPlaintextPorts, but instead of warning about risky port uses,
  864. Tor will instead refuse to make the connection.
  865. (Default: None).
  866. .SH SERVER OPTIONS
  867. .PP
  868. The following options are useful only for servers (that is, if \fBORPort\fP is non-zero):
  869. .LP
  870. .TP
  871. \fBAddress \fR\fIaddress\fP
  872. The IP address or fully qualified domain name of this server (e.g. moria.mit.edu). You can
  873. leave this unset, and Tor will guess your IP address.
  874. .LP
  875. .TP
  876. \fBAllowSingleHopExits \fR\fB0\fR|\fB1\fR\fP
  877. This option controls whether clients can use this server as a single hop
  878. proxy. If set to 1, clients can use this server as an exit even if it is
  879. the only hop in the circuit. (Default: 0)
  880. .LP
  881. .TP
  882. \fBAssumeReachable \fR\fB0\fR|\fB1\fR\fP
  883. This option is used when bootstrapping a new Tor network. If set to 1,
  884. don't do self-reachability testing; just upload your server descriptor
  885. immediately. If \fBAuthoritativeDirectory\fP is also set, this option
  886. instructs the dirserver to bypass remote reachability testing too and
  887. list all connected servers as running.
  888. .LP
  889. .TP
  890. \fBBridgeRelay \fR\fB0\fR|\fB1\fR\fP
  891. Sets the relay to act as a "bridge" with respect to relaying connections
  892. from bridge users to the Tor network. Mainly it influences how the relay
  893. will cache and serve directory information. Usually used in combination
  894. with PublishServerDescriptor.
  895. .LP
  896. .TP
  897. \fBContactInfo \fR\fIemail_address\fP
  898. Administrative contact information for server. This line might get
  899. picked up by spam harvesters, so you may want to obscure the fact
  900. that it's an email address.
  901. .LP
  902. .TP
  903. \fBExitPolicy \fR\fIpolicy\fR,\fIpolicy\fR,\fI...\fP
  904. Set an exit policy for this server. Each policy is of the form
  905. "\fBaccept\fP|\fBreject\fP \fIADDR\fP[\fB/\fP\fIMASK\fP]\fB[:\fP\fIPORT\fP]".
  906. If \fB/\fP\fIMASK\fP is omitted then this policy just applies to the host
  907. given. Instead of giving a host or network you can also use "\fB*\fP" to
  908. denote the universe (0.0.0.0/0). \fIPORT\fP can be a single port number,
  909. an interval of ports "\fIFROM_PORT\fP\fB-\fP\fITO_PORT\fP", or "\fB*\fP".
  910. If \fIPORT\fP is omitted, that means "\fB*\fP".
  911. For example, "accept 18.7.22.69:*,reject 18.0.0.0/8:*,accept *:*" would
  912. reject any traffic destined for MIT except for web.mit.edu, and
  913. accept anything else.
  914. To specify all internal and link-local networks (including 0.0.0.0/8,
  915. 169.254.0.0/16, 127.0.0.0/8, 192.168.0.0/16, 10.0.0.0/8, and
  916. 172.16.0.0/12), you can use the "private" alias instead of an address.
  917. These addresses are rejected by default (at the beginning of your
  918. exit policy), along with your public IP address, unless you set the
  919. ExitPolicyRejectPrivate config option
  920. to 0. For example, once you've done that, you could allow HTTP to
  921. 127.0.0.1 and block all other connections to internal networks with
  922. "accept 127.0.0.1:80,reject private:*", though that may also allow
  923. connections to your own computer that are addressed to its public
  924. (external) IP address. See RFC 1918 and RFC 3330 for more
  925. details about internal and reserved IP address space.
  926. This directive can be specified multiple times so you don't have to put
  927. it all on one line.
  928. Policies are considered first to last, and the first match wins. If
  929. you want to _replace_ the default exit policy, end your exit policy with
  930. either a reject *:* or an accept *:*. Otherwise, you're _augmenting_
  931. (prepending to) the default exit policy. The default exit policy is:
  932. .PD 0
  933. .RS 12
  934. .IP "reject *:25"
  935. .IP "reject *:119"
  936. .IP "reject *:135-139"
  937. .IP "reject *:445"
  938. .IP "reject *:563"
  939. .IP "reject *:1214"
  940. .IP "reject *:4661-4666"
  941. .IP "reject *:6346-6429"
  942. .IP "reject *:6699"
  943. .IP "reject *:6881-6999"
  944. .IP "accept *:*"
  945. .RE
  946. .PD
  947. .LP
  948. .TP
  949. \fBExitPolicyRejectPrivate \fR\fB0\fR|\fB1\fR\fP
  950. Reject all private (local) networks, along with your own public IP
  951. address, at the beginning of your exit
  952. policy. See above entry on ExitPolicy. (Default: 1)
  953. .LP
  954. .TP
  955. \fBMaxOnionsPending \fR\fINUM\fP
  956. If you have more than this number of onionskins queued for decrypt, reject new ones. (Default: 100)
  957. .LP
  958. .TP
  959. \fBMyFamily \fR\fInode\fR,\fInode\fR,\fI...\fP
  960. Declare that this Tor server is controlled or administered by a group
  961. or organization identical or similar to that of the other servers, defined by their identity fingerprints or nicknames.
  962. When two servers both declare that they are in the same 'family', Tor clients
  963. will not use them in the same circuit. (Each server only needs to list the
  964. other servers in its family; it doesn't need to list itself, but it won't hurt.)
  965. .LP
  966. .TP
  967. \fBNickname \fR\fIname\fP
  968. Set the server's nickname to 'name'. Nicknames must be between 1
  969. and 19 characters inclusive, and must contain only the characters
  970. [a-zA-Z0-9].
  971. .LP
  972. .TP
  973. \fBNumCPUs \fR\fInum\fP
  974. How many processes to use at once for decrypting onionskins. (Default: 1)
  975. .LP
  976. .TP
  977. \fBORPort \fR\fIPORT\fP
  978. Advertise this port to listen for connections from Tor clients and servers.
  979. .LP
  980. .TP
  981. \fBORListenAddress \fR\fIIP\fR[:\fIPORT\fR]\fP
  982. Bind to this IP address to listen for connections from Tor clients and
  983. servers. If you specify a port, bind to this port rather than the one
  984. specified in ORPort. (Default: 0.0.0.0)
  985. This directive can be specified multiple times to bind to multiple
  986. addresses/ports.
  987. .LP
  988. .TP
  989. \fBPublishServerDescriptor \fR\fB0\fR|\fB1\fR|\fBv1\fR|\fBv2\fR|\fBv3\fR|\fBbridge\fR|\fBhidserv\fR, ...\fP
  990. This option is only considered if you have an ORPort defined. You can
  991. choose multiple arguments, separated by commas.
  992. If set to 0, Tor will act as a server but it will not publish its
  993. descriptor to the directory authorities. (This is useful if you're
  994. testing out your server, or if you're using a Tor controller that handles
  995. directory publishing for you.) Otherwise, Tor will publish its descriptor
  996. to all directory authorities of the type(s) specified. The value "1" is
  997. the default, which means "publish to the appropriate authorities".
  998. .LP
  999. .TP
  1000. \fBShutdownWaitLength\fR \fINUM\fP
  1001. When we get a SIGINT and we're a server, we begin shutting down: we close
  1002. listeners and start refusing new circuits. After \fBNUM\fP seconds,
  1003. we exit. If we get a second SIGINT, we exit immediately. (Default:
  1004. 30 seconds)
  1005. .LP
  1006. .TP
  1007. \fBAccountingMax \fR\fIN\fR \fBbytes\fR|\fBKB\fR|\fBMB\fR|\fBGB\fR|\fBTB\fP
  1008. Never send more than the specified number of bytes in a given
  1009. accounting period, or receive more than that number in the period.
  1010. For example, with AccountingMax set to 1 GB, a server could send 900 MB
  1011. and receive 800 MB and continue running. It will only hibernate once one
  1012. of the two reaches 1 GB.
  1013. When the number of bytes is exhausted, Tor will hibernate until some
  1014. time in the next accounting period. To prevent all servers from
  1015. waking at the same time, Tor will also wait until a random point in
  1016. each period before waking up. If you have bandwidth cost issues,
  1017. enabling hibernation is preferable to setting a low bandwidth, since it
  1018. provides users with a collection of fast servers that are up some of
  1019. the time, which is more useful than a set of slow servers that are
  1020. always "available".
  1021. .LP
  1022. .TP
  1023. \fBAccountingStart \fR\fBday\fR|\fBweek\fR|\fBmonth\fR [\fIday\fR] \fIHH:MM\fR\fP
  1024. Specify how long accounting periods last. If \fBmonth\fP is given,
  1025. each accounting period runs from the time \fIHH:MM\fR on the
  1026. \fIday\fRth day of one month to the same day and time of the next.
  1027. (The day must be between 1 and 28.) If \fBweek\fP is given, each
  1028. accounting period runs from the time \fIHH:MM\fR of the \fIday\fRth
  1029. day of one week to the same day and time of the next week, with Monday
  1030. as day 1 and Sunday as day 7. If \fBday\fR is given, each accounting
  1031. period runs from the time \fIHH:MM\fR each day to the same time on the
  1032. next day. All times are local, and given in 24-hour time. (Defaults to
  1033. "month 1 0:00".)
  1034. .LP
  1035. .TP
  1036. \fBServerDNSResolvConfFile \fR\fIfilename\fP
  1037. Overrides the default DNS configuration with the configuration in
  1038. \fIfilename\fP. The file format is the same as the standard Unix
  1039. "\fBresolv.conf\fP" file (7). This option, like all other
  1040. ServerDNS options, only affects name lookups that your server does on
  1041. behalf of clients. (Defaults to use the system DNS configuration.)
  1042. .LP
  1043. .TP
  1044. \fBServerDNSAllowBrokenConfig \fR\fB0\fR|\fB1\fR\fP
  1045. If this option is false, Tor exits immediately if there are problems
  1046. parsing the system DNS configuration or connecting to nameservers.
  1047. Otherwise, Tor continues to periodically retry the system nameservers
  1048. until it eventually succeeds.
  1049. (Defaults to "1".)
  1050. .LP
  1051. .TP
  1052. \fBServerDNSSearchDomains \fR\fB0\fR|\fB1\fR\fP
  1053. If set to \fB1\fP, then we will search for addresses in the local search
  1054. domain. For example, if this system is configured to believe it is in
  1055. "example.com", and a client tries to connect to "www", the client will be
  1056. connected to "www.example.com".
  1057. This option only affects name lookups that your server does on
  1058. behalf of clients.
  1059. (Defaults to "0".)
  1060. .LP
  1061. .TP
  1062. \fBServerDNSDetectHijacking \fR\fB0\fR|\fB1\fR\fP
  1063. When this option is set to 1, we will test periodically to determine whether
  1064. our local nameservers have been configured to hijack failing DNS requests
  1065. (usually to an advertising site). If they are, we will attempt to correct
  1066. this.
  1067. This option only affects name lookups that your server does on
  1068. behalf of clients.
  1069. (Defaults to "1".)
  1070. .LP
  1071. .TP
  1072. \fBServerDNSTestAddresses \fR\fIaddress\fR,\fIaddress\fR,\fI...\fP
  1073. When we're detecting DNS hijacking, make sure that these \fIvalid\fP
  1074. addresses aren't getting redirected. If they are, then our DNS is
  1075. completely useless, and we'll reset our exit policy to "reject *:*".
  1076. This option only affects name lookups that your server does on
  1077. behalf of clients.
  1078. (Defaults to "www.google.com, www.mit.edu, www.yahoo.com,
  1079. www.slashdot.org".)
  1080. .LP
  1081. .TP
  1082. \fBServerDNSAllowNonRFC953Hostnames \fR\fB0\fR|\fB1\fR\fP
  1083. When this option is disabled, Tor does not try to resolve hostnames
  1084. containing illegal characters (like @ and :) rather than sending them to an
  1085. exit node to be resolved. This helps trap accidental attempts to resolve
  1086. URLs and so on.
  1087. This option only affects name lookups that your server does on
  1088. behalf of clients.
  1089. (Default: 0)
  1090. .LP
  1091. .TP
  1092. \fBBridgeRecordUsageByCountry \fR\fB0\fR|\fB1\fR\fP
  1093. When this option is enabled and BridgeRelay is also enabled, and we
  1094. have GeoIP data, Tor keeps a keep a per-country count of how many
  1095. client addresses have contacted it so that it can help the bridge
  1096. authority guess which countries have blocked access to it. (Default: 1)
  1097. .LP
  1098. .TP
  1099. \fBServerDNSRandomizeCase \fR\fB0\fR|\fB1\fR\fP
  1100. When this option is set, Tor sets the case of each character randomly in
  1101. outgoing DNS requests, and makes sure that the case matches in DNS replies.
  1102. This so-called "0x20 hack" helps resist some types of DNS poisoning attack.
  1103. For more information, see "Increased DNS Forgery Resistance through 0x20-Bit
  1104. Encoding".
  1105. This option only affects name lookups that your server does on
  1106. behalf of clients.
  1107. (Default: 1)
  1108. .LP
  1109. .TP
  1110. \fBGeoIPFile \fR\fIfilename\fP
  1111. A filename containing GeoIP data, for use with BridgeRecordUsageByCountry.
  1112. .LP
  1113. .TP
  1114. \fBCellStatistics \fR\fB0\fR|\fB1\fR\fP
  1115. When this option is enabled, Tor writes statistics on the mean time that
  1116. cells spend in circuit queues to disk every 24 hours. Cannot be changed
  1117. while Tor is running. (Default: 0)
  1118. .LP
  1119. .TP
  1120. \fBDirReqStatistics \fR\fB0\fR|\fB1\fR\fP
  1121. When this option is enabled, Tor writes statistics on the number and
  1122. response time of network status requests to disk every 24 hours. Cannot be
  1123. changed while Tor is running. (Default: 0)
  1124. .LP
  1125. .TP
  1126. \fBEntryStatistics \fR\fB0\fR|\fB1\fR\fP
  1127. When this option is enabled, Tor writes statistics on the number of
  1128. directly connecting clients to disk every 24 hours. Cannot be changed
  1129. while Tor is running. (Default: 0)
  1130. .LP
  1131. .TP
  1132. \fBExitPortStatistics \fR\fB0\fR|\fB1\fR\fP
  1133. When this option is enabled, Tor writes statistics on the number of
  1134. relayed bytes and opened stream per exit port to disk every 24 hours.
  1135. Cannot be changed while Tor is running. (Default: 0)
  1136. .LP
  1137. .TP
  1138. \fBExtraInfoStatistics \fR\fB0\fR|\fB1\fR\fP
  1139. When this option is enabled, Tor includes previously gathered statistics
  1140. in its extra-info documents that it uploads to the directory authorities.
  1141. (Default: 0)
  1142. .SH DIRECTORY SERVER OPTIONS
  1143. .PP
  1144. The following options are useful only for directory servers (that is, if \fBDirPort\fP is non-zero):
  1145. .LP
  1146. .TP
  1147. \fBAuthoritativeDirectory \fR\fB0\fR|\fB1\fR\fP
  1148. When this option is set to 1, Tor operates as an authoritative
  1149. directory server. Instead of caching the directory, it generates its
  1150. own list of good servers, signs it, and sends that to the clients.
  1151. Unless the clients already have you listed as a trusted directory, you
  1152. probably do not want to set this option. Please coordinate with the other
  1153. admins at tor-ops@freehaven.net if you think you should be a directory.
  1154. .LP
  1155. .TP
  1156. \fBDirPortFrontPage \fIFILENAME\fP
  1157. When this option is set, it takes an HTML file and publishes it as "/" on
  1158. the DirPort. Now relay operators can provide a disclaimer without needing
  1159. to set up a separate webserver. There's a sample disclaimer in
  1160. contrib/tor-exit-notice.html.
  1161. .LP
  1162. .TP
  1163. \fBV1AuthoritativeDirectory \fR\fB0\fR|\fB1\fR\fP
  1164. When this option is set in addition to \fBAuthoritativeDirectory\fP, Tor
  1165. generates version 1 directory and running-routers documents (for legacy
  1166. Tor clients up to 0.1.0.x).
  1167. .LP
  1168. .TP
  1169. \fBV2AuthoritativeDirectory \fR\fB0\fR|\fB1\fR\fP
  1170. When this option is set in addition to \fBAuthoritativeDirectory\fP, Tor
  1171. generates version 2 network statuses and serves descriptors, etc as
  1172. described in doc/spec/dir-spec-v2.txt (for Tor clients and servers
  1173. running 0.1.1.x and 0.1.2.x).
  1174. .LP
  1175. .TP
  1176. \fBV3AuthoritativeDirectory \fR\fB0\fR|\fB1\fR\fP
  1177. When this option is set in addition to \fBAuthoritativeDirectory\fP, Tor
  1178. generates version 3 network statuses and serves descriptors, etc as
  1179. described in doc/spec/dir-spec.txt (for Tor clients and servers
  1180. running at least 0.2.0.x).
  1181. .LP
  1182. .TP
  1183. \fBVersioningAuthoritativeDirectory \fR\fB0\fR|\fB1\fR\fP
  1184. When this option is set to 1, Tor adds information on
  1185. which versions of Tor are still believed safe for use to
  1186. the published directory. Each version 1 authority is
  1187. automatically a versioning authority; version 2 authorities
  1188. provide this service optionally. See \fBRecommendedVersions\fP,
  1189. \fBRecommendedClientVersions\fP, and \fBRecommendedServerVersions\fP.
  1190. .LP
  1191. .TP
  1192. \fBNamingAuthoritativeDirectory \fR\fB0\fR|\fB1\fR\fP
  1193. When this option is set to 1, then the server advertises that it has
  1194. opinions about nickname-to-fingerprint bindings. It will include these
  1195. opinions in its published network-status pages, by listing servers with
  1196. the flag "Named" if a correct binding between that nickname and
  1197. fingerprint has been registered with the dirserver. Naming dirservers
  1198. will refuse to accept or publish descriptors that contradict a
  1199. registered binding. See \fBapproved-routers\fP in the \fBFILES\fP
  1200. section below.
  1201. .LP
  1202. .TP
  1203. \fBHSAuthoritativeDir \fR\fB0\fR|\fB1\fR\fP
  1204. When this option is set in addition to \fBAuthoritativeDirectory\fP, Tor also
  1205. accepts and serves hidden service descriptors. (Default: 0)
  1206. .LP
  1207. .TP
  1208. \fBHidServDirectoryV2 \fR\fB0\fR|\fB1\fR\fP
  1209. When this option is set, Tor accepts and serves v2 hidden service
  1210. descriptors. Setting DirPort is not required for this, because clients
  1211. connect via the ORPort by default. (Default: 1)
  1212. .LP
  1213. .TP
  1214. \fBBridgeAuthoritativeDir \fR\fB0\fR|\fB1\fR\fP
  1215. When this option is set in addition to \fBAuthoritativeDirectory\fP, Tor
  1216. accepts and serves router descriptors, but it caches and serves the main
  1217. networkstatus documents rather than generating its own. (Default: 0)
  1218. .LP
  1219. .TP
  1220. \fBMinUptimeHidServDirectoryV2 \fR\fIN\fR \fBseconds\fR|\fBminutes\fR|\fBhours\fR|\fBdays\fR|\fBweeks\fP
  1221. Minimum uptime of a v2 hidden service directory to be accepted as such by
  1222. authoritative directories. (Default: 24 hours)
  1223. .LP
  1224. .TP
  1225. \fBDirPort \fR\fIPORT\fP
  1226. Advertise the directory service on this port.
  1227. .LP
  1228. .TP
  1229. \fBDirListenAddress \fR\fIIP\fR[:\fIPORT\fR]\fP
  1230. Bind the directory service to this address. If you specify a port, bind
  1231. to this port rather than the one specified in DirPort. (Default: 0.0.0.0)
  1232. This directive can be specified multiple times to bind to multiple
  1233. addresses/ports.
  1234. .LP
  1235. .TP
  1236. \fBDirPolicy \fR\fIpolicy\fR,\fIpolicy\fR,\fI...\fP
  1237. Set an entrance policy for this server, to limit who can connect to the
  1238. directory ports.
  1239. The policies have the same form as exit policies above.
  1240. .SH DIRECTORY AUTHORITY SERVER OPTIONS
  1241. .PP
  1242. .LP
  1243. .TP
  1244. \fBRecommendedVersions \fR\fISTRING\fP
  1245. STRING is a comma-separated list of Tor versions currently believed
  1246. to be safe. The list is included in each directory, and nodes which
  1247. pull down the directory learn whether they need to upgrade. This
  1248. option can appear multiple times: the values from multiple lines are
  1249. spliced together.
  1250. When this is set then
  1251. \fBVersioningAuthoritativeDirectory\fP should be set too.
  1252. .LP
  1253. .TP
  1254. \fBRecommendedClientVersions \fR\fISTRING\fP
  1255. STRING is a comma-separated list of Tor versions currently believed
  1256. to be safe for clients to use. This information is included in version 2
  1257. directories. If this is not set then the value of \fBRecommendedVersions\fR
  1258. is used.
  1259. When this is set then
  1260. \fBVersioningAuthoritativeDirectory\fP should be set too.
  1261. .LP
  1262. .TP
  1263. \fBRecommendedServerVersions \fR\fISTRING\fP
  1264. STRING is a comma-separated list of Tor versions currently believed
  1265. to be safe for servers to use. This information is included in version 2
  1266. directories. If this is not set then the value of \fBRecommendedVersions\fR
  1267. is used.
  1268. When this is set then
  1269. \fBVersioningAuthoritativeDirectory\fP should be set too.
  1270. .LP
  1271. .TP
  1272. \fBConsensusParams \fR\fISTRING\fP
  1273. STRING is a space-separated list of key=value pairs that Tor will
  1274. include in the "params" line of its networkstatus vote.
  1275. .LP
  1276. .TP
  1277. \fBDirAllowPrivateAddresses \fR\fB0\fR|\fB1\fR\fP
  1278. If set to 1, Tor will accept router descriptors with arbitrary "Address"
  1279. elements. Otherwise, if the address is not an IP address or is a private
  1280. IP address, it will reject the router descriptor. Defaults to 0.
  1281. .LP
  1282. .TP
  1283. \fBAuthDirBadDir \fR\fIAddressPattern\fR...\fP
  1284. Authoritative directories only. A set of address patterns for servers that
  1285. will be listed as bad directories in any network status document this authority
  1286. publishes, if \fBAuthDirListBadDirs\fR is set.
  1287. .LP
  1288. .TP
  1289. \fBAuthDirBadExit \fR\fIAddressPattern\fR...\fP
  1290. Authoritative directories only. A set of address patterns for servers that
  1291. will be listed as bad exits in any network status document this authority
  1292. publishes, if \fBAuthDirListBadExits\fR is set.
  1293. .LP
  1294. .TP
  1295. \fBAuthDirInvalid \fR\fIAddressPattern\fR...\fP
  1296. Authoritative directories only. A set of address patterns for servers that
  1297. will never be listed as "valid" in any network status document that this
  1298. authority publishes.
  1299. .LP
  1300. .TP
  1301. \fBAuthDirReject \fR\fIAddressPattern\fR...\fP
  1302. Authoritative directories only. A set of address patterns for servers that
  1303. will never be listed at all in any network status document that this
  1304. authority publishes, or accepted as an OR address in any descriptor submitted
  1305. for publication by this authority.
  1306. .LP
  1307. .TP
  1308. \fBAuthDirListBadDirs \fR\fB0\fR|\fB1\fR\fP
  1309. Authoritative directories only. If set to 1, this directory has
  1310. some opinion about which nodes are unsuitable as directory caches. (Do not
  1311. set this to 1 unless you plan to list non-functioning directories as bad;
  1312. otherwise, you are effectively voting in favor of every declared directory.)
  1313. .LP
  1314. .TP
  1315. \fBAuthDirListBadExits \fR\fB0\fR|\fB1\fR\fP
  1316. Authoritative directories only. If set to 1, this directory has
  1317. some opinion about which nodes are unsuitable as exit nodes. (Do not
  1318. set this to 1 unless you plan to list non-functioning exits as bad;
  1319. otherwise, you are effectively voting in favor of every declared exit
  1320. as an exit.)
  1321. .LP
  1322. .TP
  1323. \fBAuthDirRejectUnlisted \fR\fB0\fR|\fB1\fR\fP
  1324. Authoritative directories only. If set to 1, the directory server
  1325. rejects all uploaded server descriptors that aren't explicitly listed
  1326. in the fingerprints file. This acts as a "panic button" if we get
  1327. hit with a Sybil attack. (Default: 0)
  1328. .LP
  1329. .TP
  1330. \fBAuthDirMaxServersPerAddr\fR \fINUM\fP
  1331. Authoritative directories only. The maximum number of servers that we
  1332. will list as acceptable on a single IP address. Set this to "0" for
  1333. "no limit". (Default: 2)
  1334. .LP
  1335. .TP
  1336. \fBAuthDirMaxServersPerAuthAddr\fR \fINUM\fP
  1337. Authoritative directories only. Like AuthDirMaxServersPerAddr, but
  1338. applies to addresses shared with directory authorities. (Default: 5)
  1339. .LP
  1340. .TP
  1341. \fBV3AuthVotingInterval\fR \fR\fIN\fR \fBminutes\fR|\fBhours\fP
  1342. V3 authoritative directories only. Configures the server's preferred
  1343. voting interval. Note that voting will \fIactually\fP happen at an
  1344. interval chosen by consensus from all the authorities' preferred
  1345. intervals. This time SHOULD divide evenly into a day. (Default: 1 hour)
  1346. .LP
  1347. .TP
  1348. \fBV3AuthVoteDelay\fR \fR\fIN\fR \fBminutes\fR|\fBhours\fP
  1349. V3 authoritative directories only. Configures the server's preferred
  1350. delay between publishing its vote and assuming it has all the votes
  1351. from all the other authorities. Note that the actual time used is not
  1352. the server's preferred time, but the consensus of all preferences.
  1353. (Default: 5 minutes.)
  1354. .LP
  1355. .TP
  1356. \fBV3AuthDistDelay\fR \fR\fIN\fR \fBminutes\fR|\fBhours\fP
  1357. V3 authoritative directories only. Configures the server's preferred
  1358. delay between publishing its consensus and signature and assuming it
  1359. has all the signatures from all the other authorities. Note that the
  1360. actual time used is not the server's preferred time, but the consensus
  1361. of all preferences. (Default: 5 minutes.)
  1362. .LP
  1363. .TP
  1364. \fBV3AuthNIntervalsValid\fR \fINUM\fP
  1365. V3 authoritative directories only. Configures the number of
  1366. VotingIntervals for which each consensus should be valid for.
  1367. Choosing high numbers increases network partitioning risks; choosing
  1368. low numbers increases directory traffic. Note that the actual number
  1369. of intervals used is not the server's preferred number, but the
  1370. consensus of all preferences. Must be at least 2. (Default: 3.)
  1371. .SH HIDDEN SERVICE OPTIONS
  1372. .PP
  1373. The following options are used to configure a hidden service.
  1374. .LP
  1375. .TP
  1376. \fBHiddenServiceDir \fR\fIDIRECTORY\fP
  1377. Store data files for a hidden service in DIRECTORY. Every hidden
  1378. service must have a separate directory. You may use this option multiple
  1379. times to specify multiple services.
  1380. .LP
  1381. .TP
  1382. \fBHiddenServicePort \fR\fIVIRTPORT \fR[\fITARGET\fR]\fP
  1383. Configure a virtual port VIRTPORT for a hidden service. You may use this
  1384. option multiple times; each time applies to the service using the most recent
  1385. hiddenservicedir. By default, this option maps the virtual port to the
  1386. same port on 127.0.0.1. You may override the target port, address, or both
  1387. by specifying a target of addr, port, or addr:port. You may also have
  1388. multiple lines with the same VIRTPORT: when a user connects to that VIRTPORT,
  1389. one of the TARGETs from those lines will be chosen at random.
  1390. .LP
  1391. .TP
  1392. \fBPublishHidServDescriptors \fR\fB0\fR|\fB1\fR\fP
  1393. If set to 0, Tor will run any hidden services you configure, but it won't
  1394. advertise them to the rendezvous directory. This option is only useful
  1395. if you're using a Tor controller that handles hidserv publishing for you.
  1396. (Default: 1)
  1397. .LP
  1398. .TP
  1399. \fBHiddenServiceVersion \fR\fIversion\fR,\fIversion\fR,\fI...\fP
  1400. A list of rendezvous service descriptor versions to publish for the hidden
  1401. service. Currently, only version 2 is supported. (Default: 2)
  1402. .LP
  1403. .TP
  1404. \fBHiddenServiceAuthorizeClient \fR\fIauth-type\fR \fR\fIclient-name\fR,\fIclient-name\fR,\fI...\fP
  1405. If configured, the hidden service is accessible for authorized clients
  1406. only. The auth-type can either be 'basic' for a general-purpose
  1407. authorization protocol or 'stealth' for a less scalable protocol that also
  1408. hides service activity from unauthorized clients. Only clients that are
  1409. listed here are authorized to access the hidden service. Valid client names
  1410. are 1 to 19 characters long and only use characters in A-Za-z0-9+-_
  1411. (no spaces). If this option is set, the hidden service is not accessible
  1412. for clients without authorization any more. Generated authorization data
  1413. can be found in the hostname file. Clients need to put this authorization
  1414. data in their configuration file using \fBHidServAuth\fR.
  1415. .LP
  1416. .TP
  1417. \fBRendPostPeriod \fR\fIN\fR \fBseconds\fR|\fBminutes\fR|\fBhours\fR|\fBdays\fR|\fBweeks\fP
  1418. Every time the specified period elapses, Tor uploads any rendezvous
  1419. service descriptors to the directory servers. This information is also
  1420. uploaded whenever it changes. (Default: 20 minutes)
  1421. .SH TESTING NETWORK OPTIONS
  1422. .PP
  1423. The following options are used for running a testing Tor network.
  1424. .LP
  1425. .TP
  1426. \fBTestingTorNetwork \fR\fB0\fR|\fB1\fR\fP
  1427. If set to 1, Tor adjusts default values of the configuration options below,
  1428. so that it is easier to set up a testing Tor network. May only be set if
  1429. non-default set of DirServers is set. Cannot be unset while Tor is running.
  1430. (Default: 0)
  1431. .PD 0
  1432. .RS 12
  1433. .IP "ServerDNSAllowBrokenConfig 1"
  1434. .IP "DirAllowPrivateAddresses 1"
  1435. .IP "EnforceDistinctSubnets 0"
  1436. .IP "AssumeReachable 1"
  1437. .IP "AuthDirMaxServersPerAddr 0"
  1438. .IP "AuthDirMaxServersPerAuthAddr 0"
  1439. .IP "ClientDNSRejectInternalAddresses 0"
  1440. .IP "ExitPolicyRejectPrivate 0"
  1441. .IP "V3AuthVotingInterval 5 minutes"
  1442. .IP "V3AuthVoteDelay 20 seconds"
  1443. .IP "V3AuthDistDelay 20 seconds"
  1444. .IP "TestingV3AuthInitialVotingInterval 5 minutes"
  1445. .IP "TestingV3AuthInitialVoteDelay 20 seconds"
  1446. .IP "TestingV3AuthInitialDistDelay 20 seconds"
  1447. .IP "TestingAuthDirTimeToLearnReachability 0 minutes"
  1448. .IP "TestingEstimatedDescriptorPropagationTime 0 minutes"
  1449. .RE
  1450. .PD
  1451. .LP
  1452. .TP
  1453. \fBTestingV3AuthInitialVotingInterval\fR \fR\fIN\fR \fBminutes\fR|\fBhours\fP
  1454. Like \fBV3AuthVotingInterval\fR, but for initial voting interval before the
  1455. first consensus has been created. Changing this requires that
  1456. \fBTestingTorNetwork\fR is set. (Default: 30 minutes)
  1457. .LP
  1458. .TP
  1459. \fBTestingV3AuthInitialVoteDelay\fR \fR\fIN\fR \fBminutes\fR|\fBhours\fP
  1460. Like \fBTestingV3AuthInitialVoteDelay\fR, but for initial voting interval
  1461. before the first consensus has been created. Changing this requires that
  1462. \fBTestingTorNetwork\fR is set. (Default: 5 minutes)
  1463. .LP
  1464. .TP
  1465. \fBTestingV3AuthInitialDistDelay\fR \fR\fIN\fR \fBminutes\fR|\fBhours\fP
  1466. Like \fBTestingV3AuthInitialDistDelay\fR, but for initial voting interval
  1467. before the first consensus has been created. Changing this requires that
  1468. \fBTestingTorNetwork\fR is set. (Default: 5 minutes)
  1469. .LP
  1470. .TP
  1471. \fBTestingAuthDirTimeToLearnReachability\fR \fR\fIN\fR \fBminutes\fR|\fBhours\fP
  1472. After starting as an authority, do not make claims about whether routers are
  1473. Running until this much time has passed.
  1474. Changing this requires that\fBTestingTorNetwork\fR is set.
  1475. (Default: 30 minutes)
  1476. .LP
  1477. .TP
  1478. \fBTestingEstimatedDescriptorPropagationTime\fR \fR\fIN\fR \fBminutes\fR|\fBhours\fP
  1479. Clients try downloading router descriptors from directory caches after this
  1480. time. Changing this requires that \fBTestingTorNetwork\fR is set.
  1481. (Default: 10 minutes)
  1482. .\" UNDOCUMENTED
  1483. .\" ignoreversion
  1484. .SH SIGNALS
  1485. Tor catches the following signals:
  1486. .LP
  1487. .TP
  1488. \fBSIGTERM\fR
  1489. Tor will catch this, clean up and sync to disk if necessary, and exit.
  1490. .LP
  1491. .TP
  1492. \fBSIGINT\fR
  1493. Tor clients behave as with SIGTERM; but Tor servers will do a controlled
  1494. slow shutdown, closing listeners and waiting 30 seconds before exiting.
  1495. (The delay can be configured with the ShutdownWaitLength config option.)
  1496. .LP
  1497. .TP
  1498. \fBSIGHUP\fR
  1499. The signal instructs Tor to reload its configuration (including closing
  1500. and reopening logs), fetch a new directory, and kill and restart its
  1501. helper processes if applicable.
  1502. .LP
  1503. .TP
  1504. \fBSIGUSR1\fR
  1505. Log statistics about current connections, past connections, and
  1506. throughput.
  1507. .LP
  1508. .TP
  1509. \fBSIGUSR2\fR
  1510. Switch all logs to loglevel debug. You can go back to the old loglevels
  1511. by sending a SIGHUP.
  1512. .LP
  1513. .TP
  1514. \fBSIGCHLD\fR
  1515. Tor receives this signal when one of its helper processes has exited,
  1516. so it can clean up.
  1517. .LP
  1518. .TP
  1519. \fBSIGPIPE\fR
  1520. Tor catches this signal and ignores it.
  1521. .LP
  1522. .TP
  1523. \fBSIGXFSZ\fR
  1524. If this signal exists on your platform, Tor catches and ignores it.
  1525. .SH FILES
  1526. .LP
  1527. .TP
  1528. .B @CONFDIR@/torrc
  1529. The configuration file, which contains "option value" pairs.
  1530. .LP
  1531. .TP
  1532. .B @LOCALSTATEDIR@/lib/tor/
  1533. The tor process stores keys and other data here.
  1534. .LP
  1535. .TP
  1536. .B \fIDataDirectory\fP/cached-status/*
  1537. 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.
  1538. .LP
  1539. .TP
  1540. .B \fIDataDirectory\fB/cached-descriptors\fR and \fBcached-descriptors.new\fR
  1541. These files hold downloaded router statuses. Some routers may appear more than once; if so, the most recently published descriptor is used. Lines beginning with @-signs are annotations that contain more information about a given router. The ".new" file is an append-only journal; when it gets too large, all entries are merged into a new cached-descriptors file.
  1542. .LP
  1543. .TP
  1544. .B \fIDataDirectory\fB/cached-routers\fR and \fBcached-routers.new\fR
  1545. Obsolete versions of cached-descriptors and cached-descriptors.new. When Tor can't find the newer files, it looks here instead.
  1546. .LP
  1547. .TP
  1548. .B \fIDataDirectory\fP/state
  1549. A set of persistent key-value mappings. These are documented in the file. These include:
  1550. .PD 0
  1551. .RS 5
  1552. .IP "- The current entry guards and their status."
  1553. .IP "- The current bandwidth accounting values (unused so far; see below)."
  1554. .IP "- When the file was last written"
  1555. .IP "- What version of Tor generated the state file"
  1556. .IP "- A short history of bandwidth usage, as produced in the router descriptors."
  1557. .RE
  1558. .PD
  1559. .LP
  1560. .TP
  1561. .B \fIDataDirectory\fP/bw_accounting
  1562. 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.
  1563. .LP
  1564. .TP
  1565. .B \fIDataDirectory\fP/hsusage
  1566. Used to track hidden service usage in terms of fetch and publish
  1567. requests to this hidden service authoritative directory. Only used when
  1568. recording of statistics is enabled.
  1569. .LP
  1570. .TP
  1571. .B \fIDataDirectory\fP/control_auth_cookie
  1572. Used for cookie authentication with the controller. Location can be
  1573. overridden by the CookieAuthFile config option. Regenerated on startup.
  1574. See control-spec.txt for details. Only used when cookie authentication
  1575. is enabled.
  1576. .LP
  1577. .TP
  1578. .B \fIDataDirectory\fP/keys/*
  1579. Only used by servers. Holds identity keys and onion keys.
  1580. .LP
  1581. .TP
  1582. .B \fIDataDirectory\fP/fingerprint
  1583. Only used by servers. Holds the fingerprint of the server's identity key.
  1584. .LP
  1585. .TP
  1586. .B \fIDataDirectory\fP/approved-routers
  1587. 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.
  1588. .LP
  1589. .TP
  1590. .B \fIDataDirectory\fP/router-stability
  1591. Only used by authoritative directory servers. Tracks measurements for router mean-time-between-failures so that authorities have a good idea of how to set their Stable flags.
  1592. .LP
  1593. .TP
  1594. .B \fIHiddenServiceDirectory\fP/hostname
  1595. The <base32-encoded-fingerprint>.onion domain name for this hidden service.
  1596. If the hidden service is restricted to authorized clients only, this file
  1597. also contains authorization data for all clients.
  1598. .LP
  1599. .TP
  1600. .B \fIHiddenServiceDirectory\fP/private_key
  1601. The private key for this hidden service.
  1602. .LP
  1603. .TP
  1604. .B \fIHiddenServiceDirectory\fP/client_keys
  1605. Authorization data for a hidden service that is only accessible by authorized
  1606. clients.
  1607. .SH SEE ALSO
  1608. .BR privoxy (1),
  1609. .BR tsocks (1),
  1610. .BR torify (1)
  1611. .BR https://www.torproject.org/
  1612. .SH BUGS
  1613. Plenty, probably. Tor is still in development. Please report them.
  1614. .SH AUTHORS
  1615. Roger Dingledine <arma@mit.edu>, Nick Mathewson <nickm@alum.mit.edu>.