tor.1.in 11 KB

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