mention that Address doesn't need to be set
[tor.git] / doc / tor.1.in
bloba086948df13d8562a12914c95bfb778f8fdef251
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.
89 .SH CLIENT OPTIONS
90 .PP
91 The following options are useful only for clients (that is, if \fBSOCKSPort\fP is non-zero):
92 .TP
93 \fBAllowUnverifiedNodes\fR \fBentry\fR|\fBexit\fR|\fBmiddle\fR|\fBintroduction\fR|\fBrendezvous\fR|...\fP
94 Where on our circuits should we allow Tor servers that the directory
95 servers haven't authenticated as "verified"?  (Default: middle,rendezvous.)
96 .TP
97 \fBDirFetchPostPeriod \fR\fIseconds\fP
98 Every N seconds, Tor downloads a fresh directory, and re-uploads
99 information about hidden services to the directory servers.  If
100 running as a server, Tor also re-uploads information about itself to
101 the directory servers.  (Tor also uploads this information whenever it
102 changes.)  (Default: 600.)
104 \fBClientOnly \fR\fB0\fR|\fB1\fR\fP
105 If set to 1, Tor will under no circumstances run as a server.  (Usually,
106 you don't need to set this; Tor is pretty smart at figuring out whether
107 you are reliable and high-bandwidth enough to be a good server.)
109 \fBEntryNodes \fR\fInickname,nickname,...\fP
110 A list of preferred nodes to use for the first hop in the circuit, if possible.
112 \fBExitNodes \fR\fInickname,nickname,...\fP
113 A list of preferred nodes to use for the last hop in the circuit, if possible.
115 \fBExcludeNodes \fR\fInickname,nickname,...\fP
116 A list of nodes to never use when building a circuit.
118 \fBStrictExitNodes \fR\fB0\fR|\fB1\fR\fP
119 If 1, Tor will never use any nodes besides those listed in "exitnodes" for
120 the last hop of a circuit.
122 \fBStrictEntryNodes \fR\fB0\fR|\fB1\fR\fP
123 If 1, Tor will never use any nodes besides those listed in "entrynodes" for
124 the first hop of a circuit.
126 \fBFascistFirewall \fR\fB0\fR|\fB1\fR\fP
127 If 1, Tor will only create outgoing connections to ORs running on ports that
128 your firewall allows (defaults to 80 and 443; see \fBFirewallPorts\fR).  This will
129 allow you to run Tor as a client behind a firewall with restrictive policies,
130 but will not allow you to run as a server behind such a firewall.
132 \fBFirewallPorts \fR\fIPORTS\fP
133 A list of ports that your firewall allows you to connect to.  Only used when
134 \fBFascistFirewall\fR is set. (Default: 80, 443.)
137 \fBNewCircuitPeriod \fR\fINUM\fP
138 Every NUM seconds consider whether to build a new circuit. (Default: 60)
140 \fBNodeFamily \fR\fInickname,nickname,...\fP
141 The named Tor servers constitute a "family" of similar or co-administered
142 servers, so never use any two of them in the same circuit. Defining a
143 NodeFamily is only needed when a server doesn't list the family itself
144 (with MyFamily). This option can be used multiple times.
146 .\" \fBPathlenCoinWeight \fR\fI0.0-1.0\fP
147 .\" 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
148 .\" .TP
149 \fBRendNodes \fR\fInickname,nickname,...\fP
150 A list of preferred nodes to use for the rendezvous point, if possible.
152 \fBRendExcludeNodes \fR\fInickname,nickname,...\fP
153 A list of nodes to never use when choosing a rendezvous point.
155 \fBSOCKSPort \fR\fIPORT\fP
156 Bind to this port to listen for connections from SOCKS-speaking applications.
157 Set this to 0 if you don't want to allow application connections. (Default:
158 9050)
160 \fBSOCKSBindAddress \fR\fIIP\fP
161 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.
163 \fBSOCKSPolicy \fR\fIpolicy,policy,...\fP
164 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.
166 .SH SERVER OPTIONS
168 The following options are useful only for servers (that is, if \fBORPort\fP is non-zero):
170 \fBAddress \fR\fIaddress\fP
171 The IP or fqdn of this server (e.g. moria.mit.edu). You can leave this
172 unset, and Tor will guess your IP.
174 \fBContactInfo \fR\fIemail address\fP
175 Administrative contact information for server.
177 \fBExitPolicy \fR\fIpolicy,policy,...\fP
178 Set an exit policy for this server. Each policy is of the form
179 "\fBreject\fP \fIADDR\fP\fB/\fP\fIMASK\fP\fB:\fP\fIPORT\fP".
180 If \fB/\fP\fIMASK\fP is omitted then this policy just applies to the host
181 given.  Instead of giving a host or network you can also use "\fB*\fP" to
182 denote the universe (0.0.0.0/0).  \fIPORT\fP can either be a single port number
183 or an interval of ports: "\fIFROM_PORT\fP\fB-\fP\fITO_PORT\fP".
185 For example, "reject 127.0.0.1:*,reject 192.168.1.0/24:*,accept *:*" would
186 reject any traffic destined for localhost and any 192.168.1.* address, but
187 accept anything else.
189 This directive can be specified multiple times so you don't have to put
190 it all on one line.
192 See RFC 3330 for more details about internal and reserved IP address
193 space. The default exit policy is:
194 .PD 0
195 .RS 12
196 .IP "reject 0.0.0.0/8" 0
197 .IP "reject 169.254.0.0/16" 4
198 .IP "reject 127.0.0.0/8"
199 .IP "reject 192.168.0.0/16"
200 .IP "reject 10.0.0.0/8"
201 .IP "reject 172.16.0.0/12"
202 .IP "accept *:20-22"
203 .IP "accept *:53"
204 .IP "accept *:79-81"
205 .IP "accept *:110"
206 .IP "accept *:143"
207 .IP "accept *:443"
208 .IP "accept *:873"
209 .IP "accept *:993"
210 .IP "accept *:995" 4
211 .IP "reject *:4661-4662"
212 .IP "reject *:1214"
213 .IP "reject *:6346"
214 .IP "accept *:1024-65535"
215 .IP "reject *:*"
219 \fBMaxOnionsPending \fR\fINUM\fP
220 If you have more than this number of onionskins queued for decrypt, reject new ones. (Default: 100)
222 \fBMyFamily \fR\fInickname,nickname,...\fP
223 Declare that this Tor server is controlled or administered by a group
224 or organization identical or similar to that of the other named servers.
225 When two servers both declare that they are in the same 'family', Tor clients
226 will not use them in the same circuit.
228 \fBNickname \fR\fIname\fP
229 Set the server's nickname to 'name'.
231 \fBNumCPUs \fR\fInum\fP
232 How many processes to use at once for decrypting onionskins. (Default: 1)
234 \fBORPort \fR\fIPORT\fP
235 Bind to this port to listen for connections from Tor clients and servers.
237 \fBORBindAddress \fR\fIIP\fP
238 Bind to this address to listen for connections from Tor clients and servers. (Default: 0.0.0.0)
240 \fBRedirectExit \fR\fIpattern target\fP
241 Whenever an outgoing connection tries to connect to one of a given set
242 of addresses, connect to \fItarget\fP (an \fIaddress:port\fP pair) instead.
243 The address
244 pattern is given in the same format as for an exit policy.  The
245 address translation applies after exit policies are applied.  Multiple
246 \fBRedirectExit\fP options can be used: once any one has matched
247 successfully, no subsequent rules are considered.  You can specify that no
248 redirection is to be performed on a given set of addresses by using the
249 special target string "pass", which prevents subsequent rules from being
250 considered.
252 \fBAccountingMaxKB \fR\fInum\fP
253 Never send or receive more than \fInum\fP kilobytes in a given
254 accounting period (currently, only months are supported).  When the
255 number of kilobytes is exhausted, Tor will hibernate until some time
256 in the next accounting period.  If you have bandwidth cost issues,
257 using this option is preferable to setting a low bandwidth, since it
258 provides users with a collection of fast servers that are up some of
259 the time, which is more useful than a set of slow servers that are
260 always "available".
262 \fBMonthlyAccountingStart \fR\fIday\fP
263 Always start the accounting period on the provided day of the month,
264 which must be between 1 and 28.  (Defaults to 1.)
266 .SH DIRECTORY SERVER OPTIONS
268 The following options are useful only for directory servers (that is, if \fBDirPort\fP is non-zero):
270 \fBAuthoritativeDirectory \fR\fB0\fR|\fB1\fR\fP
271 When this option is set to 1, Tor operates as an authoritative
272 directory server.  Instead of caching the directory, it generates its
273 own list of good servers, signs it, and sends that to the clients.
274 Unless the clients already have you listed as a trusted directory, you
275 probably do not want to set this option.  Please coordinate with the other
276 admins at tor-ops@freehaven.net if you think you should be a directory.
278 \fBDirPort \fR\fIPORT\fP
279 Bind the directory service to this port.
281 \fBDirBindAddress \fR\fIIP\fP
282 Bind the directory service to this address. (Default: 0.0.0.0)
284 \fBDirPolicy \fR\fIpolicy,policy,...\fP
285 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.
287 \fBRecommendedVersions \fR\fISTRING\fP
288 STRING is a command-separated list of Tor versions currently believed
289 to be safe. The list is included in each directory, and nodes which
290 pull down the directory learn whether they need to upgrade.  This
291 option can appear multiple times: the values from multiple lines are
292 spliced together.
294 \fBRunTesting \fR\fB0\fR|\fB1\fR\fP
295 If set to 1, Tor tries to build circuits through all of the servers it
296 knows about, so it can tell which are up and which are down.  This
297 option is only useful for authoritative directories, so you probably
298 don't want to use it.
300 .SH HIDDEN SERVICE OPTIONS
302 The following options are used to configure a hidden service.
304 \fBHiddenServiceDir \fR\fIDIRECTORY\fP
305 Store data files for a hidden service in DIRECTORY.  Every hidden
306 service must have a separate directory.  You may use this option multiple
307 times to specify multiple services.
309 \fBHiddenServicePort \fR\fIVIRTPORT \fR[\fITARGET\fR]\fP
310 Configure a virtual port VIRTPORT for a hidden service.  You may use this
311 option multiple times; each time applies to the service using the most recent
312 hiddenservicedir.  By default, this option maps the virtual port to the
313 same port on 127.0.0.1.  You may override the target port, address, or both
314 by specifying a target of addr, port, or addr:port.
316 \fBHiddenServiceNodes \fR\fInickname,nickname,...\fP
317 If possible, use the specified nodes as introduction points for the hidden
318 service.
320 \fBHiddenServiceExcludeNodes \fR\fInickname,nickname,...\fP
321 Do not use the specified nodes as introduction points for the hidden
322 service.
324 .\" UNDOCUMENTED
325 .\" ignoreversion
327 .SH FILES
329 .I @CONFDIR@/torrc
330 The configuration file, which contains "option value" pairs.
332 .I @CONFDIR@/dirservers
333 A list of directory servers, to bootstrap into the network.
335 .I @LOCALSTATEDIR@/lib/tor/
336 The tor process stores keys and other data here.
338 .SH SEE ALSO
339 .BR privoxy (1),
340 .BR tsocks (1),
341 .BR torify (1)
343 .BR http://freehaven.net/tor/
345 .SH BUGS
346 Plenty, probably. It's still in alpha. Please report them.
347 .SH AUTHORS
348 Roger Dingledine <arma@mit.edu>, Nick Mathewson <nickm@alum.mit.edu>.