tor.1.in 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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. \fBpidfile \fR\fIFILE\fP
  51. On startup, write our PID to FILE. On clean shutdown, remove FILE.
  52. .TP
  53. \fBrouterfile \fR\fIFILE\fP
  54. FILE contains a list of directory servers, to bootstrap into the network. (Default: @CONFDIR@/dirservers)
  55. .TP
  56. \fBrunasdaemon \fR\fI0|1\fP
  57. If 1, Tor forks and daemonizes to the background. (Default: 0)
  58. .TP
  59. \fBuser \fR\fIUID\fP
  60. On startup, setuid to this user.
  61. .SH CLIENT OPTIONS
  62. .PP
  63. The following options are useful only for clients (that is, if \fBsocksport\fP is non-zero):
  64. .TP
  65. \fBentrynodes \fR\fInickname,nickname,...\fP
  66. A list of preferred nodes to use for the first hop in the circuit, if possible.
  67. .TP
  68. \fBexitnodes \fR\fInickname,nickname,...\fP
  69. A list of preferred nodes to use for the last hop in the circuit, if possible.
  70. .TP
  71. \fBexcludenodes \fR\fInickname,nickname,...\fP
  72. A list of nodes to never use when building a circuit.
  73. .TP
  74. \fBstrictexitnodes \fR\fI0|1\fP
  75. If 1, Tor will never use any nodes besides those listed in "exitnodes" for
  76. the last hop of a circuit.
  77. .TP
  78. \fBstrictentrynodes \fR\fI0|1\fP
  79. If 1, Tor will never use any nodes besides those listed in "entrynodes" for
  80. the first hop of a circuit.
  81. .TP
  82. \fBnewcircuitperiod \fR\fINUM\fP
  83. Every NUM seconds consider whether to build a new circuit. (Default: 60)
  84. .TP
  85. \fBpathlencoinweight \fR\fI0.0-1.0\fP
  86. 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
  87. .TP
  88. \fBsocksport \fR\fIPORT\fP
  89. Bind to this port to listen for connections from socks-speaking applications.
  90. .TP
  91. \fBsocksbindaddress \fR\fIIP\fP
  92. 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.
  93. .TP
  94. \fBsockspolicy \fR\fIpolicy,policy,...\fP
  95. 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.
  96. .SH SERVER OPTIONS
  97. .PP
  98. The following options are useful only for servers (that is, if \fBorport\fP is non-zero):
  99. .TP
  100. \fBaddress \fR\fIaddress\fP
  101. The IP or fqdn of this server (e.g. moria.mit.edu).
  102. .TP
  103. \fBdatadirectory \fR\fIDIR\fP
  104. Store working data in DIR (Default: @LOCALSTATEDIR@/lib/tor)
  105. .TP
  106. \fBexitpolicy \fR\fIpolicy,policy,...\fP
  107. Set an exit policy for this server. Each policy is of the form
  108. "\fBreject\fP \fIADDR\fP\fB/\fP\fIMASK\fP\fB:\fP\fIPORT\fP".
  109. If \fB/\fP\fIMASK\fP is omitted then this policy just applies to the host
  110. given. Instead of giving a host or network you can also use "\fB*\fP" to
  111. denote the universe (0.0.0.0/0). \fIPORT\fP can either be a single port number
  112. or an interval of ports: "\fIFROM_PORT\fP\fB-\fP\fITO_PORT\fP".
  113. For example, "reject 127.0.0.1:*,reject 192.168.1.0/24:*,accept *:*" would
  114. reject any traffic destined for localhost and any 192.168.1.* address, but
  115. accept anything else.
  116. This directive can be specified multiple times so you don't have to put
  117. it all on one line.
  118. See RFC 3330 for more details about internal and reserved IP address
  119. space. The default exit policy is:
  120. .PD 0
  121. .RS 12
  122. .IP "reject 0.0.0.0/8" 0
  123. .IP "reject 169.254.0.0/16" 4
  124. .IP "reject 127.0.0.0/8"
  125. .IP "reject 192.168.0.0/16"
  126. .IP "reject 10.0.0.0/8"
  127. .IP "reject 172.16.0.0/12"
  128. .IP "accept *:20-22"
  129. .IP "accept *:53"
  130. .IP "accept *:79-81"
  131. .IP "accept *:110"
  132. .IP "accept *:143"
  133. .IP "accept *:443"
  134. .IP "accept *:873"
  135. .IP "accept *:993"
  136. .IP "accept *:995" 4
  137. .IP "reject *:4661-4662"
  138. .IP "reject *:1214"
  139. .IP "reject *:6346"
  140. .IP "accept *:1024-65535"
  141. .IP "reject *:*"
  142. .RE
  143. .PD
  144. .TP
  145. \fBmaxonionspending \fR\fINUM\fP
  146. If you have more than this number of onionskins queued for decrypt, reject new ones. (Default: 100)
  147. .TP
  148. \fBnickname \fR\fIname\fP
  149. Set the server's nickname to 'name'.
  150. .TP
  151. \fBnumcpus \fR\fInum\fP
  152. How many processes to use at once for decrypting onionskins. (Default: 1)
  153. .TP
  154. \fBorport \fR\fIPORT\fP
  155. Bind to this port to listen for connections from Tor clients and servers.
  156. .TP
  157. \fBorbindaddress \fR\fIIP\fP
  158. Bind to this address to listen for connections from Tor clients and servers. (Default: 0.0.0.0)
  159. .SH DIRECTORY SERVER OPTIONS
  160. .PP
  161. The following options are useful only for directory servers (that is, if \fBdirport\fP is non-zero):
  162. .TP
  163. \fBdirport \fR\fIPORT\fP
  164. Bind the directory service to this port.
  165. .TP
  166. \fBdirbindaddress \fR\fIIP\fP
  167. Bind the directory service to this address. (Default: 0.0.0.0)
  168. .TP
  169. \fBrecommendedversions \fR\fISTRING\fP
  170. 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.
  171. .SH HIDDEN SERVER OPTIONS
  172. .PP
  173. The following options are used to configure a hidden service.
  174. .TP
  175. \fBhiddenservicedir \fR\fIDIRECTORY\fP
  176. Store data files for a hidden service in DIRECTORY. Every hidden
  177. service must have a separate directory. You may use this option multiple
  178. times to specify multiple services.
  179. .TP
  180. \fBhiddenserviceport \fR\fIVIRTPORT \fR[\fITARGET\fR]\fP
  181. Configure a virtual port VIRTPORT for a hidden service. You may use this
  182. option multiple times; each time applies to the service using the most recent
  183. hiddenservicedir. By default, this option maps the virtual port to the
  184. same port on 127.0.0.1. You may override the target port, address, or both
  185. by specifying a target of addr, port, or addr:port.
  186. .TP
  187. \fBhiddenservicenodes \fR\fInickname,nicknamme,...\fP
  188. If possible, use the specified nodes as introduction points for the hidden
  189. service.
  190. .TP
  191. \fBhiddenserviceexcludenodes \fR\fInickname,nicknamme,...\fP
  192. Do not use the specified nodes as introduction points for the hidden
  193. service.
  194. .SH FILES
  195. .TP
  196. .I @CONFDIR@/torrc
  197. The configuration file, which contains "option value" pairs.
  198. .TP
  199. .I @CONFDIR@/dirservers
  200. A list of directory servers, to bootstrap into the network.
  201. .TP
  202. .I @LOCALSTATEDIR@/lib/tor/
  203. The tor process stores keys and other data here.
  204. .SH SEE ALSO
  205. .BR privoxy (1),
  206. .BR tsocks (1)
  207. .BR http://freehaven.net/tor/
  208. .SH BUGS
  209. Plenty, probably. It's still in alpha. Please report them.
  210. .SH AUTHORS
  211. Roger Dingledine <arma@mit.edu>, Nick Mathewson <nickm@alum.mit.edu>.