tor.1.in 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. .TH TOR 1 "November 2003" "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 commandline (\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 strem, 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. messaes are sent to all the logs that match their severity level.
  43. .TP
  44. \fBBandwidthRate \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. \fBBandwidthBurst \fR\fINUM\fP
  48. Limit the maximum token bucket size (also known as the burst) to NUM bytes. (Default: 10000000)
  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. \fBKeepalivePeriod \fR\fINUM\fP
  61. To keep firewalls from expiring connections, send a padding keepalive cell on open connections every NUM seconds. (Default: 300)
  62. .TP
  63. \fBMaxConn \fR\fINUM\fP
  64. Maximum number of simultaneous connections allowed. You probably don't need
  65. to adjust this. (Default: 900)
  66. .TP
  67. \fBOutboundBindAddress \fR\fIP\fP
  68. Make all outbound connections originate from the IP address specified. This
  69. is only useful when you have multiple network interfaces, and you want all
  70. of Tor's outgoing connections to use a single one.
  71. .TP
  72. \fBPIDFile \fR\fIFILE\fP
  73. On startup, write our PID to FILE. On clean shutdown, remove FILE.
  74. .TP
  75. \fBRunAsDaemon \fR\fI0|1\fP
  76. If 1, Tor forks and daemonizes to the background. (Default: 0)
  77. .TP
  78. \fBUser \fR\fIUID\fP
  79. On startup, setuid to this user.
  80. .SH CLIENT OPTIONS
  81. .PP
  82. The following options are useful only for clients (that is, if \fBSOCKSPort\fP is non-zero):
  83. .TP
  84. \fBAllowUnverifiedNodes \fR\fIentry|exit|middle|introduction|rendezvous,...\fP
  85. Where on our circuits should we allow Tor servers that the directory
  86. servers haven't authenticated as "verified"? (Default: middle,rendezvous.)
  87. \fBdirfetchpostperiod \fR\fIseconds\fP
  88. Every N seconds, Tor downloads a fresh directory, and re-uploads
  89. information about hidden services to the directory servers. If
  90. running as a server, Tor also re-uploads information about itself to
  91. the directory servers. (Tor also uploads this information whenever it
  92. changes.) (Default: 600.)
  93. .TP
  94. \fBClientOnly \fR\fI0|1\fP
  95. If set to 1, Tor will under no circumstances run as a server. (Usually,
  96. you don't need to set this; Tor is pretty smart at figuring out whether
  97. you are reliable and high-bandwith enough to be a good server.)
  98. .TP
  99. \fBEntryNodes \fR\fInickname,nickname,...\fP
  100. A list of preferred nodes to use for the first hop in the circuit, if possible.
  101. .TP
  102. \fBExitNodes \fR\fInickname,nickname,...\fP
  103. A list of preferred nodes to use for the last hop in the circuit, if possible.
  104. .TP
  105. \fBExcludeNodes \fR\fInickname,nickname,...\fP
  106. A list of nodes to never use when building a circuit.
  107. .TP
  108. \fBStrictExitNodes \fR\fI0|1\fP
  109. If 1, Tor will never use any nodes besides those listed in "exitnodes" for
  110. the last hop of a circuit.
  111. .TP
  112. \fBStrictEntryNodes \fR\fI0|1\fP
  113. If 1, Tor will never use any nodes besides those listed in "entrynodes" for
  114. the first hop of a circuit.
  115. .TP
  116. \fBFascistFirewall \fR\fI0|1\fP
  117. If 1, Tor will only create outgoing connections to ORs running on ports that
  118. your firewall allows (defaults to 80 and 443; see firewallports). This will
  119. allow you to run Tor as a client behind a firewall with restrictive policies,
  120. but will not allow you to run as a server behind such a firewall.
  121. .TP
  122. \fBFirewallPorts \fR\fIPORTS\fP
  123. A list of ports that your firewall allows you to connect to. Only used when
  124. fascistfirewall is set. (Default: 80, 443.)
  125. .TP
  126. \fB
  127. \fBNewCircuitPeriod \fR\fINUM\fP
  128. Every NUM seconds consider whether to build a new circuit. (Default: 60)
  129. .TP
  130. \fBNodeFamily \fR\fInickname,nickname,...\fP
  131. The named Tor servers constitute a "family" of similar or
  132. co-administared servers, so never use any two of them in the same
  133. circuit. This option can be used multiple times.
  134. .TP
  135. .\" \fBPathlenCoinWeight \fR\fI0.0-1.0\fP
  136. .\" 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
  137. .\" .TP
  138. \fBRendNodes \fR\fInickname,nickname,...\fP
  139. A list of preferred nodes to use for the rendezvous point, if possible.
  140. .TP
  141. \fBRendExcludeNodes \fR\fInickname,nickname,...\fP
  142. A list of nodes to never use when choosing a rendezvous point.
  143. .TP
  144. \fBSOCKSPort \fR\fIPORT\fP
  145. Bind to this port to listen for connections from SOCKS-speaking applications.
  146. Set this to 0 if you don't want to allow application connections. (Default:
  147. 9050)
  148. .TP
  149. \fBSOCKSBindAddress \fR\fIIP\fP
  150. 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.
  151. .TP
  152. \fBSOCKSPolicy \fR\fIpolicy,policy,...\fP
  153. 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.
  154. .SH SERVER OPTIONS
  155. .PP
  156. The following options are useful only for servers (that is, if \fBORPort\fP is non-zero):
  157. .TP
  158. \fBAddress \fR\fIaddress\fP
  159. The IP or fqdn of this server (e.g. moria.mit.edu).
  160. .TP
  161. \fBDataDirectory \fR\fIDIR\fP
  162. Store working data in DIR (Default: @LOCALSTATEDIR@/lib/tor)
  163. .TP
  164. \fBExitPolicy \fR\fIpolicy,policy,...\fP
  165. Set an exit policy for this server. Each policy is of the form
  166. "\fBreject\fP \fIADDR\fP\fB/\fP\fIMASK\fP\fB:\fP\fIPORT\fP".
  167. If \fB/\fP\fIMASK\fP is omitted then this policy just applies to the host
  168. given. Instead of giving a host or network you can also use "\fB*\fP" to
  169. denote the universe (0.0.0.0/0). \fIPORT\fP can either be a single port number
  170. or an interval of ports: "\fIFROM_PORT\fP\fB-\fP\fITO_PORT\fP".
  171. For example, "reject 127.0.0.1:*,reject 192.168.1.0/24:*,accept *:*" would
  172. reject any traffic destined for localhost and any 192.168.1.* address, but
  173. accept anything else.
  174. This directive can be specified multiple times so you don't have to put
  175. it all on one line.
  176. See RFC 3330 for more details about internal and reserved IP address
  177. space. The default exit policy is:
  178. .PD 0
  179. .RS 12
  180. .IP "reject 0.0.0.0/8" 0
  181. .IP "reject 169.254.0.0/16" 4
  182. .IP "reject 127.0.0.0/8"
  183. .IP "reject 192.168.0.0/16"
  184. .IP "reject 10.0.0.0/8"
  185. .IP "reject 172.16.0.0/12"
  186. .IP "accept *:20-22"
  187. .IP "accept *:53"
  188. .IP "accept *:79-81"
  189. .IP "accept *:110"
  190. .IP "accept *:143"
  191. .IP "accept *:443"
  192. .IP "accept *:873"
  193. .IP "accept *:993"
  194. .IP "accept *:995" 4
  195. .IP "reject *:4661-4662"
  196. .IP "reject *:1214"
  197. .IP "reject *:6346"
  198. .IP "accept *:1024-65535"
  199. .IP "reject *:*"
  200. .RE
  201. .PD
  202. .TP
  203. \fBMaxOnionsPending \fR\fINUM\fP
  204. If you have more than this number of onionskins queued for decrypt, reject new ones. (Default: 100)
  205. .TP
  206. \fBMyFamily \fR\fInickname,nickname,...\fP
  207. Declare that this Tor server is controlled or administered by a group
  208. or organization identical or similar to that of the other named servers.
  209. When two servers both declare that they are in the same 'family', Tor clients
  210. will not use them in the same circuit.
  211. .TP
  212. \fBNickname \fR\fIname\fP
  213. Set the server's nickname to 'name'.
  214. .TP
  215. \fBNumCPUs \fR\fInum\fP
  216. How many processes to use at once for decrypting onionskins. (Default: 1)
  217. .TP
  218. \fBORPort \fR\fIPORT\fP
  219. Bind to this port to listen for connections from Tor clients and servers.
  220. .TP
  221. \fBORBindAddress \fR\fIIP\fP
  222. Bind to this address to listen for connections from Tor clients and servers. (Default: 0.0.0.0)
  223. .TP
  224. \fBRedirectExit \fR\fIpattern target\fP
  225. Whenever an outgoing connection tries to connect to one of a given set
  226. of addresses, connect to \fItarget\fP (an \fIaddress:port\fP pair) instead.
  227. The address
  228. pattern is given in the same format as for an exit policy. The
  229. address translation applies after exit policies are applied. Multiple
  230. \fBRedirectExit\fP options can be used: once any one has matched
  231. successfully, no subsequent rules are considered. You can specify that no
  232. redirection is to be performed on a given set of addresses by using the
  233. special target string "pass", which prevents subsequent rules from being
  234. considered.
  235. .SH DIRECTORY SERVER OPTIONS
  236. .PP
  237. The following options are useful only for directory servers (that is, if \fBDirPort\fP is non-zero):
  238. .TP
  239. \fBAuthoritativeDirectory \fR\fI0|1\fP
  240. When this option is set to 1, Tor operates as an authoritative
  241. directory server. Instead of caching the directory, it generates its
  242. own list of good servers, signs it, and sends that to the clients.
  243. Unless the clients already have you listed as a trusted directory, you
  244. probably do not want to set this option. Please coordinate with the other
  245. admins at tor-ops@freehaven.net if you think you should be a directory.
  246. .TP
  247. \fBContactInfo \fR\fIemail address\fP
  248. Administrative contact information for server.
  249. .TP
  250. \fBDirPort \fR\fIPORT\fP
  251. Bind the directory service to this port.
  252. .TP
  253. \fBDirBindAddress \fR\fIIP\fP
  254. Bind the directory service to this address. (Default: 0.0.0.0)
  255. .TP
  256. \fBDirPolicy \fR\fIpolicy,policy,...\fP
  257. 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.
  258. .TP
  259. \fBRecommendedVersions \fR\fISTRING\fP
  260. STRING is a command-separated list of Tor versions currently believed
  261. to be safe. The list is included in each directory, and nodes which
  262. pull down the directory learn whether they need to upgrade. This
  263. option can appear multiple times: the values from multiple lines are
  264. spliced together.
  265. .TP
  266. \fBRunTesting \fR\fI0|1\fP
  267. If set to 1, Tor tries to build circuits through all of the servers it
  268. knows about, so it can tell which are up and which are down. This
  269. option is only useful for authoritative directories, so you probably
  270. don't want to use it.
  271. .SH HIDDEN SERVICE OPTIONS
  272. .PP
  273. The following options are used to configure a hidden service.
  274. .TP
  275. \fBHiddenServiceDir \fR\fIDIRECTORY\fP
  276. Store data files for a hidden service in DIRECTORY. Every hidden
  277. service must have a separate directory. You may use this option multiple
  278. times to specify multiple services.
  279. .TP
  280. \fBHiddenServicePort \fR\fIVIRTPORT \fR[\fITARGET\fR]\fP
  281. Configure a virtual port VIRTPORT for a hidden service. You may use this
  282. option multiple times; each time applies to the service using the most recent
  283. hiddenservicedir. By default, this option maps the virtual port to the
  284. same port on 127.0.0.1. You may override the target port, address, or both
  285. by specifying a target of addr, port, or addr:port.
  286. .TP
  287. \fBHiddenServiceNodes \fR\fInickname,nicknamme,...\fP
  288. If possible, use the specified nodes as introduction points for the hidden
  289. service.
  290. .TP
  291. \fBHiddenServiceExcludeNodes \fR\fInickname,nicknamme,...\fP
  292. Do not use the specified nodes as introduction points for the hidden
  293. service.
  294. .\" UNDOCUMENTED
  295. .\" ignoreversion
  296. .SH FILES
  297. .TP
  298. .I @CONFDIR@/torrc
  299. The configuration file, which contains "option value" pairs.
  300. .TP
  301. .I @CONFDIR@/dirservers
  302. A list of directory servers, to bootstrap into the network.
  303. .TP
  304. .I @LOCALSTATEDIR@/lib/tor/
  305. The tor process stores keys and other data here.
  306. .SH SEE ALSO
  307. .BR privoxy (1),
  308. .BR tsocks (1)
  309. .BR http://freehaven.net/tor/
  310. .SH BUGS
  311. Plenty, probably. It's still in alpha. Please report them.
  312. .SH AUTHORS
  313. Roger Dingledine <arma@mit.edu>, Nick Mathewson <nickm@alum.mit.edu>.