tor.1.in 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. .TH TOR 1 "November 2004" "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. .TP
  24. \fB-f \fR\fIFILE\fP
  25. FILE contains further "option value" pairs. (Default: @CONFDIR@/torrc)
  26. .TP
  27. Other options can be specified either on the command-line (\fI--option
  28. value\fR), or in the configuration file (\fIoption value\fR).
  29. Options are case-insensitive.
  30. .TP
  31. \fBLog \fR\fIminSeverity\fR[-\fImaxSeverity\fR] \fBstderr\fR|\fBstdout\fR|\fBsyslog\fR\fP
  32. Send all messages between \fIminSeverity\fR and \fImaxSeverity\fR to
  33. the standard output stream, the standard error stream, or to the system
  34. log. (The "syslog" value is only supported on Unix.) Recognized
  35. severity levels are debug, info, notice, warn, and err. If only one
  36. severity level is given, all messages of that level or higher will be
  37. sent to the listed destination.
  38. .TP
  39. \fBLog \fR\fIminSeverity\fR-\fImaxSeverity\fR \fBfile\fR \fIFILENAME\fP
  40. As above, but send log messages to the listed filename. The "Log"
  41. option may appear more than once in a configuration file. Messages
  42. are sent to all the logs that match their severity level.
  43. .TP
  44. \fBBandwidthRateBytes \fR\fINUM\fP
  45. A token bucket limits the average incoming bandwidth on this node to NUM bytes per second. (Default: 800000)
  46. .TP
  47. \fBBandwidthBurstBytes \fR\fINUM\fP
  48. Limit the maximum token bucket size (also known as the burst) to NUM bytes. (Default: 50000000)
  49. .TP
  50. \fBDirServer \fR\fIaddress:port fingerprint\fP
  51. Use a nonstandard authoritative directory server at the provided
  52. address and port, with the specified key fingerprint. This option can
  53. be repeated many times, for multiple authoritative directory
  54. servers. If no \fBdirserver\fP line is given, Tor will use the default
  55. directory servers: moria1, moria2, and tor26.
  56. .TP
  57. \fBGroup \fR\fIGID\fP
  58. On startup, setgid to this user.
  59. .TP
  60. \fBHttpProxy\fR \fIhost\fR[:\fIport\fR]\fP
  61. If set, Tor will make all its directory requests through this host:port,
  62. rather than connecting directly to any directory servers.
  63. .TP
  64. \fBKeepalivePeriod \fR\fINUM\fP
  65. To keep firewalls from expiring connections, send a padding keepalive
  66. cell on open connections every NUM seconds. (Default: 300)
  67. .TP
  68. \fBMaxConn \fR\fINUM\fP
  69. Maximum number of simultaneous sockets allowed. You probably don't need
  70. to adjust this. (Default: 1024)
  71. .TP
  72. \fBOutboundBindAddress \fR\fIIP\fP
  73. Make all outbound connections originate from the IP address specified. This
  74. is only useful when you have multiple network interfaces, and you want all
  75. of Tor's outgoing connections to use a single one.
  76. .TP
  77. \fBPIDFile \fR\fIFILE\fP
  78. On startup, write our PID to FILE. On clean shutdown, remove FILE.
  79. .TP
  80. \fBRunAsDaemon \fR\fB0\fR|\fB1\fR\fP
  81. If 1, Tor forks and daemonizes to the background. (Default: 0)
  82. .TP
  83. \fBUser \fR\fIUID\fP
  84. On startup, setuid to this user.
  85. .SH CLIENT OPTIONS
  86. .PP
  87. The following options are useful only for clients (that is, if \fBSOCKSPort\fP is non-zero):
  88. .TP
  89. \fBAllowUnverifiedNodes\fR \fBentry\fR|\fBexit\fR|\fBmiddle\fR|\fBintroduction\fR|\fBrendezvous\fR|...\fP
  90. Where on our circuits should we allow Tor servers that the directory
  91. servers haven't authenticated as "verified"? (Default: middle,rendezvous.)
  92. .TP
  93. \fBDirFetchPostPeriod \fR\fIseconds\fP
  94. Every N seconds, Tor downloads a fresh directory, and re-uploads
  95. information about hidden services to the directory servers. If
  96. running as a server, Tor also re-uploads information about itself to
  97. the directory servers. (Tor also uploads this information whenever it
  98. changes.) (Default: 600.)
  99. .TP
  100. \fBClientOnly \fR\fB0\fR|\fB1\fR\fP
  101. If set to 1, Tor will under no circumstances run as a server. (Usually,
  102. you don't need to set this; Tor is pretty smart at figuring out whether
  103. you are reliable and high-bandwidth enough to be a good server.)
  104. .TP
  105. \fBEntryNodes \fR\fInickname,nickname,...\fP
  106. A list of preferred nodes to use for the first hop in the circuit, if possible.
  107. .TP
  108. \fBExitNodes \fR\fInickname,nickname,...\fP
  109. A list of preferred nodes to use for the last hop in the circuit, if possible.
  110. .TP
  111. \fBExcludeNodes \fR\fInickname,nickname,...\fP
  112. A list of nodes to never use when building a circuit.
  113. .TP
  114. \fBStrictExitNodes \fR\fB0\fR|\fB1\fR\fP
  115. If 1, Tor will never use any nodes besides those listed in "exitnodes" for
  116. the last hop of a circuit.
  117. .TP
  118. \fBStrictEntryNodes \fR\fB0\fR|\fB1\fR\fP
  119. If 1, Tor will never use any nodes besides those listed in "entrynodes" for
  120. the first hop of a circuit.
  121. .TP
  122. \fBFascistFirewall \fR\fB0\fR|\fB1\fR\fP
  123. If 1, Tor will only create outgoing connections to ORs running on ports that
  124. your firewall allows (defaults to 80 and 443; see \fBFirewallPorts\fR). This will
  125. allow you to run Tor as a client behind a firewall with restrictive policies,
  126. but will not allow you to run as a server behind such a firewall.
  127. .TP
  128. \fBFirewallPorts \fR\fIPORTS\fP
  129. A list of ports that your firewall allows you to connect to. Only used when
  130. \fBFascistFirewall\fR is set. (Default: 80, 443.)
  131. .TP
  132. \fB
  133. \fBNewCircuitPeriod \fR\fINUM\fP
  134. Every NUM seconds consider whether to build a new circuit. (Default: 60)
  135. .TP
  136. \fBNodeFamily \fR\fInickname,nickname,...\fP
  137. The named Tor servers constitute a "family" of similar or co-administered
  138. servers, so never use any two of them in the same circuit. Defining a
  139. NodeFamily is only needed when a server doesn't list the family itself
  140. (with MyFamily). This option can be used multiple times.
  141. .TP
  142. .\" \fBPathlenCoinWeight \fR\fI0.0-1.0\fP
  143. .\" Paths are 3 hops plus a geometric distribution centered around this coinweight. Must be >=0.0 and <1.0. (Default: 0.3) NOT USED CURRENTLY
  144. .\" .TP
  145. \fBRendNodes \fR\fInickname,nickname,...\fP
  146. A list of preferred nodes to use for the rendezvous point, if possible.
  147. .TP
  148. \fBRendExcludeNodes \fR\fInickname,nickname,...\fP
  149. A list of nodes to never use when choosing a rendezvous point.
  150. .TP
  151. \fBSOCKSPort \fR\fIPORT\fP
  152. Bind to this port to listen for connections from SOCKS-speaking applications.
  153. Set this to 0 if you don't want to allow application connections. (Default:
  154. 9050)
  155. .TP
  156. \fBSOCKSBindAddress \fR\fIIP\fP
  157. Bind to this address to listen for connections from socks-speaking applications. (Default: 127.0.0.1) You can also specify a port (e.g. 192.168.0.1:9100). This directive can be specified multiple times to bind to multiple addresses/ports.
  158. .TP
  159. \fBSOCKSPolicy \fR\fIpolicy,policy,...\fP
  160. Set an entrance policy for this server, to limit who can connect to the socks ports. The policies have the same form as exit policies below.
  161. .SH SERVER OPTIONS
  162. .PP
  163. The following options are useful only for servers (that is, if \fBORPort\fP is non-zero):
  164. .TP
  165. \fBAddress \fR\fIaddress\fP
  166. The IP or fqdn of this server (e.g. moria.mit.edu).
  167. .TP
  168. \fBDataDirectory \fR\fIDIR\fP
  169. Store working data in DIR (Default: @LOCALSTATEDIR@/lib/tor)
  170. .TP
  171. \fBExitPolicy \fR\fIpolicy,policy,...\fP
  172. Set an exit policy for this server. Each policy is of the form
  173. "\fBreject\fP \fIADDR\fP\fB/\fP\fIMASK\fP\fB:\fP\fIPORT\fP".
  174. If \fB/\fP\fIMASK\fP is omitted then this policy just applies to the host
  175. given. Instead of giving a host or network you can also use "\fB*\fP" to
  176. denote the universe (0.0.0.0/0). \fIPORT\fP can either be a single port number
  177. or an interval of ports: "\fIFROM_PORT\fP\fB-\fP\fITO_PORT\fP".
  178. For example, "reject 127.0.0.1:*,reject 192.168.1.0/24:*,accept *:*" would
  179. reject any traffic destined for localhost and any 192.168.1.* address, but
  180. accept anything else.
  181. This directive can be specified multiple times so you don't have to put
  182. it all on one line.
  183. See RFC 3330 for more details about internal and reserved IP address
  184. space. The default exit policy is:
  185. .PD 0
  186. .RS 12
  187. .IP "reject 0.0.0.0/8" 0
  188. .IP "reject 169.254.0.0/16" 4
  189. .IP "reject 127.0.0.0/8"
  190. .IP "reject 192.168.0.0/16"
  191. .IP "reject 10.0.0.0/8"
  192. .IP "reject 172.16.0.0/12"
  193. .IP "accept *:20-22"
  194. .IP "accept *:53"
  195. .IP "accept *:79-81"
  196. .IP "accept *:110"
  197. .IP "accept *:143"
  198. .IP "accept *:443"
  199. .IP "accept *:873"
  200. .IP "accept *:993"
  201. .IP "accept *:995" 4
  202. .IP "reject *:4661-4662"
  203. .IP "reject *:1214"
  204. .IP "reject *:6346"
  205. .IP "accept *:1024-65535"
  206. .IP "reject *:*"
  207. .RE
  208. .PD
  209. .TP
  210. \fBMaxOnionsPending \fR\fINUM\fP
  211. If you have more than this number of onionskins queued for decrypt, reject new ones. (Default: 100)
  212. .TP
  213. \fBMyFamily \fR\fInickname,nickname,...\fP
  214. Declare that this Tor server is controlled or administered by a group
  215. or organization identical or similar to that of the other named servers.
  216. When two servers both declare that they are in the same 'family', Tor clients
  217. will not use them in the same circuit.
  218. .TP
  219. \fBNickname \fR\fIname\fP
  220. Set the server's nickname to 'name'.
  221. .TP
  222. \fBNumCPUs \fR\fInum\fP
  223. How many processes to use at once for decrypting onionskins. (Default: 1)
  224. .TP
  225. \fBORPort \fR\fIPORT\fP
  226. Bind to this port to listen for connections from Tor clients and servers.
  227. .TP
  228. \fBORBindAddress \fR\fIIP\fP
  229. Bind to this address to listen for connections from Tor clients and servers. (Default: 0.0.0.0)
  230. .TP
  231. \fBRedirectExit \fR\fIpattern target\fP
  232. Whenever an outgoing connection tries to connect to one of a given set
  233. of addresses, connect to \fItarget\fP (an \fIaddress:port\fP pair) instead.
  234. The address
  235. pattern is given in the same format as for an exit policy. The
  236. address translation applies after exit policies are applied. Multiple
  237. \fBRedirectExit\fP options can be used: once any one has matched
  238. successfully, no subsequent rules are considered. You can specify that no
  239. redirection is to be performed on a given set of addresses by using the
  240. special target string "pass", which prevents subsequent rules from being
  241. considered.
  242. .TP
  243. \fBAccountingMaxKB \fR\fInum\fP
  244. Never send or receive more than \fInum\fP kilobytes in a given
  245. accounting period (currently, only months are supported). When the
  246. number of kilobytes is exhausted, Tor will hibernate until some time
  247. in the next accounting period. If you have bandwidth cost issues,
  248. using this option is preferable to setting a low bandwidth, since it
  249. provides users with a collection of fast servers that are up some of
  250. the time, which is more useful than a set of slow servers that are
  251. always "available".
  252. .TP
  253. \fBMonthlyAccountingStart \fR\fIday\fP
  254. Always start the accounting period on the provided day of the month,
  255. which must be between 1 and 28. (Defaults to 1.)
  256. .SH DIRECTORY SERVER OPTIONS
  257. .PP
  258. The following options are useful only for directory servers (that is, if \fBDirPort\fP is non-zero):
  259. .TP
  260. \fBAuthoritativeDirectory \fR\fB0\fR|\fB1\fR\fP
  261. When this option is set to 1, Tor operates as an authoritative
  262. directory server. Instead of caching the directory, it generates its
  263. own list of good servers, signs it, and sends that to the clients.
  264. Unless the clients already have you listed as a trusted directory, you
  265. probably do not want to set this option. Please coordinate with the other
  266. admins at tor-ops@freehaven.net if you think you should be a directory.
  267. .TP
  268. \fBContactInfo \fR\fIemail address\fP
  269. Administrative contact information for server.
  270. .TP
  271. \fBDirPort \fR\fIPORT\fP
  272. Bind the directory service to this port.
  273. .TP
  274. \fBDirBindAddress \fR\fIIP\fP
  275. Bind the directory service to this address. (Default: 0.0.0.0)
  276. .TP
  277. \fBDirPolicy \fR\fIpolicy,policy,...\fP
  278. Set an entrance policy for this server, to limit who can connect to the directory ports. The policies have the same form as exit policies above.
  279. .TP
  280. \fBRecommendedVersions \fR\fISTRING\fP
  281. STRING is a command-separated list of Tor versions currently believed
  282. to be safe. The list is included in each directory, and nodes which
  283. pull down the directory learn whether they need to upgrade. This
  284. option can appear multiple times: the values from multiple lines are
  285. spliced together.
  286. .TP
  287. \fBRunTesting \fR\fB0\fR|\fB1\fR\fP
  288. If set to 1, Tor tries to build circuits through all of the servers it
  289. knows about, so it can tell which are up and which are down. This
  290. option is only useful for authoritative directories, so you probably
  291. don't want to use it.
  292. .SH HIDDEN SERVICE OPTIONS
  293. .PP
  294. The following options are used to configure a hidden service.
  295. .TP
  296. \fBHiddenServiceDir \fR\fIDIRECTORY\fP
  297. Store data files for a hidden service in DIRECTORY. Every hidden
  298. service must have a separate directory. You may use this option multiple
  299. times to specify multiple services.
  300. .TP
  301. \fBHiddenServicePort \fR\fIVIRTPORT \fR[\fITARGET\fR]\fP
  302. Configure a virtual port VIRTPORT for a hidden service. You may use this
  303. option multiple times; each time applies to the service using the most recent
  304. hiddenservicedir. By default, this option maps the virtual port to the
  305. same port on 127.0.0.1. You may override the target port, address, or both
  306. by specifying a target of addr, port, or addr:port.
  307. .TP
  308. \fBHiddenServiceNodes \fR\fInickname,nickname,...\fP
  309. If possible, use the specified nodes as introduction points for the hidden
  310. service.
  311. .TP
  312. \fBHiddenServiceExcludeNodes \fR\fInickname,nickname,...\fP
  313. Do not use the specified nodes as introduction points for the hidden
  314. service.
  315. .\" UNDOCUMENTED
  316. .\" ignoreversion
  317. .SH FILES
  318. .TP
  319. .I @CONFDIR@/torrc
  320. The configuration file, which contains "option value" pairs.
  321. .TP
  322. .I @CONFDIR@/dirservers
  323. A list of directory servers, to bootstrap into the network.
  324. .TP
  325. .I @LOCALSTATEDIR@/lib/tor/
  326. The tor process stores keys and other data here.
  327. .SH SEE ALSO
  328. .BR privoxy (1),
  329. .BR tsocks (1),
  330. .BR torify (1)
  331. .BR http://freehaven.net/tor/
  332. .SH BUGS
  333. Plenty, probably. It's still in alpha. Please report them.
  334. .SH AUTHORS
  335. Roger Dingledine <arma@mit.edu>, Nick Mathewson <nickm@alum.mit.edu>.