tor.1.in 51 KB

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