tor.1.in 12 KB

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