Our new favored MS build environment is vc7/visual studio .net; vc6 is just too broken.
[tor.git] / doc / tor.1.in
blobcc827588d805bd6a57678cb800a42e7e94bf12d2
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 \fBDataDirectory \fR\fIDIR\fP
51 Store working data in DIR (Default: @LOCALSTATEDIR@/lib/tor)
52 .TP
53 \fBDirServer \fR\fIaddress:port fingerprint\fP
54 Use a nonstandard authoritative directory server at the provided
55 address and port, with the specified key fingerprint.  This option can
56 be repeated many times, for multiple authoritative directory
57 servers. If no \fBdirserver\fP line is given, Tor will use the default
58 directory servers: moria1, moria2, and tor26.
59 .TP
60 \fBGroup \fR\fIGID\fP
61 On startup, setgid to this user.
62 .TP
63 \fBHttpProxy\fR \fIhost\fR[:\fIport\fR]\fP
64 If set, Tor will make all its directory requests through this host:port,
65 rather than connecting directly to any directory servers.
66 .TP
67 \fBKeepalivePeriod \fR\fINUM\fP
68 To keep firewalls from expiring connections, send a padding keepalive
69 cell on open connections every NUM seconds. (Default: 300)
70 .TP
71 \fBMaxConn \fR\fINUM\fP
72 Maximum number of simultaneous sockets allowed.  You probably don't need
73 to adjust this. (Default: 1024)
74 .TP
75 \fBOutboundBindAddress \fR\fIIP\fP
76 Make all outbound connections originate from the IP address specified.  This
77 is only useful when you have multiple network interfaces, and you want all
78 of Tor's outgoing connections to use a single one.
79 .TP
80 \fBPIDFile \fR\fIFILE\fP
81 On startup, write our PID to FILE. On clean shutdown, remove FILE.
82 .TP
83 \fBRunAsDaemon \fR\fB0\fR|\fB1\fR\fP
84 If 1, Tor forks and daemonizes to the background. (Default: 0)
85 .TP
86 \fBUser \fR\fIUID\fP
87 On startup, setuid to this user.
88 .TP
89 \fBControlPort \fR\fIPort\fP
90 If set, Tor will accept connections from the same machine (localhost only) on
91 this port, and allow those connections to control the Tor process using the
92 Tor Control Protocol (described in control-spec.txt).  Note: unless you also
93 specify one of \fBHashedControlPassword\fP or \fBCookieAuthentication\fP,
94 setting this option will cause Tor to allow any process on the local host to
95 control it.
96 .TP
97 \fBHashedControlPassword \fR\fIhashed_password\fP
98 Don't allow any connections on the control port except when the other process
99 knows the password whose one-way hash is \fIhashed_password\fP.  You can
100 compute the hash of a password by running "tor --hash-password
101 \fIpassword\fP".
103 \fBCookieAuthentication \fR\fB0\fR|\fB1\fP
104 If this option is set to 1, don't allow any connections on the control port
105 except when the connecting process knows the contents of a file named
106 "control_auth_cookie", which Tor will create in its data directory.  This
107 authentication methods should only be used on systems with good filesystem
108 security.
110 .SH CLIENT OPTIONS
112 The following options are useful only for clients (that is, if \fBSOCKSPort\fP is non-zero):
114 \fBAllowUnverifiedNodes\fR \fBentry\fR|\fBexit\fR|\fBmiddle\fR|\fBintroduction\fR|\fBrendezvous\fR|...\fP
115 Where on our circuits should we allow Tor servers that the directory
116 servers haven't authenticated as "verified"?  (Default: middle,rendezvous.)
118 \fBDirFetchPostPeriod \fR\fIseconds\fP
119 Every N seconds, Tor downloads a fresh directory, and re-uploads
120 information about hidden services to the directory servers.  If
121 running as a server, Tor also re-uploads information about itself to
122 the directory servers.  (Tor also uploads this information whenever it
123 changes.)  (Default: 600.)
125 \fBClientOnly \fR\fB0\fR|\fB1\fR\fP
126 If set to 1, Tor will under no circumstances run as a server.  (Usually,
127 you don't need to set this; Tor is pretty smart at figuring out whether
128 you are reliable and high-bandwidth enough to be a good server.)
130 \fBEntryNodes \fR\fInickname,nickname,...\fP
131 A list of preferred nodes to use for the first hop in the circuit, if possible.
133 \fBExitNodes \fR\fInickname,nickname,...\fP
134 A list of preferred nodes to use for the last hop in the circuit, if possible.
136 \fBExcludeNodes \fR\fInickname,nickname,...\fP
137 A list of nodes to never use when building a circuit.
139 \fBStrictExitNodes \fR\fB0\fR|\fB1\fR\fP
140 If 1, Tor will never use any nodes besides those listed in "exitnodes" for
141 the last hop of a circuit.
143 \fBStrictEntryNodes \fR\fB0\fR|\fB1\fR\fP
144 If 1, Tor will never use any nodes besides those listed in "entrynodes" for
145 the first hop of a circuit.
147 \fBFascistFirewall \fR\fB0\fR|\fB1\fR\fP
148 If 1, Tor will only create outgoing connections to ORs running on ports that
149 your firewall allows (defaults to 80 and 443; see \fBFirewallPorts\fR).  This will
150 allow you to run Tor as a client behind a firewall with restrictive policies,
151 but will not allow you to run as a server behind such a firewall.
153 \fBFirewallPorts \fR\fIPORTS\fP
154 A list of ports that your firewall allows you to connect to.  Only used when
155 \fBFascistFirewall\fR is set. (Default: 80, 443.)
158 \fBNewCircuitPeriod \fR\fINUM\fP
159 Every NUM seconds consider whether to build a new circuit. (Default: 60)
161 \fBNodeFamily \fR\fInickname,nickname,...\fP
162 The named Tor servers constitute a "family" of similar or co-administered
163 servers, so never use any two of them in the same circuit. Defining a
164 NodeFamily is only needed when a server doesn't list the family itself
165 (with MyFamily). This option can be used multiple times.
167 .\" \fBPathlenCoinWeight \fR\fI0.0-1.0\fP
168 .\" 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
169 .\" .TP
170 \fBRendNodes \fR\fInickname,nickname,...\fP
171 A list of preferred nodes to use for the rendezvous point, if possible.
173 \fBRendExcludeNodes \fR\fInickname,nickname,...\fP
174 A list of nodes to never use when choosing a rendezvous point.
176 \fBSOCKSPort \fR\fIPORT\fP
177 Bind to this port to listen for connections from SOCKS-speaking applications.
178 Set this to 0 if you don't want to allow application connections. (Default:
179 9050)
181 \fBSOCKSBindAddress \fR\fIIP\fP
182 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.
184 \fBSOCKSPolicy \fR\fIpolicy,policy,...\fP
185 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.
187 .SH SERVER OPTIONS
189 The following options are useful only for servers (that is, if \fBORPort\fP is non-zero):
191 \fBAddress \fR\fIaddress\fP
192 The IP or fqdn of this server (e.g. moria.mit.edu). You can leave this
193 unset, and Tor will guess your IP.
195 \fBContactInfo \fR\fIemail address\fP
196 Administrative contact information for server.
198 \fBExitPolicy \fR\fIpolicy,policy,...\fP
199 Set an exit policy for this server. Each policy is of the form
200 "\fBreject\fP \fIADDR\fP\fB/\fP\fIMASK\fP\fB:\fP\fIPORT\fP".
201 If \fB/\fP\fIMASK\fP is omitted then this policy just applies to the host
202 given.  Instead of giving a host or network you can also use "\fB*\fP" to
203 denote the universe (0.0.0.0/0).  \fIPORT\fP can either be a single port number
204 or an interval of ports: "\fIFROM_PORT\fP\fB-\fP\fITO_PORT\fP".
206 For example, "reject 127.0.0.1:*,reject 192.168.1.0/24:*,accept *:*" would
207 reject any traffic destined for localhost and any 192.168.1.* address, but
208 accept anything else.
210 This directive can be specified multiple times so you don't have to put
211 it all on one line.
213 See RFC 3330 for more details about internal and reserved IP address
214 space. The default exit policy is:
215 .PD 0
216 .RS 12
217 .IP "reject 0.0.0.0/8" 0
218 .IP "reject 169.254.0.0/16" 4
219 .IP "reject 127.0.0.0/8"
220 .IP "reject 192.168.0.0/16"
221 .IP "reject 10.0.0.0/8"
222 .IP "reject 172.16.0.0/12"
223 .IP "accept *:20-22"
224 .IP "accept *:53"
225 .IP "accept *:79-81"
226 .IP "accept *:110"
227 .IP "accept *:143"
228 .IP "accept *:443"
229 .IP "accept *:873"
230 .IP "accept *:993"
231 .IP "accept *:995" 4
232 .IP "reject *:4661-4662"
233 .IP "reject *:1214"
234 .IP "reject *:6346"
235 .IP "accept *:1024-65535"
236 .IP "reject *:*"
240 \fBMaxOnionsPending \fR\fINUM\fP
241 If you have more than this number of onionskins queued for decrypt, reject new ones. (Default: 100)
243 \fBMyFamily \fR\fInickname,nickname,...\fP
244 Declare that this Tor server is controlled or administered by a group
245 or organization identical or similar to that of the other named servers.
246 When two servers both declare that they are in the same 'family', Tor clients
247 will not use them in the same circuit.  (Each server only need to list the
248 other servers in its family; it doesn't need to list itself.)
250 \fBNickname \fR\fIname\fP
251 Set the server's nickname to 'name'.
253 \fBNumCPUs \fR\fInum\fP
254 How many processes to use at once for decrypting onionskins. (Default: 1)
256 \fBORPort \fR\fIPORT\fP
257 Bind to this port to listen for connections from Tor clients and servers.
259 \fBORBindAddress \fR\fIIP\fP
260 Bind to this address to listen for connections from Tor clients and servers. (Default: 0.0.0.0)
262 \fBRedirectExit \fR\fIpattern target\fP
263 Whenever an outgoing connection tries to connect to one of a given set
264 of addresses, connect to \fItarget\fP (an \fIaddress:port\fP pair) instead.
265 The address
266 pattern is given in the same format as for an exit policy.  The
267 address translation applies after exit policies are applied.  Multiple
268 \fBRedirectExit\fP options can be used: once any one has matched
269 successfully, no subsequent rules are considered.  You can specify that no
270 redirection is to be performed on a given set of addresses by using the
271 special target string "pass", which prevents subsequent rules from being
272 considered.
274 \fBAccountingMaxKB \fR\fInum\fP
275 Never send or receive more than \fInum\fP kilobytes in a given
276 accounting period (currently, only months are supported).  When the
277 number of kilobytes is exhausted, Tor will hibernate until some time
278 in the next accounting period.  If you have bandwidth cost issues,
279 using this option is preferable to setting a low bandwidth, since it
280 provides users with a collection of fast servers that are up some of
281 the time, which is more useful than a set of slow servers that are
282 always "available".
284 \fBMonthlyAccountingStart \fR\fIday\fP
285 Always start the accounting period on the provided day of the month,
286 which must be between 1 and 28.  (Defaults to 1.)
288 .SH DIRECTORY SERVER OPTIONS
290 The following options are useful only for directory servers (that is, if \fBDirPort\fP is non-zero):
292 \fBAuthoritativeDirectory \fR\fB0\fR|\fB1\fR\fP
293 When this option is set to 1, Tor operates as an authoritative
294 directory server.  Instead of caching the directory, it generates its
295 own list of good servers, signs it, and sends that to the clients.
296 Unless the clients already have you listed as a trusted directory, you
297 probably do not want to set this option.  Please coordinate with the other
298 admins at tor-ops@freehaven.net if you think you should be a directory.
300 \fBDirPort \fR\fIPORT\fP
301 Bind the directory service to this port.
303 \fBDirBindAddress \fR\fIIP\fP
304 Bind the directory service to this address. (Default: 0.0.0.0)
306 \fBDirPolicy \fR\fIpolicy,policy,...\fP
307 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.
309 \fBRecommendedVersions \fR\fISTRING\fP
310 STRING is a command-separated list of Tor versions currently believed
311 to be safe. The list is included in each directory, and nodes which
312 pull down the directory learn whether they need to upgrade.  This
313 option can appear multiple times: the values from multiple lines are
314 spliced together.
316 \fBRunTesting \fR\fB0\fR|\fB1\fR\fP
317 If set to 1, Tor tries to build circuits through all of the servers it
318 knows about, so it can tell which are up and which are down.  This
319 option is only useful for authoritative directories, so you probably
320 don't want to use it.
322 .SH HIDDEN SERVICE OPTIONS
324 The following options are used to configure a hidden service.
326 \fBHiddenServiceDir \fR\fIDIRECTORY\fP
327 Store data files for a hidden service in DIRECTORY.  Every hidden
328 service must have a separate directory.  You may use this option multiple
329 times to specify multiple services.
331 \fBHiddenServicePort \fR\fIVIRTPORT \fR[\fITARGET\fR]\fP
332 Configure a virtual port VIRTPORT for a hidden service.  You may use this
333 option multiple times; each time applies to the service using the most recent
334 hiddenservicedir.  By default, this option maps the virtual port to the
335 same port on 127.0.0.1.  You may override the target port, address, or both
336 by specifying a target of addr, port, or addr:port.
338 \fBHiddenServiceNodes \fR\fInickname,nickname,...\fP
339 If possible, use the specified nodes as introduction points for the hidden
340 service.
342 \fBHiddenServiceExcludeNodes \fR\fInickname,nickname,...\fP
343 Do not use the specified nodes as introduction points for the hidden
344 service.
346 .\" UNDOCUMENTED
347 .\" ignoreversion
349 .SH FILES
351 .I @CONFDIR@/torrc
352 The configuration file, which contains "option value" pairs.
354 .I @CONFDIR@/dirservers
355 A list of directory servers, to bootstrap into the network.
357 .I @LOCALSTATEDIR@/lib/tor/
358 The tor process stores keys and other data here.
360 .SH SEE ALSO
361 .BR privoxy (1),
362 .BR tsocks (1),
363 .BR torify (1)
365 .BR http://freehaven.net/tor/
367 .SH BUGS
368 Plenty, probably. It's still in alpha. Please report them.
369 .SH AUTHORS
370 Roger Dingledine <arma@mit.edu>, Nick Mathewson <nickm@alum.mit.edu>.