1 // Copyright (c) The Tor Project, Inc.
2 // See LICENSE for licensing information
3 // This is an asciidoc file used to generate the manpage/html reference.
4 // Learn asciidoc on https://www.methods.co.nz/asciidoc/userguide.html
6 :man manual: Tor Manual
7 // compat-mode tells Asciidoctor tools to process this as legacy AsciiDoc
9 // attribute to make it easier to write names containing double underscores
16 tor - The second-generation onion router
20 **tor** [__OPTION__ __value__]...
24 Tor is a connection-oriented anonymizing communication service. Users
25 choose a source-routed path through a set of nodes, and negotiate a
26 "virtual circuit" through the network. Each node in a virtual circuit
27 knows its predecessor and successor nodes, but no other nodes. Traffic
28 flowing down the circuit is unwrapped by a symmetric key at each node,
29 which reveals the downstream node. +
31 Basically, Tor provides a distributed network of servers or relays
32 ("onion routers"). Users bounce their TCP streams, including web
33 traffic, ftp, ssh, etc., around the network, so that recipients,
34 observers, and even the relays themselves have difficulty tracking the
38 By default, **tor** acts as a client only. To help the network by
39 providing bandwidth as a relay, change the **ORPort** configuration
40 option as mentioned below. Please also consult the documentation on
41 the Tor Project's website.
43 == COMMAND-LINE OPTIONS
45 Tor has a powerful command-line interface. This section lists optional
46 arguments you can specify at the command line using the **`tor`**
49 Configuration options can be specified on the command line in the
50 format **`--`**_OptionName_ _OptionValue_, on the command line in the
51 format _OptionName_ _OptionValue_, or in a configuration file. For
52 instance, you can tell Tor to start listening for SOCKS connections on
53 port 9999 by passing either **`--SocksPort 9999`** or **`SocksPort
54 9999`** on the command line, or by specifying **`SocksPort 9999`** in
55 the configuration file. On the command line, quote option values that
56 contain spaces. For instance, if you want Tor to log all debugging
57 messages to **`debug.log`**, you must specify **`--Log "debug file
60 NOTE: Configuration options on the command line override those in
61 configuration files. See **<<conf-format,THE CONFIGURATION FILE
62 FORMAT>>** for more information.
64 The following options in this section are only recognized on the
65 **`tor`** command line, not in a configuration file.
67 [[opt-h]] **`-h`**, **`--help`**::
68 Display a short help message and exit.
70 [[opt-f]] **`-f`**, **`--torrc-file`** __FILE__::
71 Specify a new configuration file to contain further Tor configuration
72 options, or pass *-* to make Tor read its configuration from standard
73 input. (Default: **`@CONFDIR@/torrc`**, or **`$HOME/.torrc`** if
74 that file is not found.)
76 [[opt-allow-missing-torrc]] **`--allow-missing-torrc`**::
77 Allow the configuration file specified by **`-f`** to be missing,
78 if the defaults-torrc file (see below) is accessible.
80 [[opt-defaults-torrc]] **`--defaults-torrc`** __FILE__::
81 Specify a file in which to find default values for Tor options. The
82 contents of this file are overridden by those in the regular
83 configuration file, and by those on the command line. (Default:
84 **`@CONFDIR@/torrc-defaults`**.)
86 [[opt-ignore-missing-torrc]] **`--ignore-missing-torrc`**::
87 Specify that Tor should treat a missing torrc file as though it
88 were empty. Ordinarily, Tor does this for missing default torrc files,
89 but not for those specified on the command line.
91 [[opt-hash-password]] **`--hash-password`** __PASSWORD__::
92 Generate a hashed password for control port access.
94 [[opt-list-fingerprint]] **`--list-fingerprint`** [__key type__]::
95 Generate your keys and output your nickname and fingerprint. Optionally,
96 you can specify the key type as `rsa` (default) or `ed25519`.
98 [[opt-verify-config]] **`--verify-config`**::
99 Verify whether the configuration file is valid.
101 [[opt-dump-config]] **`--dump-config`** **`short`**|**`full`**::
102 Write a list of Tor's configured options to standard output.
103 When the `short` flag is selected, only write the options that
104 are different from their default values.
105 When `full` is selected, write every option.
107 [[opt-serviceinstall]] **`--service install`** [**`--options`** __command-line options__]::
108 Install an instance of Tor as a Windows service, with the provided
109 command-line options. Current instructions can be found at
110 https://www.torproject.org/docs/faq#NTService
112 [[opt-service]] **`--service`** **`remove`**|**`start`**|**`stop`**::
113 Remove, start, or stop a configured Tor Windows service.
115 [[opt-nt-service]] **`--nt-service`**::
116 Used internally to implement a Windows service.
118 [[opt-list-torrc-options]] **`--list-torrc-options`**::
119 List all valid options.
121 [[opt-list-deprecated-options]] **`--list-deprecated-options`**::
122 List all valid options that are scheduled to become obsolete in a
123 future version. (This is a warning, not a promise.)
125 [[opt-list-modules]] **`--list-modules`**::
126 List whether each optional module has been compiled into Tor.
127 (Any module not listed is not optional in this version of Tor.)
129 [[opt-version]] **`--version`**::
130 Display Tor version and exit. The output is a single line of the format
131 "Tor version [version number]." (The version number format
132 is as specified in version-spec.txt.)
134 [[opt-quiet]] **`--quiet`**|**`--hush`**::
135 Override the default console logging behavior. By default, Tor
136 starts out logging messages at level "notice" and higher to the
137 console. It stops doing so after it parses its configuration, if
138 the configuration tells it to log anywhere else. These options
139 override the default console logging behavior. Use the
140 **`--hush`** option if you want Tor to log only warnings and
141 errors to the console, or use the **`--quiet`** option if you want
142 Tor not to log to the console at all.
144 [[opt-keygen]] **`--keygen`** [**`--newpass`**]::
145 Running **`tor --keygen`** creates a new ed25519 master identity key
146 for a relay, or only a fresh temporary signing key and
147 certificate, if you already have a master key. Optionally, you
148 can encrypt the master identity key with a passphrase. When Tor
149 asks you for a passphrase and you don't want to encrypt the master
150 key, just don't enter any passphrase when asked. +
152 Use the **`--newpass`** option with **`--keygen`** only when you
153 need to add, change, or remove a passphrase on an existing ed25519
154 master identity key. You will be prompted for the old passphrase
155 (if any), and the new passphrase (if any).
158 When generating a master key, you may want to use
159 **`--DataDirectory`** to control where the keys and certificates
160 will be stored, and **`--SigningKeyLifetime`** to control their
161 lifetimes. See <<server-options,SERVER OPTIONS>> to learn more about the
162 behavior of these options. You must have write access to the
163 specified DataDirectory.
166 To use the generated files, you must copy them to the
167 __DataDirectory__/**`keys`** directory of your Tor daemon, and
168 make sure that they are owned by the user actually running the Tor
169 daemon on your system.
171 **`--passphrase-fd`** __FILEDES__::
172 File descriptor to read the passphrase from. Note that unlike with the
173 tor-gencert program, the entire file contents are read and used as
174 the passphrase, including any trailing newlines.
175 If the file descriptor is not specified, the passphrase is read
176 from the terminal by default.
178 [[opt-key-expiration]] **`--key-expiration`** [__purpose__] [**`--format`** **`iso8601`**|**`timestamp`**]::
179 The __purpose__ specifies which type of key certificate to determine
180 the expiration of. The only currently recognised __purpose__ is
183 Running **`tor --key-expiration sign`** will attempt to find your
184 signing key certificate and will output, both in the logs as well
185 as to stdout. The optional **`--format`** argument lets you specify
186 the time format. Currently, **`iso8601`** and **`timestamp`** are
187 supported. If **`--format`** is not specified, the signing key
188 certificate's expiration time will be in ISO-8601 format. For example,
189 the output sent to stdout will be of the form:
190 "signing-cert-expiry: 2017-07-25 08:30:15 UTC". If **`--format`** **`timestamp`**
191 is specified, the signing key certificate's expiration time will be in
192 Unix timestamp format. For example, the output sent to stdout will be of the form:
193 "signing-cert-expiry: 1500971415".
195 [[opt-dbg]] **--dbg-**...::
196 Tor may support other options beginning with the string "dbg". These
197 are intended for use by developers to debug and test Tor. They are
198 not supported or guaranteed to be stable, and you should probably
203 == THE CONFIGURATION FILE FORMAT
205 All configuration options in a configuration are written on a single line by
206 default. They take the form of an option name and a value, or an option name
207 and a quoted value (option value or option "value"). Anything after a #
208 character is treated as a comment. Options are
209 case-insensitive. C-style escaped characters are allowed inside quoted
210 values. To split one configuration entry into multiple lines, use a single
211 backslash character (\) before the end of the line. Comments can be used in
212 such multiline entries, but they must start at the beginning of a line.
214 Configuration options can be imported from files or folders using the %include
215 option with the value being a path. This path can have wildcards. Wildcards are
216 expanded first, then sorted using lexical order. Then, for each matching file or
217 folder, the following rules are followed: if the path is a file, the options from
218 the file will be parsed as if they were written where the %include option is. If
219 the path is a folder, all files on that folder will be parsed following lexical
220 order. Files starting with a dot are ignored. Files in subfolders are ignored.
221 The %include option can be used recursively.
222 New configuration files or directories cannot be added to already running Tor
223 instance if **Sandbox** is enabled.
225 The supported wildcards are * meaning any number of characters including none
226 and ? meaning exactly one character. These characters can be escaped by preceding
227 them with a backslash, except on Windows. Files starting with a dot are not matched
228 when expanding wildcards unless the starting dot is explicitly in the pattern, except
231 By default, an option on the command line overrides an option found in the
232 configuration file, and an option in a configuration file overrides one in
235 This rule is simple for options that take a single value, but it can become
236 complicated for options that are allowed to occur more than once: if you
237 specify four SocksPorts in your configuration file, and one more SocksPort on
238 the command line, the option on the command line will replace __all__ of the
239 SocksPorts in the configuration file. If this isn't what you want, prefix
240 the option name with a plus sign (+), and it will be appended to the previous
241 set of options instead. For example, setting SocksPort 9100 will use only
242 port 9100, but setting +SocksPort 9100 will use ports 9100 and 9050 (because
243 this is the default).
245 Alternatively, you might want to remove every instance of an option in the
246 configuration file, and not replace it at all: you might want to say on the
247 command line that you want no SocksPorts at all. To do that, prefix the
248 option name with a forward slash (/). You can use the plus sign (+) and the
249 forward slash (/) in the configuration file and on the command line.
253 // These options are in alphabetical order, with exceptions as noted.
254 // Please keep them that way!
256 [[AccelDir]] **AccelDir** __DIR__::
257 Specify this option if using dynamic hardware acceleration and the engine
258 implementation library resides somewhere other than the OpenSSL default.
259 Can not be changed while tor is running.
261 [[AccelName]] **AccelName** __NAME__::
262 When using OpenSSL hardware crypto acceleration attempt to load the dynamic
263 engine of this name. This must be used for any dynamic hardware engine.
264 Names can be verified with the openssl engine command. Can not be changed
265 while tor is running. +
267 If the engine name is prefixed with a "!", then Tor will exit if the
268 engine cannot be loaded.
270 [[AlternateBridgeAuthority]] **AlternateBridgeAuthority** [__nickname__] [**flags**] __ipv4address__:__port__ __ fingerprint__::
271 [[AlternateDirAuthority]] **AlternateDirAuthority** [__nickname__] [**flags**] __ipv4address__:__port__ __fingerprint__::
272 These options behave as DirAuthority, but they replace fewer of the
273 default directory authorities. Using
274 AlternateDirAuthority replaces the default Tor directory authorities, but
275 leaves the default bridge authorities in
277 AlternateBridgeAuthority replaces the default bridge authority,
278 but leaves the directory authorities alone.
280 [[AvoidDiskWrites]] **AvoidDiskWrites** **0**|**1**::
281 If non-zero, try to write to disk less frequently than we would otherwise.
282 This is useful when running on flash memory or other media that support
283 only a limited number of writes. (Default: 0)
285 [[BandwidthBurst]] **BandwidthBurst** __N__ **bytes**|**KBytes**|**MBytes**|**GBytes**|**TBytes**|**KBits**|**MBits**|**GBits**|**TBits**::
286 Limit the maximum token bucket size (also known as the burst) to the given
287 number of bytes in each direction. (Default: 1 GByte)
289 [[BandwidthRate]] **BandwidthRate** __N__ **bytes**|**KBytes**|**MBytes**|**GBytes**|**TBytes**|**KBits**|**MBits**|**GBits**|**TBits**::
290 A token bucket limits the average incoming bandwidth usage on this node
291 to the specified number of bytes per second, and the average outgoing
292 bandwidth usage to that same value. If you want to run a relay in the
293 public network, this needs to be _at the very least_ 75 KBytes for a
294 relay (that is, 600 kbits) or 50 KBytes for a bridge (400 kbits) -- but of
295 course, more is better; we recommend at least 250 KBytes (2 mbits) if
296 possible. (Default: 1 GByte) +
298 Note that this option, and other bandwidth-limiting options, apply to TCP
299 data only: They do not count TCP headers or DNS traffic. +
301 Tor uses powers of two, not powers of ten, so 1 GByte is
302 1024*1024*1024 bytes as opposed to 1 billion bytes. +
304 With this option, and in other options that take arguments in bytes,
305 KBytes, and so on, other formats are also supported. Notably, "KBytes" can
306 also be written as "kilobytes" or "kb"; "MBytes" can be written as
307 "megabytes" or "MB"; "kbits" can be written as "kilobits"; and so forth.
309 Tor also accepts "byte" and "bit" in the singular.
310 The prefixes "tera" and "T" are also recognized.
311 If no units are given, we default to bytes.
312 To avoid confusion, we recommend writing "bytes" or "bits" explicitly,
313 since it's easy to forget that "B" means bytes, not bits.
315 [[CacheDirectory]] **CacheDirectory** __DIR__::
316 Store cached directory data in DIR. Can not be changed while tor is
318 (Default: uses the value of DataDirectory.)
320 [[CacheDirectoryGroupReadable]] **CacheDirectoryGroupReadable** **0**|**1**|**auto**::
321 If this option is set to 0, don't allow the filesystem group to read the
322 CacheDirectory. If the option is set to 1, make the CacheDirectory readable
323 by the default GID. If the option is "auto", then we use the
324 setting for DataDirectoryGroupReadable when the CacheDirectory is the
325 same as the DataDirectory, and 0 otherwise. (Default: auto)
327 [[CircuitPriorityHalflife]] **CircuitPriorityHalflife** __NUM__::
328 If this value is set, we override the default algorithm for choosing which
329 circuit's cell to deliver or relay next. It is delivered first to the
330 circuit that has the lowest weighted cell count, where cells are weighted
331 exponentially according to this value (in seconds). If the value is -1, it
332 is taken from the consensus if possible else it will fallback to the
333 default value of 30. Minimum: 1, Maximum: 2147483647. This can be defined
334 as a float value. This is an advanced option; you generally shouldn't have
335 to mess with it. (Default: -1)
337 [[ClientTransportPlugin]] **ClientTransportPlugin** __transport__ socks4|socks5 __IP__:__PORT__::
338 [[ClientTransportPlugin-2]] **ClientTransportPlugin** __transport__ exec __path-to-binary__ [options]::
339 In its first form, when set along with a corresponding Bridge line, the Tor
340 client forwards its traffic to a SOCKS-speaking proxy on "IP:PORT".
341 (IPv4 addresses should written as-is; IPv6 addresses should be wrapped in
342 square brackets.) It's the
343 duty of that proxy to properly forward the traffic to the bridge. +
345 In its second form, when set along with a corresponding Bridge line, the Tor
346 client launches the pluggable transport proxy executable in
347 __path-to-binary__ using __options__ as its command-line options, and
348 forwards its traffic to it. It's the duty of that proxy to properly forward
349 the traffic to the bridge. (Default: none)
351 [[ConfluxEnabled]] **ConfluxEnabled** **0**|**1**|**auto**::
352 If this option is set to 1, general purpose traffic will use Conflux which
353 is traffic splitting among multiple legs (circuits). Onion services are not
354 supported at the moment. Default value is set to "auto" meaning the
355 consensus is used to decide unless set. (Default: auto)
357 [[ConfluxClientUX]] **ConfluxClientUX** **throughput**|**latency**|**throughput_lowmem**|**latency_lowmem**::
358 This option configures the user experience that the client requests from
359 the exit, for data that the exit sends to the client. The default is
360 "throughput", which maximizes throughput. "Latency" will tell the exit to
361 only use the circuit with lower latency for all data. The lowmem versions
362 minimize queue usage memory at the client. (Default: "throughput")
364 [[ConnLimit]] **ConnLimit** __NUM__::
365 The minimum number of file descriptors that must be available to the Tor
366 process before it will start. Tor will ask the OS for as many file
367 descriptors as the OS will allow (you can find this by "ulimit -H -n").
368 If this number is less than ConnLimit, then Tor will refuse to start. +
370 Tor relays need thousands of sockets, to connect to every other relay.
371 If you are running a private bridge, you can reduce the number of sockets
372 that Tor uses. For example, to limit Tor to 500 sockets, run
373 "ulimit -n 500" in a shell. Then start tor in the same shell, with
374 **ConnLimit 500**. You may also need to set **DisableOOSCheck 0**. +
376 Unless you have severely limited sockets, you probably don't need to
377 adjust **ConnLimit** itself. It has no effect on Windows, since that
378 platform lacks getrlimit(). (Default: 1000)
380 [[ConstrainedSockets]] **ConstrainedSockets** **0**|**1**::
381 If set, Tor will tell the kernel to attempt to shrink the buffers for all
382 sockets to the size specified in **ConstrainedSockSize**. This is useful for
383 virtual servers and other environments where system level TCP buffers may
384 be limited. If you're on a virtual server, and you encounter the "Error
385 creating network socket: No buffer space available" message, you are
386 likely experiencing this problem. +
388 The preferred solution is to have the admin increase the buffer pool for
389 the host itself via /proc/sys/net/ipv4/tcp_mem or equivalent facility;
390 this configuration option is a second-resort. +
392 The DirPort option should also not be used if TCP buffers are scarce. The
393 cached directory requests consume additional sockets which exacerbates
396 You should **not** enable this feature unless you encounter the "no buffer
397 space available" issue. Reducing the TCP buffers affects window size for
398 the TCP stream and will reduce throughput in proportion to round trip
399 time on long paths. (Default: 0)
401 [[ConstrainedSockSize]] **ConstrainedSockSize** __N__ **bytes**|**KBytes**::
402 When **ConstrainedSockets** is enabled the receive and transmit buffers for
403 all sockets will be set to this limit. Must be a value between 2048 and
404 262144, in 1024 byte increments. Default of 8192 is recommended.
406 [[ControlPort]] **ControlPort** ['address'**:**]{empty}__port__|**unix:**__path__|**auto** [__flags__]::
407 If set, Tor will accept connections on this port and allow those
408 connections to control the Tor process using the Tor Control Protocol
409 (described in control-spec.txt in
410 https://spec.torproject.org[torspec]). Note: unless you also
411 specify one or more of **HashedControlPassword** or
412 **CookieAuthentication**, setting this option will cause Tor to allow
413 any process on the local host to control it. (Setting both authentication
414 methods means either method is sufficient to authenticate to Tor.) This
415 option is required for many Tor controllers; most use the value of 9051.
416 If a unix domain socket is used, you may quote the path using standard
417 C escape sequences. You can specify this directive multiple times, to
418 bind to multiple address/port pairs.
419 Set it to "auto" to have Tor pick a port for you. (Default: 0) +
421 Recognized flags are:
423 Unix domain sockets only: makes the socket get created as
426 Unix domain sockets only: makes the socket get created as
428 **RelaxDirModeCheck**;;
429 Unix domain sockets only: Do not insist that the directory
430 that holds the socket be read-restricted.
432 [[ControlPortFileGroupReadable]] **ControlPortFileGroupReadable** **0**|**1**::
433 If this option is set to 0, don't allow the filesystem group to read the
434 control port file. If the option is set to 1, make the control port
435 file readable by the default GID. (Default: 0)
437 [[ControlPortWriteToFile]] **ControlPortWriteToFile** __Path__::
438 If set, Tor writes the address and port of any control port it opens to
439 this address. Usable by controllers to learn the actual control port
440 when ControlPort is set to "auto".
442 [[ControlSocket]] **ControlSocket** __Path__::
443 Like ControlPort, but listens on a Unix domain socket, rather than a TCP
444 socket. '0' disables ControlSocket. (Unix and Unix-like systems only.)
447 [[ControlSocketsGroupWritable]] **ControlSocketsGroupWritable** **0**|**1**::
448 If this option is set to 0, don't allow the filesystem group to read and
449 write unix sockets (e.g. ControlSocket). If the option is set to 1, make
450 the control socket readable and writable by the default GID. (Default: 0)
452 [[CookieAuthentication]] **CookieAuthentication** **0**|**1**::
453 If this option is set to 1, allow connections on the control port
454 when the connecting process knows the contents of a file named
455 "control_auth_cookie", which Tor will create in its data directory. This
456 authentication method should only be used on systems with good filesystem
457 security. (Default: 0)
459 [[CookieAuthFile]] **CookieAuthFile** __Path__::
460 If set, this option overrides the default location and file name
461 for Tor's cookie file. (See <<CookieAuthentication,CookieAuthentication>>.)
463 [[CookieAuthFileGroupReadable]] **CookieAuthFileGroupReadable** **0**|**1**::
464 If this option is set to 0, don't allow the filesystem group to read the
465 cookie file. If the option is set to 1, make the cookie file readable by
466 the default GID. [Making the file readable by other groups is not yet
467 implemented; let us know if you need this for some reason.] (Default: 0)
469 [[CountPrivateBandwidth]] **CountPrivateBandwidth** **0**|**1**::
470 If this option is set, then Tor's rate-limiting applies not only to
471 remote connections, but also to connections to private addresses like
472 127.0.0.1 or 10.0.0.1. This is mostly useful for debugging
473 rate-limiting. (Default: 0)
475 [[DataDirectory]] **DataDirectory** __DIR__::
476 Store working data in DIR. Can not be changed while tor is running.
477 (Default: ~/.tor if your home directory is not /; otherwise,
478 @LOCALSTATEDIR@/lib/tor. On Windows, the default is
479 your ApplicationData folder.)
481 [[DataDirectoryGroupReadable]] **DataDirectoryGroupReadable** **0**|**1**::
482 If this option is set to 0, don't allow the filesystem group to read the
483 DataDirectory. If the option is set to 1, make the DataDirectory readable
484 by the default GID. (Default: 0)
486 [[DirAuthority]] **DirAuthority** [__nickname__] [**flags**] __ipv4address__:__dirport__ __fingerprint__::
487 Use a nonstandard authoritative directory server at the provided address
488 and port, with the specified key fingerprint. This option can be repeated
489 many times, for multiple authoritative directory servers. Flags are
490 separated by spaces, and determine what kind of an authority this directory
491 is. By default, an authority is not authoritative for any directory style
492 or version unless an appropriate flag is given. +
494 Tor will use this authority as a bridge authoritative directory if the
495 "bridge" flag is set. If a flag "orport=**orport**" is given, Tor will
496 use the given port when opening encrypted tunnels to the dirserver. If a
497 flag "weight=**num**" is given, then the directory server is chosen
498 randomly with probability proportional to that weight (default 1.0). If a
499 flag "v3ident=**fp**" is given, the dirserver is a v3 directory authority
500 whose v3 long-term signing key has the fingerprint **fp**. Lastly,
501 if an "ipv6=**[**__ipv6address__**]**:__orport__" flag is present, then
502 the directory authority is listening for IPv6 connections on the
503 indicated IPv6 address and OR Port. +
505 Tor will contact the authority at __ipv4address__ to
506 download directory documents. Clients always use the ORPort. Relays
507 usually use the DirPort, but will use the ORPort in some circumstances.
508 If an IPv6 ORPort is supplied, clients will also download directory
509 documents at the IPv6 ORPort, if they are configured to use IPv6. +
511 If no **DirAuthority** line is given, Tor will use the default directory
512 authorities. NOTE: this option is intended for setting up a private Tor
513 network with its own directory authorities. If you use it, you will be
514 distinguishable from other users, because you won't believe the same
517 [[DirAuthorityFallbackRate]] **DirAuthorityFallbackRate** __NUM__::
518 When configured to use both directory authorities and fallback
519 directories, the directory authorities also work as fallbacks. They are
520 chosen with their regular weights, multiplied by this number, which
521 should be 1.0 or less. The default is less than 1, to reduce load on
522 authorities. (Default: 0.1)
524 [[DisableAllSwap]] **DisableAllSwap** **0**|**1**::
525 If set to 1, Tor will attempt to lock all current and future memory pages,
526 so that memory cannot be paged out. Windows, OS X and Solaris are currently
527 not supported. We believe that this feature works on modern Gnu/Linux
528 distributions, and that it should work on *BSD systems (untested). This
529 option requires that you start your Tor as root, and you should use the
530 **User** option to properly reduce Tor's privileges.
531 Can not be changed while tor is running. (Default: 0)
533 [[DisableDebuggerAttachment]] **DisableDebuggerAttachment** **0**|**1**::
534 If set to 1, Tor will attempt to prevent basic debugging attachment attempts
535 by other processes. This may also keep Tor from generating core files if
536 it crashes. It has no impact for users who wish to attach if they
537 have CAP_SYS_PTRACE or if they are root. We believe that this feature
538 works on modern Gnu/Linux distributions, and that it may also work on *BSD
539 systems (untested). Some modern Gnu/Linux systems such as Ubuntu have the
540 kernel.yama.ptrace_scope sysctl and by default enable it as an attempt to
541 limit the PTRACE scope for all user processes by default. This feature will
542 attempt to limit the PTRACE scope for Tor specifically - it will not attempt
543 to alter the system wide ptrace scope as it may not even exist. If you wish
544 to attach to Tor with a debugger such as gdb or strace you will want to set
545 this to 0 for the duration of your debugging. Normal users should leave it
546 on. Disabling this option while Tor is running is prohibited. (Default: 1)
548 [[DisableNetwork]] **DisableNetwork** **0**|**1**::
549 When this option is set, we don't listen for or accept any connections
550 other than controller connections, and we close (and don't reattempt)
552 connections. Controllers sometimes use this option to avoid using
553 the network until Tor is fully configured. Tor will make still certain
554 network-related calls (like DNS lookups) as a part of its configuration
555 process, even if DisableNetwork is set. (Default: 0)
557 [[ExtendByEd25519ID]] **ExtendByEd25519ID** **0**|**1**|**auto**::
558 If this option is set to 1, we always try to include a relay's Ed25519 ID
559 when telling the preceding relay in a circuit to extend to it.
560 If this option is set to 0, we never include Ed25519 IDs when extending
561 circuits. If the option is set to "auto", we obey a
562 parameter in the consensus document. (Default: auto)
564 [[ExtORPort]] **ExtORPort** ['address'**:**]{empty}__port__|**auto**::
565 Open this port to listen for Extended ORPort connections from your
566 pluggable transports. +
567 (Default: **DataDirectory**/extended_orport_auth_cookie)
569 [[ExtORPortCookieAuthFile]] **ExtORPortCookieAuthFile** __Path__::
570 If set, this option overrides the default location and file name
571 for the Extended ORPort's cookie file -- the cookie file is needed
572 for pluggable transports to communicate through the Extended ORPort.
574 [[ExtORPortCookieAuthFileGroupReadable]] **ExtORPortCookieAuthFileGroupReadable** **0**|**1**::
575 If this option is set to 0, don't allow the filesystem group to read the
576 Extended OR Port cookie file. If the option is set to 1, make the cookie
577 file readable by the default GID. [Making the file readable by other
578 groups is not yet implemented; let us know if you need this for some
579 reason.] (Default: 0)
581 [[FallbackDir]] **FallbackDir** __ipv4address__:__dirport__ orport=__orport__ id=__fingerprint__ [weight=__num__] [ipv6=**[**__ipv6address__**]**:__orport__]::
582 When tor is unable to connect to any directory cache for directory info
583 (usually because it doesn't know about any yet) it tries a hard-coded
584 directory. Relays try one directory authority at a time. Clients try
585 multiple directory authorities and FallbackDirs, to avoid hangs on
586 startup if a hard-coded directory is down. Clients wait for a few seconds
587 between each attempt, and retry FallbackDirs more often than directory
588 authorities, to reduce the load on the directory authorities. +
590 FallbackDirs should be stable relays with stable IP addresses, ports,
591 and identity keys. They must have a DirPort. +
593 By default, the directory authorities are also FallbackDirs. Specifying a
594 FallbackDir replaces Tor's default hard-coded FallbackDirs (if any).
595 (See <<DirAuthority,DirAuthority>> for an explanation of each flag.)
597 [[FetchDirInfoEarly]] **FetchDirInfoEarly** **0**|**1**::
598 If set to 1, Tor will always fetch directory information like other
599 directory caches, even if you don't meet the normal criteria for fetching
600 early. Normal users should leave it off. (Default: 0)
602 [[FetchDirInfoExtraEarly]] **FetchDirInfoExtraEarly** **0**|**1**::
603 If set to 1, Tor will fetch directory information before other directory
604 caches. It will attempt to download directory information closer to the
605 start of the consensus period. Normal users should leave it off.
608 [[FetchHidServDescriptors]] **FetchHidServDescriptors** **0**|**1**::
609 If set to 0, Tor will never fetch any hidden service descriptors from the
610 rendezvous directories. This option is only useful if you're using a Tor
611 controller that handles hidden service fetches for you. (Default: 1)
613 [[FetchServerDescriptors]] **FetchServerDescriptors** **0**|**1**::
614 If set to 0, Tor will never fetch any network status summaries or server
615 descriptors from the directory servers. This option is only useful if
616 you're using a Tor controller that handles directory fetches for you.
619 [[FetchUselessDescriptors]] **FetchUselessDescriptors** **0**|**1**::
620 If set to 1, Tor will fetch every consensus flavor, and all server
621 descriptors and authority certificates referenced by those consensuses,
622 except for extra info descriptors. When this option is 1, Tor will also
623 keep fetching descriptors, even when idle.
624 If set to 0, Tor will avoid fetching useless descriptors: flavors that it
625 is not using to build circuits, and authority certificates it does not
626 trust. When Tor hasn't built any application circuits, it will go idle,
627 and stop fetching descriptors. This option is useful if you're using a
628 tor client with an external parser that uses a full consensus.
629 This option fetches all documents except extrainfo descriptors,
630 **DirCache** fetches and serves all documents except extrainfo
631 descriptors, **DownloadExtraInfo*** fetches extrainfo documents, and serves
632 them if **DirCache** is on, and **UseMicrodescriptors** changes the
633 flavor of consensuses and descriptors that is fetched and used for
634 building circuits. (Default: 0)
636 [[HardwareAccel]] **HardwareAccel** **0**|**1**::
637 If non-zero, try to use built-in (static) crypto hardware acceleration when
638 available. Can not be changed while tor is running. (Default: 0)
640 [[HashedControlPassword]] **HashedControlPassword** __hashed_password__::
641 Allow connections on the control port if they present
642 the password whose one-way hash is __hashed_password__. You
643 can compute the hash of a password by running "tor --hash-password
644 __password__". You can provide several acceptable passwords by using more
645 than one HashedControlPassword line.
647 [[HTTPProxy]] **HTTPProxy** __host__[:__port__]::
648 Tor will make all its directory requests through this host:port (or host:80
649 if port is not specified), rather than connecting directly to any directory
650 servers. (DEPRECATED: As of 0.3.1.0-alpha you should use HTTPSProxy.)
652 [[HTTPProxyAuthenticator]] **HTTPProxyAuthenticator** __username:password__::
653 If defined, Tor will use this username:password for Basic HTTP proxy
654 authentication, as in RFC 2617. This is currently the only form of HTTP
655 proxy authentication that Tor supports; feel free to submit a patch if you
656 want it to support others. (DEPRECATED: As of 0.3.1.0-alpha you should use
657 HTTPSProxyAuthenticator.)
659 [[HTTPSProxy]] **HTTPSProxy** __host__[:__port__]::
660 Tor will make all its OR (SSL) connections through this host:port (or
661 host:443 if port is not specified), via HTTP CONNECT rather than connecting
662 directly to servers. You may want to set **FascistFirewall** to restrict
663 the set of ports you might try to connect to, if your HTTPS proxy only
664 allows connecting to certain ports.
666 [[HTTPSProxyAuthenticator]] **HTTPSProxyAuthenticator** __username:password__::
667 If defined, Tor will use this username:password for Basic HTTPS proxy
668 authentication, as in RFC 2617. This is currently the only form of HTTPS
669 proxy authentication that Tor supports; feel free to submit a patch if you
670 want it to support others.
672 [[KeepalivePeriod]] **KeepalivePeriod** __NUM__::
673 To keep firewalls from expiring connections, send a padding keepalive cell
674 every NUM seconds on open connections that are in use. (Default: 5 minutes)
676 [[KeepBindCapabilities]] **KeepBindCapabilities** **0**|**1**|**auto**::
677 On Linux, when we are started as root and we switch our identity using
678 the **User** option, the **KeepBindCapabilities** option tells us whether to
679 try to retain our ability to bind to low ports. If this value is 1, we
680 try to keep the capability; if it is 0 we do not; and if it is **auto**,
681 we keep the capability only if we are configured to listen on a low port.
682 Can not be changed while tor is running.
685 [[Log]] **Log** __minSeverity__[-__maxSeverity__] **stderr**|**stdout**|**syslog**::
686 Send all messages between __minSeverity__ and __maxSeverity__ to the standard
687 output stream, the standard error stream, or to the system log. (The
688 "syslog" value is only supported on Unix.) Recognized severity levels are
689 debug, info, notice, warn, and err. We advise using "notice" in most cases,
690 since anything more verbose may provide sensitive information to an
691 attacker who obtains the logs. If only one severity level is given, all
692 messages of that level or higher will be sent to the listed destination. +
694 Some low-level logs may be sent from signal handlers, so their destination
695 logs must be signal-safe. These low-level logs include backtraces,
696 logging function errors, and errors in code called by logging functions.
697 Signal-safe logs are always sent to stderr or stdout. They are also sent to
698 a limited number of log files that are configured to log messages at error
699 severity from the bug or general domains. They are never sent as syslogs,
700 control port log events, or to any API-based log
703 [[Log2]] **Log** __minSeverity__[-__maxSeverity__] **file** __FILENAME__::
704 As above, but send log messages to the listed filename. The
705 "Log" option may appear more than once in a configuration file.
706 Messages are sent to all the logs that match their severity
709 [[Log3]] **Log** **[**__domain__,...**]**__minSeverity__[-__maxSeverity__] ... **file** __FILENAME__ +
711 [[Log4]] **Log** **[**__domain__,...**]**__minSeverity__[-__maxSeverity__] ... **stderr**|**stdout**|**syslog**::
712 As above, but select messages by range of log severity __and__ by a
713 set of "logging domains". Each logging domain corresponds to an area of
714 functionality inside Tor. You can specify any number of severity ranges
715 for a single log statement, each of them prefixed by a comma-separated
716 list of logging domains. You can prefix a domain with $$~$$ to indicate
717 negation, and use * to indicate "all domains". If you specify a severity
718 range without a list of domains, it matches all domains. +
720 This is an advanced feature which is most useful for debugging one or two
721 of Tor's subsystems at a time. +
723 The currently recognized domains are: general, crypto, net, config, fs,
724 protocol, mm, http, app, control, circ, rend, bug, dir, dirserv, or, edge,
725 acct, hist, handshake, heartbeat, channel, sched, guard, consdiff, dos,
726 process, pt, btrack, and mesg.
727 Domain names are case-insensitive. +
729 For example, "`Log [handshake]debug [~net,~mm]info notice stdout`" sends
730 to stdout: all handshake messages of any severity, all info-and-higher
731 messages from domains other than networking and memory management, and all
732 messages of severity notice or higher.
734 [[LogMessageDomains]] **LogMessageDomains** **0**|**1**::
735 If 1, Tor includes message domains with each log message. Every log
736 message currently has at least one domain; most currently have exactly
737 one. This doesn't affect controller log messages. (Default: 0)
739 [[LogTimeGranularity]] **LogTimeGranularity** __NUM__::
740 Set the resolution of timestamps in Tor's logs to NUM milliseconds.
741 NUM must be positive and either a divisor or a multiple of 1 second.
742 Note that this option only controls the granularity written by Tor to
743 a file or console log. Tor does not (for example) "batch up" log
744 messages to affect times logged by a controller, times attached to
745 syslog messages, or the mtime fields on log files. (Default: 1 second)
747 [[MaxAdvertisedBandwidth]] **MaxAdvertisedBandwidth** __N__ **bytes**|**KBytes**|**MBytes**|**GBytes**|**TBytes**|**KBits**|**MBits**|**GBits**|**TBits**::
748 If set, we will not advertise more than this amount of bandwidth for our
749 BandwidthRate. Server operators who want to reduce the number of clients
750 who ask to build circuits through them (since this is proportional to
751 advertised bandwidth rate) can thus reduce the CPU demands on their server
752 without impacting network performance.
754 [[MaxUnparseableDescSizeToLog]] **MaxUnparseableDescSizeToLog** __N__ **bytes**|**KBytes**|**MBytes**|**GBytes**|**TBytes**::
755 Unparseable descriptors (e.g. for votes, consensuses, routers) are logged
756 in separate files by hash, up to the specified size in total. Note that
757 only files logged during the lifetime of this Tor process count toward the
758 total; this is intended to be used to debug problems without opening live
759 servers to resource exhaustion attacks. (Default: 10 MBytes)
761 [[MetricsPort]] **MetricsPort** ['address'**:**]{empty}__port__ [__format__]::
762 WARNING: Before enabling this, it is important to understand that exposing
763 tor metrics publicly is dangerous to the Tor network users. Please take
764 extra precaution and care when opening this port. Set a very strict access
765 policy with MetricsPortPolicy and consider using your operating systems
766 firewall features for defense in depth.
768 We recommend, for the prometheus __format__, that the only address that
769 can access this port should be the Prometheus server itself. Remember that
770 the connection is unencrypted (HTTP) hence consider using a tool like
771 stunnel to secure the link from this port to the server.
773 If set, open this port to listen for an HTTP GET request to "/metrics".
774 Upon a request, the collected metrics in the the tor instance are
775 formatted for the given format and then sent back. If this is set,
776 MetricsPortPolicy must be defined else every request will be rejected.
778 Supported format is "prometheus" which is also the default if not set. The
779 Prometheus data model can be found here:
780 https://prometheus.io/docs/concepts/data_model/
782 The tor metrics are constantly collected and they solely consists of
783 counters. Thus, asking for those metrics is very lightweight on the tor
784 process. (Default: None)
786 As an example, here only 5.6.7.8 will be allowed to connect:
788 MetricsPort 1.2.3.4:9035
789 MetricsPortPolicy accept 5.6.7.8
791 [[MetricsPortPolicy]] **MetricsPortPolicy** __policy__,__policy__,__...__::
792 Set an entrance policy for the **MetricsPort**, to limit who can access
793 it. The policies have the same form as exit policies below, except that
794 port specifiers are ignored. For multiple entries, this line can be used
795 multiple times. It is a reject all by default policy. (Default: None)
797 Please, keep in mind here that if the server collecting metrics on the
798 MetricsPort is behind a NAT, then everything behind it can access it. This
799 is similar for the case of allowing localhost, every users on the server
800 will be able to access it. Again, strongly consider using a tool like
801 stunnel to secure the link or to strengthen access control.
803 [[NoExec]] **NoExec** **0**|**1**::
804 If this option is set to 1, then Tor will never launch another
805 executable, regardless of the settings of ClientTransportPlugin
806 or ServerTransportPlugin. Once this option has been set to 1,
807 it cannot be set back to 0 without restarting Tor. (Default: 0)
809 [[OutboundBindAddress]] **OutboundBindAddress** __IP__::
810 Make all outbound connections originate from the IP address specified. This
811 is only useful when you have multiple network interfaces, and you want all
812 of Tor's outgoing connections to use a single one. This option may
813 be used twice, once with an IPv4 address and once with an IPv6 address.
814 IPv6 addresses should be wrapped in square brackets.
815 This setting will be ignored for connections to the loopback addresses
816 (127.0.0.0/8 and ::1), and is not used for DNS requests as well.
818 [[OutboundBindAddressExit]] **OutboundBindAddressExit** __IP__::
819 Make all outbound exit connections originate from the IP address
820 specified. This option overrides **OutboundBindAddress** for the
821 same IP version. This option may be used twice, once with an IPv4
822 address and once with an IPv6 address.
823 IPv6 addresses should be wrapped in square brackets.
824 This setting will be ignored
825 for connections to the loopback addresses (127.0.0.0/8 and ::1).
827 [[OutboundBindAddressOR]] **OutboundBindAddressOR** __IP__::
828 Make all outbound non-exit (relay and other) connections
829 originate from the IP address specified. This option overrides
830 **OutboundBindAddress** for the same IP version. This option may
831 be used twice, once with an IPv4 address and once with an IPv6
832 address. IPv6 addresses should be wrapped in square brackets.
833 This setting will be ignored for connections to the loopback
834 addresses (127.0.0.0/8 and ::1).
836 [[OwningControllerProcess]] **{dbl_}OwningControllerProcess** __PID__::
837 Make Tor instance periodically check for presence of a controller process
838 with given PID and terminate itself if this process is no longer alive.
839 Polling interval is 15 seconds.
841 [[PerConnBWBurst]] **PerConnBWBurst** __N__ **bytes**|**KBytes**|**MBytes**|**GBytes**|**TBytes**|**KBits**|**MBits**|**GBits**|**TBits**::
842 If this option is set manually, or via the "perconnbwburst" consensus
843 field, Tor will use it for separate rate limiting for each connection
844 from a non-relay. (Default: 0)
846 [[PerConnBWRate]] **PerConnBWRate** __N__ **bytes**|**KBytes**|**MBytes**|**GBytes**|**TBytes**|**KBits**|**MBits**|**GBits**|**TBits**::
847 If this option is set manually, or via the "perconnbwrate" consensus
848 field, Tor will use it for separate rate limiting for each connection
849 from a non-relay. (Default: 0)
851 [[OutboundBindAddressPT]] **OutboundBindAddressPT** __IP__::
852 Request that pluggable transports makes all outbound connections
853 originate from the IP address specified. Because outgoing connections
854 are handled by the pluggable transport itself, it is not possible for
855 Tor to enforce whether the pluggable transport honors this option. This
856 option overrides **OutboundBindAddress** for the same IP version. This
857 option may be used twice, once with an IPv4 address and once with an
858 IPv6 address. IPv6 addresses should be wrapped in square brackets. This
859 setting will be ignored for connections to the loopback addresses
860 (127.0.0.0/8 and ::1).
862 [[PidFile]] **PidFile** __FILE__::
863 On startup, write our PID to FILE. On clean shutdown, remove
864 FILE. Can not be changed while tor is running.
866 [[ProtocolWarnings]] **ProtocolWarnings** **0**|**1**::
867 If 1, Tor will log with severity \'warn' various cases of other parties not
868 following the Tor specification. Otherwise, they are logged with severity
869 \'info'. (Default: 0)
871 [[RelayBandwidthBurst]] **RelayBandwidthBurst** __N__ **bytes**|**KBytes**|**MBytes**|**GBytes**|**TBytes**|**KBits**|**MBits**|**GBits**|**TBits**::
872 If not 0, limit the maximum token bucket size (also known as the burst) for
873 \_relayed traffic_ to the given number of bytes in each direction.
874 They do not include directory fetches by the relay (from authority
875 or other relays), because that is considered "client" activity. (Default: 0)
876 RelayBandwidthBurst defaults to the value of RelayBandwidthRate if unset.
878 [[RelayBandwidthRate]] **RelayBandwidthRate** __N__ **bytes**|**KBytes**|**MBytes**|**GBytes**|**TBytes**|**KBits**|**MBits**|**GBits**|**TBits**::
879 If not 0, a separate token bucket limits the average incoming bandwidth
880 usage for \_relayed traffic_ on this node to the specified number of bytes
881 per second, and the average outgoing bandwidth usage to that same value.
882 Relayed traffic currently is calculated to include answers to directory
883 requests, but that may change in future versions. They do not include directory
884 fetches by the relay (from authority or other relays), because that is considered
885 "client" activity. (Default: 0)
886 RelayBandwidthRate defaults to the value of RelayBandwidthBurst if unset.
888 [[RephistTrackTime]] **RephistTrackTime** __N__ **seconds**|**minutes**|**hours**|**days**|**weeks**::
889 Tells an authority, or other node tracking node reliability and history,
890 that fine-grained information about nodes can be discarded when it hasn't
891 changed for a given amount of time. (Default: 24 hours)
893 [[RunAsDaemon]] **RunAsDaemon** **0**|**1**::
894 If 1, Tor forks and daemonizes to the background. This option has no effect
895 on Windows; instead you should use the --service command-line option.
896 Can not be changed while tor is running.
899 [[SafeLogging]] **SafeLogging** **0**|**1**|**relay**::
900 Tor can scrub potentially sensitive strings from log messages (e.g.
901 addresses) by replacing them with the string [scrubbed]. This way logs can
902 still be useful, but they don't leave behind personally identifying
903 information about what sites a user might have visited. +
905 If this option is set to 0, Tor will not perform any scrubbing, if it is
906 set to 1, all potentially sensitive strings are replaced. If it is set to
907 relay, all log messages generated when acting as a relay are sanitized, but
908 all messages generated when acting as a client are not.
909 Note: Tor may not heed this option when logging at log levels below Notice.
912 [[Sandbox]] **Sandbox** **0**|**1**::
913 If set to 1, Tor will run securely through the use of a syscall sandbox.
914 Otherwise the sandbox will be disabled. The option only works on
915 Linux-based operating systems, and only when Tor has been built with the
916 libseccomp library. Note that this option may be incompatible with some
917 versions of libc, and some kernel versions. This option can not be
918 changed while tor is running. +
920 When the **Sandbox** is 1, the following options can not be changed when tor
925 **DirPortFrontPage**,
926 **ExtORPortCookieAuthFile**,
928 **ServerDNSResolvConfFile**,
929 **ClientOnionAuthDir** (and any files in it won't reload on HUP signal). +
931 Launching new Onion Services through the control port is not supported
932 with current syscall sandboxing implementation. +
934 Tor must remain in client or server mode (some changes to **ClientOnly**
935 and **ORPort** are not allowed). Currently, if **Sandbox** is 1,
936 **ControlPort** command "GETINFO address" will not work. +
938 When using %include in the tor configuration files, reloading the tor
939 configuration is not supported after adding new configuration files or
944 [[Schedulers]] **Schedulers** **KIST**|**KISTLite**|**Vanilla**::
945 Specify the scheduler type that tor should use. The scheduler is
946 responsible for moving data around within a Tor process. This is an ordered
947 list by priority which means that the first value will be tried first and if
948 unavailable, the second one is tried and so on. It is possible to change
949 these values at runtime. This option mostly effects relays, and most
950 operators should leave it set to its default value.
951 (Default: KIST,KISTLite,Vanilla) +
953 The possible scheduler types are:
955 **KIST**: Kernel-Informed Socket Transport. Tor will use TCP information
956 from the kernel to make informed decisions regarding how much data to send
957 and when to send it. KIST also handles traffic in batches (see
958 <<KISTSchedRunInterval,KISTSchedRunInterval>>) in order to improve traffic prioritization decisions.
959 As implemented, KIST will only work on Linux kernel version 2.6.39 or
962 **KISTLite**: Same as KIST but without kernel support. Tor will use all
963 the same mechanics as with KIST, including the batching, but its decisions
964 regarding how much data to send will not be as good. KISTLite will work on
965 all kernels and operating systems, and the majority of the benefits of KIST
966 are still realized with KISTLite. +
968 **Vanilla**: The scheduler that Tor used before KIST was implemented. It
969 sends as much data as possible, as soon as possible. Vanilla will work on
970 all kernels and operating systems.
972 // Out of order because it logically belongs near the Schedulers option
973 [[KISTSchedRunInterval]] **KISTSchedRunInterval** __NUM__ **msec**::
974 If KIST or KISTLite is used in the Schedulers option, this controls at which
975 interval the scheduler tick is. If the value is 0 msec, the value is taken
976 from the consensus if possible else it will fallback to the default 10
977 msec. Maximum possible value is 100 msec. (Default: 0 msec)
979 // Out of order because it logically belongs near the Schedulers option
980 [[KISTSockBufSizeFactor]] **KISTSockBufSizeFactor** __NUM__::
981 If KIST is used in Schedulers, this is a multiplier of the per-socket
982 limit calculation of the KIST algorithm. (Default: 1.0)
984 [[Socks4Proxy]] **Socks4Proxy** __host__[:__port__]::
985 Tor will make all OR connections through the SOCKS 4 proxy at host:port
986 (or host:1080 if port is not specified).
988 [[Socks5Proxy]] **Socks5Proxy** __host__[:__port__]::
989 Tor will make all OR connections through the SOCKS 5 proxy at host:port
990 (or host:1080 if port is not specified).
992 // Out of order because Username logically precedes Password
993 [[Socks5ProxyUsername]] **Socks5ProxyUsername** __username__ +
995 [[Socks5ProxyPassword]] **Socks5ProxyPassword** __password__::
996 If defined, authenticate to the SOCKS 5 server using username and password
997 in accordance to RFC 1929. Both username and password must be between 1 and
1000 [[SyslogIdentityTag]] **SyslogIdentityTag** __tag__::
1001 When logging to syslog, adds a tag to the syslog identity such that
1002 log entries are marked with "Tor-__tag__". Can not be changed while tor is
1003 running. (Default: none)
1005 [[TCPProxy]] **TCPProxy** __protocol__ __host__:__port__::
1006 Tor will use the given protocol to make all its OR (SSL) connections through
1007 a TCP proxy on host:port, rather than connecting directly to servers. You may
1008 want to set **FascistFirewall** to restrict the set of ports you might try to
1009 connect to, if your proxy only allows connecting to certain ports. There is no
1010 equivalent option for directory connections, because all Tor client versions
1011 that support this option download directory documents via OR connections. +
1013 The only protocol supported right now is 'haproxy'. This option is only for
1014 clients. (Default: none) +
1016 The HAProxy version 1 proxy protocol is described in detail at
1017 https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt +
1019 Both source IP address and source port will be set to zero.
1021 [[TruncateLogFile]] **TruncateLogFile** **0**|**1**::
1022 If 1, Tor will overwrite logs at startup and in response to a HUP signal,
1023 instead of appending to them. (Default: 0)
1025 [[UnixSocksGroupWritable]] **UnixSocksGroupWritable** **0**|**1**::
1026 If this option is set to 0, don't allow the filesystem group to read and
1027 write unix sockets (e.g. SocksPort unix:). If the option is set to 1, make
1028 the Unix socket readable and writable by the default GID. (Default: 0)
1030 [[UseDefaultFallbackDirs]] **UseDefaultFallbackDirs** **0**|**1**::
1031 Use Tor's default hard-coded FallbackDirs (if any). (When a
1032 FallbackDir line is present, it replaces the hard-coded FallbackDirs,
1033 regardless of the value of UseDefaultFallbackDirs.) (Default: 1)
1035 [[User]] **User** __Username__::
1036 On startup, setuid to this user and setgid to their primary group.
1037 Can not be changed while tor is running.
1041 // These options are in alphabetical order, with exceptions as noted.
1042 // Please keep them that way!
1044 The following options are useful only for clients (that is, if
1045 **SocksPort**, **HTTPTunnelPort**, **TransPort**, **DNSPort**, or
1046 **NATDPort** is non-zero):
1048 [[AllowNonRFC953Hostnames]] **AllowNonRFC953Hostnames** **0**|**1**::
1049 When this option is disabled, Tor blocks hostnames containing illegal
1050 characters (like @ and :) rather than sending them to an exit node to be
1051 resolved. This helps trap accidental attempts to resolve URLs and so on.
1054 [[AutomapHostsOnResolve]] **AutomapHostsOnResolve** **0**|**1**::
1055 When this option is enabled, and we get a request to resolve an address
1056 that ends with one of the suffixes in **AutomapHostsSuffixes**, we map an
1057 unused virtual address to that address, and return the new virtual address.
1058 This is handy for making ".onion" addresses work with applications that
1059 resolve an address and then connect to it. (Default: 0)
1061 [[AutomapHostsSuffixes]] **AutomapHostsSuffixes** __SUFFIX__,__SUFFIX__,__...__::
1062 A comma-separated list of suffixes to use with **AutomapHostsOnResolve**.
1063 The "." suffix is equivalent to "all addresses." (Default: .exit,.onion).
1065 [[Bridge]] **Bridge** [__transport__] __IP__:__ORPort__ [__fingerprint__]::
1066 When set along with UseBridges, instructs Tor to use the relay at
1067 "IP:ORPort" as a "bridge" relaying into the Tor network. If "fingerprint"
1068 is provided (using the same format as for DirAuthority), we will verify that
1069 the relay running at that location has the right fingerprint. We also use
1070 fingerprint to look up the bridge descriptor at the bridge authority, if
1071 it's provided and if UpdateBridgesFromAuthority is set too. +
1073 If "transport" is provided, it must match a ClientTransportPlugin line. We
1074 then use that pluggable transport's proxy to transfer data to the bridge,
1075 rather than connecting to the bridge directly. Some transports use a
1076 transport-specific method to work out the remote address to connect to.
1077 These transports typically ignore the "IP:ORPort" specified in the bridge
1080 Tor passes any "key=val" settings to the pluggable transport proxy as
1081 per-connection arguments when connecting to the bridge. Consult
1082 the documentation of the pluggable transport for details of what
1083 arguments it supports.
1085 [[CircuitPadding]] **CircuitPadding** **0**|**1**::
1086 If set to 0, Tor will not pad client circuits with additional cover
1087 traffic. Only clients may set this option. This option should be offered
1088 via the UI to mobile users for use where bandwidth may be expensive. If
1089 set to 1, padding will be negotiated as per the consensus and relay
1090 support (unlike ConnectionPadding, CircuitPadding cannot be force-enabled).
1093 // Out of order because it logically belongs after CircuitPadding
1094 [[ReducedCircuitPadding]] **ReducedCircuitPadding** **0**|**1**::
1095 If set to 1, Tor will only use circuit padding algorithms that have low
1096 overhead. Only clients may set this option. This option should be offered
1097 via the UI to mobile users for use where bandwidth may be expensive.
1100 [[ClientBootstrapConsensusAuthorityDownloadInitialDelay]] **ClientBootstrapConsensusAuthorityDownloadInitialDelay** __N__::
1101 Initial delay in seconds for when clients should download consensuses from authorities
1102 if they are bootstrapping (that is, they don't have a usable, reasonably
1103 live consensus). Only used by clients fetching from a list of fallback
1104 directory mirrors. This schedule is advanced by (potentially concurrent)
1105 connection attempts, unlike other schedules, which are advanced by
1106 connection failures. (Default: 6)
1108 [[ClientBootstrapConsensusAuthorityOnlyDownloadInitialDelay]] **ClientBootstrapConsensusAuthorityOnlyDownloadInitialDelay** __N__::
1109 Initial delay in seconds for when clients should download consensuses from authorities
1110 if they are bootstrapping (that is, they don't have a usable, reasonably
1111 live consensus). Only used by clients which don't have or won't fetch
1112 from a list of fallback directory mirrors. This schedule is advanced by
1113 (potentially concurrent) connection attempts, unlike other schedules,
1114 which are advanced by connection failures. (Default: 0)
1116 [[ClientBootstrapConsensusFallbackDownloadInitialDelay]] **ClientBootstrapConsensusFallbackDownloadInitialDelay** __N__::
1117 Initial delay in seconds for when clients should download consensuses from fallback
1118 directory mirrors if they are bootstrapping (that is, they don't have a
1119 usable, reasonably live consensus). Only used by clients fetching from a
1120 list of fallback directory mirrors. This schedule is advanced by
1121 (potentially concurrent) connection attempts, unlike other schedules,
1122 which are advanced by connection failures. (Default: 0)
1124 [[ClientBootstrapConsensusMaxInProgressTries]] **ClientBootstrapConsensusMaxInProgressTries** __NUM__::
1125 Try this many simultaneous connections to download a consensus before
1126 waiting for one to complete, timeout, or error out. (Default: 3)
1128 [[ClientDNSRejectInternalAddresses]] **ClientDNSRejectInternalAddresses** **0**|**1**::
1129 If true, Tor does not believe any anonymously retrieved DNS answer that
1130 tells it that an address resolves to an internal address (like 127.0.0.1 or
1131 192.168.0.1). This option prevents certain browser-based attacks; it
1132 is not allowed to be set on the default network. (Default: 1)
1134 [[ClientOnionAuthDir]] **ClientOnionAuthDir** __path__::
1135 Path to the directory containing v3 hidden service authorization files.
1136 Each file is for a single onion address, and the files MUST have the suffix
1137 ".auth_private" (i.e. "bob_onion.auth_private"). The content format MUST be:
1139 <onion-address>:descriptor:x25519:<base32-encoded-privkey>
1141 The <onion-address> MUST NOT have the ".onion" suffix. The
1142 <base32-encoded-privkey> is the base32 representation of the raw key bytes
1143 only (32 bytes for x25519). See Appendix G in the rend-spec-v3.txt file of
1144 https://spec.torproject.org/[torspec] for more information.
1146 [[ClientOnly]] **ClientOnly** **0**|**1**::
1147 If set to 1, Tor will not run as a relay or serve
1148 directory requests, even if the ORPort, ExtORPort, or DirPort options are
1149 set. (This config option is
1150 mostly unnecessary: we added it back when we were considering having
1151 Tor clients auto-promote themselves to being relays if they were stable
1152 and fast enough. The current behavior is simply that Tor is a client
1153 unless ORPort, ExtORPort, or DirPort are configured.) (Default: 0)
1155 [[ClientPreferIPv6DirPort]] **ClientPreferIPv6DirPort** **0**|**1**|**auto**::
1156 If this option is set to 1, Tor prefers a directory port with an IPv6
1157 address over one with IPv4, for direct connections, if a given directory
1158 server has both. (Tor also prefers an IPv6 DirPort if IPv4Client is set to
1159 0.) If this option is set to auto, clients prefer IPv4. Other things may
1160 influence the choice. This option breaks a tie to the favor of IPv6.
1161 (Default: auto) (DEPRECATED: This option has had no effect for some
1164 [[ClientPreferIPv6ORPort]] **ClientPreferIPv6ORPort** **0**|**1**|**auto**::
1165 If this option is set to 1, Tor prefers an OR port with an IPv6
1166 address over one with IPv4 if a given entry node has both. (Tor also
1167 prefers an IPv6 ORPort if IPv4Client is set to 0.) If this option is set
1168 to auto, Tor bridge clients prefer the configured bridge address, and
1169 other clients prefer IPv4. Other things may influence the choice. This
1170 option breaks a tie to the favor of IPv6. (Default: auto)
1172 [[ClientRejectInternalAddresses]] **ClientRejectInternalAddresses** **0**|**1**::
1173 If true, Tor does not try to fulfill requests to connect to an internal
1174 address (like 127.0.0.1 or 192.168.0.1) __unless an exit node is
1175 specifically requested__ (for example, via a .exit hostname, or a
1176 controller request). If true, multicast DNS hostnames for machines on the
1177 local network (of the form *.local) are also rejected. (Default: 1)
1179 [[ClientUseIPv4]] **ClientUseIPv4** **0**|**1**::
1180 If this option is set to 0, Tor will avoid connecting to directory servers
1181 and entry nodes over IPv4. Note that clients with an IPv4
1182 address in a **Bridge**, proxy, or pluggable transport line will try
1183 connecting over IPv4 even if **ClientUseIPv4** is set to 0. (Default: 1)
1185 [[ClientUseIPv6]] **ClientUseIPv6** **0**|**1**::
1186 If this option is set to 1, Tor might connect to directory servers or
1187 entry nodes over IPv6. For IPv6 only hosts, you need to also set
1188 **ClientUseIPv4** to 0 to disable IPv4. Note that clients configured with
1189 an IPv6 address in a **Bridge**, proxy, or pluggable transportline will
1190 try connecting over IPv6 even if **ClientUseIPv6** is set to 0. (Default: 1)
1192 [[ConnectionPadding]] **ConnectionPadding** **0**|**1**|**auto**::
1193 This option governs Tor's use of padding to defend against some forms of
1194 traffic analysis. If it is set to 'auto', Tor will send padding only
1195 if both the client and the relay support it. If it is set to 0, Tor will
1196 not send any padding cells. If it is set to 1, Tor will still send padding
1197 for client connections regardless of relay support. Only clients may set
1198 this option. This option should be offered via the UI to mobile users
1199 for use where bandwidth may be expensive.
1202 // Out of order because it logically belongs after ConnectionPadding
1203 [[ReducedConnectionPadding]] **ReducedConnectionPadding** **0**|**1**::
1204 If set to 1, Tor will not not hold OR connections open for very long,
1205 and will send less padding on these connections. Only clients may set
1206 this option. This option should be offered via the UI to mobile users
1207 for use where bandwidth may be expensive. (Default: 0)
1209 [[DNSPort]] **DNSPort** ['address'**:**]{empty}__port__|**auto** [_isolation flags_]::
1210 If non-zero, open this port to listen for UDP DNS requests, and resolve
1211 them anonymously. This port only handles A, AAAA, and PTR requests---it
1212 doesn't handle arbitrary DNS request types. Set the port to "auto" to
1213 have Tor pick a port for
1214 you. This directive can be specified multiple times to bind to multiple
1215 addresses/ports. See <<SocksPort,SocksPort>> for an explanation of isolation
1218 [[DownloadExtraInfo]] **DownloadExtraInfo** **0**|**1**::
1219 If true, Tor downloads and caches "extra-info" documents. These documents
1220 contain information about servers other than the information in their
1221 regular server descriptors. Tor does not use this information for anything
1222 itself; to save bandwidth, leave this option turned off. (Default: 0)
1224 [[EnforceDistinctSubnets]] **EnforceDistinctSubnets** **0**|**1**::
1225 If 1, Tor will not put two servers whose IP addresses are "too close" on
1226 the same circuit. Currently, two addresses are "too close" if they lie in
1227 the same /16 range. (Default: 1)
1229 [[FascistFirewall]] **FascistFirewall** **0**|**1**::
1230 If 1, Tor will only create outgoing connections to ORs running on ports
1231 that your firewall allows (defaults to 80 and 443; see <<FirewallPorts,FirewallPorts>>).
1232 This will allow you to run Tor as a client behind a firewall with
1233 restrictive policies, but will not allow you to run as a server behind such
1234 a firewall. If you prefer more fine-grained control, use
1235 ReachableAddresses instead.
1237 [[FirewallPorts]] **FirewallPorts** __PORTS__::
1238 A list of ports that your firewall allows you to connect to. Only used when
1239 **FascistFirewall** is set. This option is deprecated; use ReachableAddresses
1240 instead. (Default: 80, 443)
1242 [[HTTPTunnelPort]] **HTTPTunnelPort** ['address'**:**]{empty}__port__|**auto** [_isolation flags_]::
1243 Open this port to listen for proxy connections using the "HTTP CONNECT"
1244 protocol instead of SOCKS. Set this to
1245 0 if you don't want to allow "HTTP CONNECT" connections. Set the port
1246 to "auto" to have Tor pick a port for you. This directive can be
1247 specified multiple times to bind to multiple addresses/ports. If multiple
1248 entries of this option are present in your configuration file, Tor will
1249 perform stream isolation between listeners by default. See
1250 <<SocksPort,SocksPort>> for an explanation of isolation flags. (Default: 0)
1252 [[LongLivedPorts]] **LongLivedPorts** __PORTS__::
1253 A list of ports for services that tend to have long-running connections
1254 (e.g. chat and interactive shells). Circuits for streams that use these
1255 ports will contain only high-uptime nodes, to reduce the chance that a node
1256 will go down before the stream is finished. Note that the list is also
1257 honored for circuits (both client and service side) involving hidden
1258 services whose virtual port is in this list. (Default: 21, 22, 706,
1259 1863, 5050, 5190, 5222, 5223, 6523, 6667, 6697, 8300)
1261 [[MapAddress]] **MapAddress** __address__ __newaddress__::
1262 When a request for address arrives to Tor, it will transform to newaddress
1263 before processing it. For example, if you always want connections to
1264 www.example.com to exit via __torserver__ (where __torserver__ is the
1265 fingerprint of the server), use "MapAddress www.example.com
1266 www.example.com.torserver.exit". If the value is prefixed with a
1267 "\*.", matches an entire domain. For example, if you
1268 always want connections to example.com and any if its subdomains
1270 __torserver__ (where __torserver__ is the fingerprint of the server), use
1271 "MapAddress \*.example.com \*.example.com.torserver.exit". (Note the
1272 leading "*." in each part of the directive.) You can also redirect all
1273 subdomains of a domain to a single address. For example, "MapAddress
1274 *.example.com www.example.com". If the specified exit is not available,
1275 or the exit can not connect to the site, Tor will fail any connections
1276 to the mapped address.+
1280 1. When evaluating MapAddress expressions Tor stops when it hits the most
1281 recently added expression that matches the requested address. So if you
1282 have the following in your torrc, www.torproject.org will map to
1285 MapAddress www.torproject.org 192.0.2.1
1286 MapAddress www.torproject.org 198.51.100.1
1288 2. Tor evaluates the MapAddress configuration until it finds no matches. So
1289 if you have the following in your torrc, www.torproject.org will map to
1292 MapAddress 198.51.100.1 203.0.113.1
1293 MapAddress www.torproject.org 198.51.100.1
1295 3. The following MapAddress expression is invalid (and will be
1296 ignored) because you cannot map from a specific address to a wildcard
1299 MapAddress www.torproject.org *.torproject.org.torserver.exit
1301 4. Using a wildcard to match only part of a string (as in *ample.com) is
1304 5. Tor maps hostnames and IP addresses separately. If you MapAddress
1305 a DNS name, but use an IP address to connect, then Tor will ignore the
1308 6. MapAddress does not apply to redirects in the application protocol.
1309 For example, HTTP redirects and alt-svc headers will ignore mappings
1310 for the original address. You can use a wildcard mapping to handle
1311 redirects within the same site.
1313 [[MaxCircuitDirtiness]] **MaxCircuitDirtiness** __NUM__::
1314 Feel free to reuse a circuit that was first used at most NUM seconds ago,
1315 but never attach a new stream to a circuit that is too old. For hidden
1316 services, this applies to the __last__ time a circuit was used, not the
1317 first. Circuits with streams constructed with SOCKS authentication via
1318 SocksPorts that have **KeepAliveIsolateSOCKSAuth** also remain alive
1319 for MaxCircuitDirtiness seconds after carrying the last such stream.
1320 (Default: 10 minutes)
1322 [[MaxClientCircuitsPending]] **MaxClientCircuitsPending** __NUM__::
1323 Do not allow more than NUM circuits to be pending at a time for handling
1324 client streams. A circuit is pending if we have begun constructing it,
1325 but it has not yet been completely constructed. (Default: 32)
1327 [[NATDPort]] **NATDPort** ['address'**:**]{empty}__port__|**auto** [_isolation flags_]::
1328 Open this port to listen for connections from old versions of ipfw (as
1329 included in old versions of FreeBSD, etc) using the NATD protocol.
1330 Use 0 if you don't want to allow NATD connections. Set the port
1331 to "auto" to have Tor pick a port for you. This directive can be
1332 specified multiple times to bind to multiple addresses/ports. If multiple
1333 entries of this option are present in your configuration file, Tor will
1334 perform stream isolation between listeners by default. See
1335 <<SocksPort,SocksPort>> for an explanation of isolation flags. +
1337 This option is only for people who cannot use TransPort. (Default: 0)
1339 [[NewCircuitPeriod]] **NewCircuitPeriod** __NUM__::
1340 Every NUM seconds consider whether to build a new circuit. (Default: 30
1343 // These are out of order because they logically belong together
1344 [[PathBiasCircThreshold]] **PathBiasCircThreshold** __NUM__ +
1346 [[PathBiasDropGuards]] **PathBiasDropGuards** __NUM__ +
1348 [[PathBiasExtremeRate]] **PathBiasExtremeRate** __NUM__ +
1350 [[PathBiasNoticeRate]] **PathBiasNoticeRate** __NUM__ +
1352 [[PathBiasWarnRate]] **PathBiasWarnRate** __NUM__ +
1354 [[PathBiasScaleThreshold]] **PathBiasScaleThreshold** __NUM__::
1355 These options override the default behavior of Tor's (**currently
1356 experimental**) path bias detection algorithm. To try to find broken or
1357 misbehaving guard nodes, Tor looks for nodes where more than a certain
1358 fraction of circuits through that guard fail to get built. +
1360 The PathBiasCircThreshold option controls how many circuits we need to build
1361 through a guard before we make these checks. The PathBiasNoticeRate,
1362 PathBiasWarnRate and PathBiasExtremeRate options control what fraction of
1363 circuits must succeed through a guard so we won't write log messages.
1364 If less than PathBiasExtremeRate circuits succeed *and* PathBiasDropGuards
1365 is set to 1, we disable use of that guard. +
1367 When we have seen more than PathBiasScaleThreshold
1368 circuits through a guard, we scale our observations by 0.5 (governed by
1369 the consensus) so that new observations don't get swamped by old ones. +
1371 By default, or if a negative value is provided for one of these options,
1372 Tor uses reasonable defaults from the networkstatus consensus document.
1373 If no defaults are available there, these options default to 150, .70,
1374 .50, .30, 0, and 300 respectively.
1376 // These are out of order because they logically belong together
1377 [[PathBiasUseThreshold]] **PathBiasUseThreshold** __NUM__ +
1379 [[PathBiasNoticeUseRate]] **PathBiasNoticeUseRate** __NUM__ +
1381 [[PathBiasExtremeUseRate]] **PathBiasExtremeUseRate** __NUM__ +
1383 [[PathBiasScaleUseThreshold]] **PathBiasScaleUseThreshold** __NUM__::
1384 Similar to the above options, these options override the default behavior
1385 of Tor's (**currently experimental**) path use bias detection algorithm. +
1387 Where as the path bias parameters govern thresholds for successfully
1388 building circuits, these four path use bias parameters govern thresholds
1389 only for circuit usage. Circuits which receive no stream usage
1390 are not counted by this detection algorithm. A used circuit is considered
1391 successful if it is capable of carrying streams or otherwise receiving
1392 well-formed responses to RELAY cells. +
1394 By default, or if a negative value is provided for one of these options,
1395 Tor uses reasonable defaults from the networkstatus consensus document.
1396 If no defaults are available there, these options default to 20, .80,
1397 .60, and 100, respectively.
1399 [[PathsNeededToBuildCircuits]] **PathsNeededToBuildCircuits** __NUM__::
1400 Tor clients don't build circuits for user traffic until they know
1401 about enough of the network so that they could potentially construct
1402 enough of the possible paths through the network. If this option
1403 is set to a fraction between 0.25 and 0.95, Tor won't build circuits
1404 until it has enough descriptors or microdescriptors to construct
1405 that fraction of possible paths. Note that setting this option too low
1406 can make your Tor client less anonymous, and setting it too high can
1407 prevent your Tor client from bootstrapping. If this option is negative,
1408 Tor will use a default value chosen by the directory authorities. If the
1409 directory authorities do not choose a value, Tor will default to 0.6.
1412 [[ReachableAddresses]] **ReachableAddresses** __IP__[/__MASK__][:__PORT__]...::
1413 A comma-separated list of IP addresses and ports that your firewall allows
1414 you to connect to. The format is as for the addresses in ExitPolicy, except
1415 that "accept" is understood unless "reject" is explicitly provided. For
1416 example, \'ReachableAddresses 99.0.0.0/8, reject 18.0.0.0/8:80, accept
1417 \*:80' means that your firewall allows connections to everything inside net
1418 99, rejects port 80 connections to net 18, and accepts connections to port
1419 80 otherwise. (Default: \'accept \*:*'.)
1421 [[ReachableDirAddresses]] **ReachableDirAddresses** __IP__[/__MASK__][:__PORT__]...::
1422 Like **ReachableAddresses**, a list of addresses and ports. Tor will obey
1423 these restrictions when fetching directory information, using standard HTTP
1424 GET requests. If not set explicitly then the value of
1425 **ReachableAddresses** is used. If **HTTPProxy** is set then these
1426 connections will go through that proxy. (DEPRECATED: This option has
1427 had no effect for some time.)
1429 [[ReachableORAddresses]] **ReachableORAddresses** __IP__[/__MASK__][:__PORT__]...::
1430 Like **ReachableAddresses**, a list of addresses and ports. Tor will obey
1431 these restrictions when connecting to Onion Routers, using TLS/SSL. If not
1432 set explicitly then the value of **ReachableAddresses** is used. If
1433 **HTTPSProxy** is set then these connections will go through that proxy. +
1435 The separation between **ReachableORAddresses** and
1436 **ReachableDirAddresses** is only interesting when you are connecting
1437 through proxies (see <<HTTPProxy,HTTPProxy>> and <<HTTPSProxy,HTTPSProxy>>). Most proxies limit
1438 TLS connections (which Tor uses to connect to Onion Routers) to port 443,
1439 and some limit HTTP GET requests (which Tor uses for fetching directory
1440 information) to port 80.
1442 [[SafeSocks]] **SafeSocks** **0**|**1**::
1443 When this option is enabled, Tor will reject application connections that
1444 use unsafe variants of the socks protocol -- ones that only provide an IP
1445 address, meaning the application is doing a DNS resolve first.
1446 Specifically, these are socks4 and socks5 when not doing remote DNS.
1449 // Out of order because it logically belongs after SafeSocks
1450 [[TestSocks]] **TestSocks** **0**|**1**::
1451 When this option is enabled, Tor will make a notice-level log entry for
1452 each connection to the Socks port indicating whether the request used a
1453 safe socks protocol or an unsafe one (see <<SafeSocks,SafeSocks>>). This
1454 helps to determine whether an application using Tor is possibly leaking
1455 DNS requests. (Default: 0)
1457 // Out of order because it logically belongs with SafeSocks
1458 [[WarnPlaintextPorts]] **WarnPlaintextPorts** __port__,__port__,__...__::
1459 Tells Tor to issue a warnings whenever the user tries to make an anonymous
1460 connection to one of these ports. This option is designed to alert users
1461 to services that risk sending passwords in the clear. (Default:
1464 // Out of order because it logically belongs with SafeSocks
1465 [[RejectPlaintextPorts]] **RejectPlaintextPorts** __port__,__port__,__...__::
1466 Like WarnPlaintextPorts, but instead of warning about risky port uses, Tor
1467 will instead refuse to make the connection. (Default: None)
1469 [[SocksPolicy]] **SocksPolicy** __policy__,__policy__,__...__::
1470 Set an entrance policy for this server, to limit who can connect to the
1471 SocksPort and DNSPort ports. The policies have the same form as exit
1472 policies below, except that port specifiers are ignored. Any address
1473 not matched by some entry in the policy is accepted.
1475 [[SocksPort]] **SocksPort** ['address'**:**]{empty}__port__|**unix:**__path__|**auto** [_flags_] [_isolation flags_]::
1476 Open this port to listen for connections from SOCKS-speaking
1477 applications. Set this to 0 if you don't want to allow application
1478 connections via SOCKS. Set it to "auto" to have Tor pick a port for
1479 you. This directive can be specified multiple times to bind
1480 to multiple addresses/ports. If a unix domain socket is used, you may
1481 quote the path using standard C escape sequences. Most flags are off by
1482 default, except where specified. Flags that are on by default can be
1483 disabled by putting "No" before the flag name.
1486 NOTE: Although this option allows you to specify an IP address
1487 other than localhost, you should do so only with extreme caution.
1488 The SOCKS protocol is unencrypted and (as we use it)
1489 unauthenticated, so exposing it in this way could leak your
1490 information to anybody watching your network, and allow anybody
1491 to use your computer as an open proxy. +
1493 If multiple entries of this option are present in your configuration
1494 file, Tor will perform stream isolation between listeners by default.
1495 The _isolation flags_ arguments give Tor rules for which streams
1496 received on this SocksPort are allowed to share circuits with one
1497 another. Recognized isolation flags are:
1498 **IsolateClientAddr**;;
1499 Don't share circuits with streams from a different
1500 client address. (On by default and strongly recommended when
1501 supported; you can disable it with **NoIsolateClientAddr**.
1502 Unsupported and force-disabled when using Unix domain sockets.)
1503 **IsolateSOCKSAuth**;;
1504 Don't share circuits with streams for which different
1505 SOCKS authentication was provided. (For HTTPTunnelPort
1506 connections, this option looks at the Proxy-Authorization and
1507 X-Tor-Stream-Isolation headers. On by default;
1508 you can disable it with **NoIsolateSOCKSAuth**.)
1509 **IsolateClientProtocol**;;
1510 Don't share circuits with streams using a different protocol.
1511 (SOCKS 4, SOCKS 5, HTTPTunnelPort connections, TransPort connections,
1512 NATDPort connections, and DNSPort requests are all considered to be
1513 different protocols.)
1514 **IsolateDestPort**;;
1515 Don't share circuits with streams targeting a different
1517 **IsolateDestAddr**;;
1518 Don't share circuits with streams targeting a different
1519 destination address.
1520 **KeepAliveIsolateSOCKSAuth**;;
1521 If **IsolateSOCKSAuth** is enabled, keep alive circuits while they have
1522 at least one stream with SOCKS authentication active. After such a
1523 circuit is idle for more than MaxCircuitDirtiness seconds, it can be
1525 **SessionGroup=**__INT__;;
1526 If no other isolation rules would prevent it, allow streams
1527 on this port to share circuits with streams from every other
1528 port with the same session group. (By default, streams received
1529 on different SocksPorts, TransPorts, etc are always isolated from one
1530 another. This option overrides that behavior.)
1532 // Anchor only for formatting, not visible in the man page.
1533 [[OtherSocksPortFlags]]::
1534 Other recognized __flags__ for a SocksPort are:
1536 Tell exits to not connect to IPv4 addresses in response to SOCKS
1537 requests on this connection.
1539 Tell exits to allow IPv6 addresses in response to SOCKS requests on
1540 this connection, so long as SOCKS5 is in use. (SOCKS4 can't handle
1543 Tells exits that, if a host has both an IPv4 and an IPv6 address,
1544 we would prefer to connect to it via IPv6. (IPv4 is the default.)
1546 Do not ask exits to resolve DNS addresses in SOCKS5 requests. Tor will
1547 connect to IPv4 addresses, IPv6 addresses (if IPv6Traffic is set) and
1549 **NoOnionTraffic**;;
1550 Do not connect to .onion addresses in SOCKS5 requests.
1551 **OnionTrafficOnly**;;
1552 Tell the tor client to only connect to .onion addresses in response to
1553 SOCKS5 requests on this connection. This is equivalent to NoDNSRequest,
1554 NoIPv4Traffic, NoIPv6Traffic. The corresponding NoOnionTrafficOnly
1555 flag is not supported.
1557 Tells the client to remember IPv4 DNS answers we receive from exit
1558 nodes via this connection.
1560 Tells the client to remember IPv6 DNS answers we receive from exit
1561 nodes via this connection.
1563 Unix domain sockets only: makes the socket get created as
1566 Unix domain sockets only: makes the socket get created as
1569 Tells the client to remember all DNS answers we receive from exit
1570 nodes via this connection.
1572 Tells the client to use any cached IPv4 DNS answers we have when making
1573 requests via this connection. (NOTE: This option, or UseIPv6Cache
1574 or UseDNSCache, can harm your anonymity, and probably
1575 won't help performance as much as you might expect. Use with care!)
1577 Tells the client to use any cached IPv6 DNS answers we have when making
1578 requests via this connection.
1580 Tells the client to use any cached DNS answers we have when making
1581 requests via this connection.
1582 **NoPreferIPv6Automap**;;
1583 When serving a hostname lookup request on this port that
1584 should get automapped (according to AutomapHostsOnResolve),
1585 if we could return either an IPv4 or an IPv6 answer, prefer
1586 an IPv4 answer. (Tor prefers IPv6 by default.)
1587 **PreferSOCKSNoAuth**;;
1588 Ordinarily, when an application offers both "username/password
1589 authentication" and "no authentication" to Tor via SOCKS5, Tor
1590 selects username/password authentication so that IsolateSOCKSAuth can
1591 work. This can confuse some applications, if they offer a
1592 username/password combination then get confused when asked for
1593 one. You can disable this behavior, so that Tor will select "No
1594 authentication" when IsolateSOCKSAuth is disabled, or when this
1596 **ExtendedErrors**;;
1597 Return extended error code in the SOCKS reply. So far, the possible
1600 X'F0' Onion Service Descriptor Can Not be Found
1602 The requested onion service descriptor can't be found on the
1603 hashring and thus not reachable by the client. (v3 only)
1605 X'F1' Onion Service Descriptor Is Invalid
1607 The requested onion service descriptor can't be parsed or
1608 signature validation failed. (v3 only)
1610 X'F2' Onion Service Introduction Failed
1612 All introduction attempts failed either due to a combination of
1613 NACK by the intro point or time out. (v3 only)
1615 X'F3' Onion Service Rendezvous Failed
1617 Every rendezvous circuit has timed out and thus the client is
1618 unable to rendezvous with the service. (v3 only)
1620 X'F4' Onion Service Missing Client Authorization
1622 Client was able to download the requested onion service descriptor
1623 but is unable to decrypt its content because it is missing client
1624 authorization information. (v3 only)
1626 X'F5' Onion Service Wrong Client Authorization
1628 Client was able to download the requested onion service descriptor
1629 but is unable to decrypt its content using the client
1630 authorization information it has. This means the client access
1631 were revoked. (v3 only)
1633 X'F6' Onion Service Invalid Address
1635 The given .onion address is invalid. In one of these cases this
1636 error is returned: address checksum doesn't match, ed25519 public
1637 key is invalid or the encoding is invalid. (v3 only)
1639 X'F7' Onion Service Introduction Timed Out
1641 Similar to X'F2' code but in this case, all introduction attempts
1642 have failed due to a time out. (v3 only)
1644 // Anchor only for formatting, not visible in the man page.
1645 [[SocksPortFlagsMisc]]::
1646 Flags are processed left to right. If flags conflict, the last flag on the
1647 line is used, and all earlier flags are ignored. No error is issued for
1650 [[TokenBucketRefillInterval]] **TokenBucketRefillInterval** __NUM__ [**msec**|**second**]::
1651 Set the refill delay interval of Tor's token bucket to NUM milliseconds.
1652 NUM must be between 1 and 1000, inclusive. When Tor is out of bandwidth,
1653 on a connection or globally, it will wait up to this long before it tries
1654 to use that connection again.
1655 Note that bandwidth limits are still expressed in bytes per second: this
1656 option only affects the frequency with which Tor checks to see whether
1657 previously exhausted connections may read again.
1658 Can not be changed while tor is running. (Default: 100 msec)
1660 [[TrackHostExits]] **TrackHostExits** __host__,__.domain__,__...__::
1661 For each value in the comma separated list, Tor will track recent
1662 connections to hosts that match this value and attempt to reuse the same
1663 exit node for each. If the value is prepended with a \'.\', it is treated as
1664 matching an entire domain. If one of the values is just a \'.', it means
1665 match everything. This option is useful if you frequently connect to sites
1666 that will expire all your authentication cookies (i.e. log you out) if
1667 your IP address changes. Note that this option does have the disadvantage
1668 of making it more clear that a given history is associated with a single
1669 user. However, most people who would wish to observe this will observe it
1670 through cookies or other protocol-specific means anyhow.
1672 [[TrackHostExitsExpire]] **TrackHostExitsExpire** __NUM__::
1673 Since exit servers go up and down, it is desirable to expire the
1674 association between host and exit server after NUM seconds. The default is
1675 1800 seconds (30 minutes).
1677 [[TransPort]] **TransPort** ['address'**:**]{empty}__port__|**auto** [_isolation flags_]::
1678 Open this port to listen for transparent proxy connections. Set this to
1679 0 if you don't want to allow transparent proxy connections. Set the port
1680 to "auto" to have Tor pick a port for you. This directive can be
1681 specified multiple times to bind to multiple addresses/ports. If multiple
1682 entries of this option are present in your configuration file, Tor will
1683 perform stream isolation between listeners by default. See
1684 <<SocksPort,SocksPort>> for an explanation of isolation flags. +
1686 TransPort requires OS support for transparent proxies, such as BSDs' pf or
1687 Linux's IPTables. If you're planning to use Tor as a transparent proxy for
1688 a network, you'll want to examine and change VirtualAddrNetwork from the
1689 default setting. (Default: 0)
1691 [[TransProxyType]] **TransProxyType** **default**|**TPROXY**|**ipfw**|**pf-divert**::
1692 TransProxyType may only be enabled when there is transparent proxy listener
1695 Set this to "TPROXY" if you wish to be able to use the TPROXY Linux module
1696 to transparently proxy connections that are configured using the TransPort
1697 option. Detailed information on how to configure the TPROXY
1698 feature can be found in the Linux kernel source tree in the file
1699 Documentation/networking/tproxy.txt. +
1701 Set this option to "ipfw" to use the FreeBSD ipfw interface. +
1703 On *BSD operating systems when using pf, set this to "pf-divert" to take
1704 advantage of +divert-to+ rules, which do not modify the packets like
1705 +rdr-to+ rules do. Detailed information on how to configure pf to use
1706 +divert-to+ rules can be found in the pf.conf(5) manual page. On OpenBSD,
1707 +divert-to+ is available to use on versions greater than or equal to
1710 Set this to "default", or leave it unconfigured, to use regular IPTables
1711 on Linux, or to use pf +rdr-to+ rules on *BSD systems. +
1713 (Default: "default")
1715 [[UpdateBridgesFromAuthority]] **UpdateBridgesFromAuthority** **0**|**1**::
1716 When set (along with UseBridges), Tor will try to fetch bridge descriptors
1717 from the configured bridge authorities when feasible. It will fall back to
1718 a direct request if the authority responds with a 404. (Default: 0)
1720 [[UseBridges]] **UseBridges** **0**|**1**::
1721 When set, Tor will fetch descriptors for each bridge listed in the "Bridge"
1722 config lines, and use these relays as both entry guards and directory
1723 guards. (Default: 0)
1725 [[UseEntryGuards]] **UseEntryGuards** **0**|**1**::
1726 If this option is set to 1, we pick a few long-term entry servers, and try
1727 to stick with them. This is desirable because constantly changing servers
1728 increases the odds that an adversary who owns some servers will observe a
1729 fraction of your paths. Entry Guards can not be used by Directory
1730 Authorities or Single Onion Services. In these cases,
1731 this option is ignored. (Default: 1)
1733 [[UseGuardFraction]] **UseGuardFraction** **0**|**1**|**auto**::
1734 This option specifies whether clients should use the
1735 guardfraction information found in the consensus during path
1736 selection. If it's set to 'auto', clients will do what the
1737 UseGuardFraction consensus parameter tells them to do. (Default: auto)
1739 //Out of order because it logically belongs after the UseEntryGuards option
1740 [[GuardLifetime]] **GuardLifetime** __N__ **days**|**weeks**|**months**::
1741 If UseEntryGuards is set, minimum time to keep a guard on our guard list
1742 before picking a new one. If less than one day, we use defaults from the
1743 consensus directory. (Default: 0)
1745 //Out of order because it logically belongs after the UseEntryGuards option
1746 [[NumDirectoryGuards]] **NumDirectoryGuards** __NUM__::
1747 If UseEntryGuards is set to 1, we try to make sure we have at least NUM
1748 routers to use as directory guards. If this option is set to 0, use the
1749 value from the guard-n-primary-dir-guards-to-use consensus parameter, and
1750 default to 3 if the consensus parameter isn't set. (Default: 0)
1752 //Out of order because it logically belongs after the UseEntryGuards option
1753 [[NumEntryGuards]] **NumEntryGuards** __NUM__::
1754 If UseEntryGuards is set to 1, we will try to pick a total of NUM routers
1755 as long-term entries for our circuits. If NUM is 0, we try to learn the
1756 number from the guard-n-primary-guards-to-use consensus parameter, and
1757 default to 1 if the consensus parameter isn't set. (Default: 0)
1759 //Out of order because it logically belongs after the UseEntryGuards option
1760 [[NumPrimaryGuards]] **NumPrimaryGuards** __NUM__::
1761 If UseEntryGuards is set to 1, we will try to pick NUM routers for our
1762 primary guard list, which is the set of routers we strongly prefer when
1763 connecting to the Tor network. If NUM is 0, we try to learn the number from
1764 the guard-n-primary-guards consensus parameter, and default to 3 if the
1765 consensus parameter isn't set. (Default: 0)
1767 [[VanguardsLiteEnabled]] **VanguardsLiteEnabled** **0**|**1**|**auto**::
1768 This option specifies whether clients should use the vanguards-lite
1769 subsystem to protect against guard discovery attacks. If it's set to
1770 'auto', clients will do what the vanguards-lite-enabled consensus parameter
1771 tells them to do, and will default to enable the subsystem if the consensus
1772 parameter isn't set. (Default: auto)
1774 [[UseMicrodescriptors]] **UseMicrodescriptors** **0**|**1**|**auto**::
1775 Microdescriptors are a smaller version of the information that Tor needs
1776 in order to build its circuits. Using microdescriptors makes Tor clients
1777 download less directory information, thus saving bandwidth. Directory
1778 caches need to fetch regular descriptors and microdescriptors, so this
1779 option doesn't save any bandwidth for them. For legacy reasons, auto is
1780 accepted, but it has the same effect as 1. (Default: auto)
1782 [[VirtualAddrNetworkIPv4]] **VirtualAddrNetworkIPv4** __IPv4Address__/__bits__ +
1784 [[VirtualAddrNetworkIPv6]] **VirtualAddrNetworkIPv6** [__IPv6Address__]/__bits__::
1785 When Tor needs to assign a virtual (unused) address because of a MAPADDRESS
1786 command from the controller or the AutomapHostsOnResolve feature, Tor
1787 picks an unassigned address from this range. (Defaults:
1788 127.192.0.0/10 and [FE80::]/10 respectively.) +
1790 When providing proxy server service to a network of computers using a tool
1791 like dns-proxy-tor, change the IPv4 network to "10.192.0.0/10" or
1792 "172.16.0.0/12" and change the IPv6 network to "[FC00::]/7".
1793 The default **VirtualAddrNetwork** address ranges on a
1794 properly configured machine will route to the loopback or link-local
1795 interface. The maximum number of bits for the network prefix is set to 104
1796 for IPv6 and 16 for IPv4. However, a larger network
1797 (that is, one with a smaller prefix length)
1798 is preferable, since it reduces the chances for an attacker to guess the
1799 used IP. For local use, no change to the default VirtualAddrNetwork setting
1802 == CIRCUIT TIMEOUT OPTIONS
1804 // These options are in alphabetical order, with exceptions as noted.
1805 // Please keep them that way!
1807 The following options are useful for configuring timeouts related
1808 to building Tor circuits and using them:
1810 [[CircuitsAvailableTimeout]] **CircuitsAvailableTimeout** __NUM__::
1811 Tor will attempt to keep at least one open, unused circuit available for
1812 this amount of time. This option governs how long idle circuits are kept
1813 open, as well as the amount of time Tor will keep a circuit open to each
1814 of the recently used ports. This way when the Tor client is entirely
1815 idle, it can expire all of its circuits, and then expire its TLS
1816 connections. Note that the actual timeout value is uniformly randomized
1817 from the specified value to twice that amount. (Default: 30 minutes;
1820 // Out of order because it logically belongs before the CircuitBuildTimeout option
1821 [[LearnCircuitBuildTimeout]] **LearnCircuitBuildTimeout** **0**|**1**::
1822 If 0, CircuitBuildTimeout adaptive learning is disabled. (Default: 1)
1824 [[CircuitBuildTimeout]] **CircuitBuildTimeout** __NUM__::
1825 Try for at most NUM seconds when building circuits. If the circuit isn't
1826 open in that time, give up on it. If LearnCircuitBuildTimeout is 1, this
1827 value serves as the initial value to use before a timeout is learned. If
1828 LearnCircuitBuildTimeout is 0, this value is the only value used.
1829 (Default: 60 seconds)
1831 [[CircuitStreamTimeout]] **CircuitStreamTimeout** __NUM__::
1832 If non-zero, this option overrides our internal timeout schedule for how
1833 many seconds until we detach a stream from a circuit and try a new circuit.
1834 If your network is particularly slow, you might want to set this to a
1835 number like 60. (Default: 0)
1837 [[SocksTimeout]] **SocksTimeout** __NUM__::
1838 Let a socks connection wait NUM seconds handshaking, and NUM seconds
1839 unattached waiting for an appropriate circuit, before we fail it. (Default:
1842 == DORMANT MODE OPTIONS
1844 // These options are in alphabetical order, with exceptions as noted.
1845 // Please keep them that way!
1847 Tor can enter dormant mode to conserve power and network bandwidth.
1848 The following options control when Tor enters and leaves dormant mode:
1850 [[DormantCanceledByStartup]] **DormantCanceledByStartup** **0**|**1**::
1851 By default, Tor starts in active mode if it was active the last time
1852 it was shut down, and in dormant mode if it was dormant. But if
1853 this option is true, Tor treats every startup event as user
1854 activity, and Tor will never start in Dormant mode, even if it has
1855 been unused for a long time on previous runs. (Default: 0)
1857 Note: Packagers and application developers should change the value of
1858 this option only with great caution: it has the potential to
1859 create spurious traffic on the network. This option should only
1860 be used if Tor is started by an affirmative user activity (like
1861 clicking on an application or running a command), and not if Tor
1862 is launched for some other reason (for example, by a startup
1863 process, or by an application that launches itself on every login.)
1865 [[DormantClientTimeout]] **DormantClientTimeout** __N__ **minutes**|**hours**|**days**|**weeks**::
1866 If Tor spends this much time without any client activity,
1867 enter a dormant state where automatic circuits are not built, and
1868 directory information is not fetched.
1869 Does not affect servers or onion services. Must be at least 10 minutes.
1872 [[DormantOnFirstStartup]] **DormantOnFirstStartup** **0**|**1**::
1873 If true, then the first time Tor starts up with a fresh DataDirectory,
1874 it starts in dormant mode, and takes no actions until the user has made
1875 a request. (This mode is recommended if installing a Tor client for a
1876 user who might not actually use it.) If false, Tor bootstraps the first
1877 time it is started, whether it sees a user request or not.
1879 After the first time Tor starts, it begins in dormant mode if it was
1880 dormant before, and not otherwise. (Default: 0)
1882 [[DormantTimeoutDisabledByIdleStreams]] **DormantTimeoutDisabledByIdleStreams** **0**|**1**::
1883 If true, then any open client stream (even one not reading or writing)
1884 counts as client activity for the purpose of DormantClientTimeout.
1885 If false, then only network activity counts. (Default: 1)
1887 [[DormantTimeoutEnabled]] **DormantTimeoutEnabled** **0**|**1**::
1888 If false, then no amount of time without activity is sufficient to
1889 make Tor go dormant. Setting this option to zero is only recommended for
1890 special-purpose applications that need to use the Tor binary for
1891 something other than sending or receiving Tor traffic. (Default: 1)
1893 == NODE SELECTION OPTIONS
1895 // These options are in alphabetical order, with exceptions as noted.
1896 // Please keep them that way!
1898 The following options restrict the nodes that a tor client
1899 (or onion service) can use while building a circuit.
1900 These options can weaken your anonymity by making your client behavior
1901 different from other Tor clients:
1903 [[EntryNodes]] **EntryNodes** __node__,__node__,__...__::
1904 A list of identity fingerprints and country codes of nodes
1905 to use for the first hop in your normal circuits.
1906 Normal circuits include all
1907 circuits except for direct connections to directory servers. The Bridge
1908 option overrides this option; if you have configured bridges and
1909 UseBridges is 1, the Bridges are used as your entry nodes. +
1911 This option can appear multiple times: the values from multiple lines are
1914 The ExcludeNodes option overrides this option: any node listed in both
1915 EntryNodes and ExcludeNodes is treated as excluded. See
1916 <<ExcludeNodes,ExcludeNodes>> for more information on how to specify nodes.
1918 [[ExcludeNodes]] **ExcludeNodes** __node__,__node__,__...__::
1919 A list of identity fingerprints, country codes, and address
1920 patterns of nodes to avoid when building a circuit. Country codes are
1921 2-letter ISO3166 codes, and must
1922 be wrapped in braces; fingerprints may be preceded by a dollar sign.
1924 ExcludeNodes ABCD1234CDEF5678ABCD1234CDEF5678ABCD1234, \{cc}, 255.254.0.0/8) +
1926 This option can appear multiple times: the values from multiple lines are
1929 By default, this option is treated as a preference that Tor is allowed
1930 to override in order to keep working.
1931 For example, if you try to connect to a hidden service,
1932 but you have excluded all of the hidden service's introduction points,
1933 Tor will connect to one of them anyway. If you do not want this
1934 behavior, set the StrictNodes option (documented below). +
1936 Note also that if you are a relay, this (and the other node selection
1937 options below) only affects your own circuits that Tor builds for you.
1938 Clients can still build circuits through you to any node. Controllers
1939 can tell Tor to build circuits through any node. +
1941 Country codes are case-insensitive. The code "\{??}" refers to nodes whose
1942 country can't be identified. No country code, including \{??}, works if
1943 no GeoIPFile can be loaded. See also the <<GeoIPExcludeUnknown,GeoIPExcludeUnknown>> option below.
1945 // Out of order because it logically belongs after the ExcludeNodes option
1946 [[ExcludeExitNodes]] **ExcludeExitNodes** __node__,__node__,__...__::
1947 A list of identity fingerprints, country codes, and address
1948 patterns of nodes to never use when picking an exit node---that is, a
1949 node that delivers traffic for you *outside* the Tor network. Note that any
1950 node listed in ExcludeNodes is automatically considered to be part of this
1952 <<ExcludeNodes,ExcludeNodes>> for more information on how to specify
1953 nodes. See also the caveats on the <<ExitNodes,ExitNodes>> option below.
1955 This option can appear multiple times: the values from multiple lines are
1958 [[ExitNodes]] **ExitNodes** __node__,__node__,__...__::
1959 A list of identity fingerprints, country codes, and address
1960 patterns of nodes to use as exit node---that is, a
1961 node that delivers traffic for you *outside* the Tor network. See
1962 <<ExcludeNodes,ExcludeNodes>> for more information on how to specify nodes. +
1964 This option can appear multiple times: the values from multiple lines are
1967 Note that if you list too few nodes here, or if you exclude too many exit
1968 nodes with ExcludeExitNodes, you can degrade functionality. For example,
1969 if none of the exits you list allows traffic on port 80 or 443, you won't
1970 be able to browse the web. +
1972 Note also that not every circuit is used to deliver traffic *outside* of
1973 the Tor network. It is normal to see non-exit circuits (such as those
1974 used to connect to hidden services, those that do directory fetches,
1975 those used for relay reachability self-tests, and so on) that end
1976 at a non-exit node. To
1977 keep a node from being used entirely, see <<ExcludeNodes,ExcludeNodes>> and <<StrictNodes,StrictNodes>>. +
1979 The ExcludeNodes option overrides this option: any node listed in both
1980 ExitNodes and ExcludeNodes is treated as excluded. +
1982 The .exit address notation, if enabled via MapAddress, overrides
1985 [[GeoIPExcludeUnknown]] **GeoIPExcludeUnknown** **0**|**1**|**auto**::
1986 If this option is set to 'auto', then whenever any country code is set in
1987 ExcludeNodes or ExcludeExitNodes, all nodes with unknown country (\{??} and
1988 possibly \{A1}) are treated as excluded as well. If this option is set to
1989 '1', then all unknown countries are treated as excluded in ExcludeNodes
1990 and ExcludeExitNodes. This option has no effect when a GeoIP file isn't
1991 configured or can't be found. (Default: auto)
1993 [[HSLayer2Nodes]] **HSLayer2Nodes** __node__,__node__,__...__::
1994 A list of identity fingerprints, nicknames, country codes, and
1995 address patterns of nodes that are allowed to be used as the
1996 second hop in all client or service-side Onion Service circuits.
1997 This option mitigates attacks where the adversary runs middle nodes
1998 and induces your client or service to create many circuits, in order
1999 to discover your primary guard node.
2000 (Default: Any node in the network may be used in the second hop.)
2003 HSLayer2Nodes ABCD1234CDEF5678ABCD1234CDEF5678ABCD1234, \{cc}, 255.254.0.0/8) +
2005 This option can appear multiple times: the values from multiple lines are
2008 When this is set, the resulting hidden service paths will
2011 C - G - L2 - M - Rend +
2012 C - G - L2 - M - HSDir +
2013 C - G - L2 - M - Intro +
2014 S - G - L2 - M - Rend +
2015 S - G - L2 - M - HSDir +
2016 S - G - L2 - M - Intro +
2018 where C is this client, S is the service, G is the Guard node,
2019 L2 is a node from this option, and M is a random middle node.
2020 Rend, HSDir, and Intro point selection is not affected by this
2023 This option may be combined with HSLayer3Nodes to create
2026 C - G - L2 - L3 - Rend +
2027 C - G - L2 - L3 - M - HSDir +
2028 C - G - L2 - L3 - M - Intro +
2029 S - G - L2 - L3 - M - Rend +
2030 S - G - L2 - L3 - HSDir +
2031 S - G - L2 - L3 - Intro +
2033 ExcludeNodes have higher priority than HSLayer2Nodes,
2034 which means that nodes specified in ExcludeNodes will not be
2037 When either this option or HSLayer3Nodes are set, the /16 subnet
2038 and node family restrictions are removed for hidden service
2039 circuits. Additionally, we allow the guard node to be present
2040 as the Rend, HSDir, and IP node, and as the hop before it. This
2041 is done to prevent the adversary from inferring information
2042 about our guard, layer2, and layer3 node choices at later points
2045 This option is meant to be managed by a Tor controller such as
2046 https://github.com/mikeperry-tor/vanguards that selects and
2047 updates this set of nodes for you. Hence it does not do load
2048 balancing if fewer than 20 nodes are selected, and if no nodes in
2049 HSLayer2Nodes are currently available for use, Tor will not work.
2050 Please use extreme care if you are setting this option manually.
2052 [[HSLayer3Nodes]] **HSLayer3Nodes** __node__,__node__,__...__::
2053 A list of identity fingerprints, nicknames, country codes, and
2054 address patterns of nodes that are allowed to be used as the
2055 third hop in all client and service-side Onion Service circuits.
2056 This option mitigates attacks where the adversary runs middle nodes
2057 and induces your client or service to create many circuits, in order
2058 to discover your primary or Layer2 guard nodes.
2059 (Default: Any node in the network may be used in the third hop.)
2062 HSLayer3Nodes ABCD1234CDEF5678ABCD1234CDEF5678ABCD1234, \{cc}, 255.254.0.0/8) +
2064 This option can appear multiple times: the values from multiple lines are
2067 When this is set by itself, the resulting hidden service paths
2069 C - G - M - L3 - Rend +
2070 C - G - M - L3 - M - HSDir +
2071 C - G - M - L3 - M - Intro +
2072 S - G - M - L3 - M - Rend +
2073 S - G - M - L3 - HSDir +
2074 S - G - M - L3 - Intro +
2075 where C is this client, S is the service, G is the Guard node,
2076 L2 is a node from this option, and M is a random middle node.
2077 Rend, HSDir, and Intro point selection is not affected by this
2080 While it is possible to use this option by itself, it should be
2081 combined with HSLayer2Nodes to create paths of the form:
2083 C - G - L2 - L3 - Rend +
2084 C - G - L2 - L3 - M - HSDir +
2085 C - G - L2 - L3 - M - Intro +
2086 S - G - L2 - L3 - M - Rend +
2087 S - G - L2 - L3 - HSDir +
2088 S - G - L2 - L3 - Intro +
2090 ExcludeNodes have higher priority than HSLayer3Nodes,
2091 which means that nodes specified in ExcludeNodes will not be
2094 When either this option or HSLayer2Nodes are set, the /16 subnet
2095 and node family restrictions are removed for hidden service
2096 circuits. Additionally, we allow the guard node to be present
2097 as the Rend, HSDir, and IP node, and as the hop before it. This
2098 is done to prevent the adversary from inferring information
2099 about our guard, layer2, and layer3 node choices at later points
2102 This option is meant to be managed by a Tor controller such as
2103 https://github.com/mikeperry-tor/vanguards that selects and
2104 updates this set of nodes for you. Hence it does not do load
2105 balancing if fewer than 20 nodes are selected, and if no nodes in
2106 HSLayer3Nodes are currently available for use, Tor will not work.
2107 Please use extreme care if you are setting this option manually.
2109 [[MiddleNodes]] **MiddleNodes** __node__,__node__,__...__::
2110 A list of identity fingerprints and country codes of nodes
2111 to use for "middle" hops in your normal circuits.
2112 Normal circuits include all circuits except for direct connections
2113 to directory servers. Middle hops are all hops other than exit and entry.
2115 This option can appear multiple times: the values from multiple lines are
2118 This is an **experimental** feature that is meant to be used by researchers
2119 and developers to test new features in the Tor network safely. Using it
2120 without care will strongly influence your anonymity. Other tor features may
2121 not work with MiddleNodes. This feature might get removed in the future.
2123 The HSLayer2Node and HSLayer3Node options override this option for onion
2124 service circuits, if they are set. The vanguards addon will read this
2125 option, and if set, it will set HSLayer2Nodes and HSLayer3Nodes to nodes
2128 The ExcludeNodes option overrides this option: any node listed in both
2129 MiddleNodes and ExcludeNodes is treated as excluded. See
2130 the <<ExcludeNodes,ExcludeNodes>> for more information on how to specify nodes.
2132 [[NodeFamily]] **NodeFamily** __node__,__node__,__...__::
2133 The Tor servers, defined by their identity fingerprints,
2134 constitute a "family" of similar or co-administered servers, so never use
2135 any two of them in the same circuit. Defining a NodeFamily is only needed
2136 when a server doesn't list the family itself (with MyFamily). This option
2137 can be used multiple times; each instance defines a separate family. In
2138 addition to nodes, you can also list IP address and ranges and country
2139 codes in {curly braces}. See <<ExcludeNodes,ExcludeNodes>> for more
2140 information on how to specify nodes.
2142 [[StrictNodes]] **StrictNodes** **0**|**1**::
2143 If StrictNodes is set to 1, Tor will treat solely the ExcludeNodes option
2144 as a requirement to follow for all the circuits you generate, even if
2145 doing so will break functionality for you (StrictNodes does not apply to
2146 ExcludeExitNodes, ExitNodes, MiddleNodes, or MapAddress). If StrictNodes
2147 is set to 0, Tor will still try to avoid nodes in the ExcludeNodes list,
2148 but it will err on the side of avoiding unexpected errors.
2149 Specifically, StrictNodes 0 tells Tor that it is okay to use an excluded
2150 node when it is *necessary* to perform relay reachability self-tests,
2151 connect to a hidden service, provide a hidden service to a client,
2152 fulfill a .exit request, upload directory information, or download
2153 directory information. (Default: 0)
2158 // These options are in alphabetical order, with exceptions as noted.
2159 // Please keep them that way!
2161 The following options are useful only for servers (that is, if ORPort
2164 [[AccountingMax]] **AccountingMax** __N__ **bytes**|**KBytes**|**MBytes**|**GBytes**|**TBytes**|**KBits**|**MBits**|**GBits**|**TBits**::
2165 Limits the max number of bytes sent and received within a set time period
2166 using a given calculation rule (see <<AccountingStart,AccountingStart>> and <<AccountingRule,AccountingRule>>).
2167 Useful if you need to stay under a specific bandwidth. By default, the
2168 number used for calculation is the max of either the bytes sent or
2169 received. For example, with AccountingMax set to 1 TByte, a server
2170 could send 900 GBytes and receive 800 GBytes and continue running.
2171 It will only hibernate once one of the two reaches 1 TByte. This can
2172 be changed to use the sum of the both bytes received and sent by setting
2173 the AccountingRule option to "sum" (total bandwidth in/out). When the
2174 number of bytes remaining gets low, Tor will stop accepting new connections
2175 and circuits. When the number of bytes is exhausted, Tor will hibernate
2176 until some time in the next accounting period. To prevent all servers
2177 from waking at the same time, Tor will also wait until a random point
2178 in each period before waking up. If you have bandwidth cost issues,
2179 enabling hibernation is preferable to setting a low bandwidth, since
2180 it provides users with a collection of fast servers that are up some
2181 of the time, which is more useful than a set of slow servers that are
2182 always "available". +
2184 Note that (as also described in the Bandwidth section) Tor uses
2185 powers of two, not powers of ten: 1 GByte is 1024*1024*1024, not
2186 one billion. Be careful: some internet service providers might count
2189 [[AccountingRule]] **AccountingRule** **sum**|**max**|**in**|**out**::
2190 How we determine when our AccountingMax has been reached (when we
2191 should hibernate) during a time interval. Set to "max" to calculate
2192 using the higher of either the sent or received bytes (this is the
2193 default functionality). Set to "sum" to calculate using the sent
2194 plus received bytes. Set to "in" to calculate using only the
2195 received bytes. Set to "out" to calculate using only the sent bytes.
2198 [[AccountingStart]] **AccountingStart** **day**|**week**|**month** [__day__] __HH:MM__::
2199 Specify how long accounting periods last. If **month** is given,
2200 each accounting period runs from the time __HH:MM__ on the __dayth__ day of one
2201 month to the same day and time of the next. The relay will go at full speed,
2202 use all the quota you specify, then hibernate for the rest of the period. (The
2203 day must be between 1 and 28.) If **week** is given, each accounting period
2204 runs from the time __HH:MM__ of the __dayth__ day of one week to the same day
2205 and time of the next week, with Monday as day 1 and Sunday as day 7. If **day**
2206 is given, each accounting period runs from the time __HH:MM__ each day to the
2207 same time on the next day. All times are local, and given in 24-hour time.
2208 (Default: "month 1 0:00")
2210 [[Address]] **Address** __address__::
2211 The address of this server, or a fully qualified domain name of this server
2212 that resolves to an address. You can leave this unset, and Tor will try to
2213 guess your address. If a domain name is provided, Tor will attempt to
2214 resolve it and use the underlying IPv4/IPv6 address as its publish address
2215 (taking precedence over the ORPort configuration). The publish address is
2216 the one used to tell clients and other servers where to find your Tor
2217 server; it doesn't affect the address that your server binds to. To bind
2218 to a different address, use the ORPort and OutboundBindAddress options.
2220 [[AddressDisableIPv6]] **AddressDisableIPv6** **0**|**1**::
2221 By default, Tor will attempt to find the IPv6 of the relay if there is no
2222 IPv4Only ORPort. If set, this option disables IPv6 auto discovery. This
2223 disables IPv6 address resolution, IPv6 ORPorts, and IPv6 reachability
2224 checks. Also, the relay won't publish an IPv6 ORPort in its
2225 descriptor. (Default: 0)
2227 [[AssumeReachable]] **AssumeReachable** **0**|**1**::
2228 This option is used when bootstrapping a new Tor network. If set to 1,
2229 don't do self-reachability testing; just upload your server descriptor
2230 immediately. (Default: 0)
2232 [[AssumeReachableIPv6]] **AssumeReachableIPv6** **0**|**1**|**auto**::
2233 Like **AssumeReachable**, but affects only the relay's own IPv6 ORPort.
2234 If this value is set to "auto", then Tor will look at **AssumeReachable**
2235 instead. (Default: auto)
2237 [[BridgeRelay]] **BridgeRelay** **0**|**1**::
2238 Sets the relay to act as a "bridge" with respect to relaying connections
2239 from bridge users to the Tor network. It mainly causes Tor to publish a
2240 server descriptor to the bridge database, rather than
2241 to the public directory authorities. +
2243 Note: make sure that no MyFamily lines are present in your torrc when
2244 relay is configured in bridge mode.
2246 //Out of order because it logically belongs after BridgeRelay.
2247 [[BridgeDistribution]] **BridgeDistribution** __string__::
2248 If set along with BridgeRelay, Tor will include a new line in its
2249 bridge descriptor which indicates to the BridgeDB service how it
2250 would like its bridge address to be given out. Set it to "none" if
2251 you want BridgeDB to avoid distributing your bridge address, or "any" to
2252 let BridgeDB decide. See https://bridges.torproject.org/info for a more
2253 up-to-date list of options. (Default: any)
2255 [[ContactInfo]] **ContactInfo** __email_address__::
2256 Administrative contact information for this relay or bridge. This line
2257 can be used to contact you if your relay or bridge is misconfigured or
2258 something else goes wrong. Note that we archive and publish all
2259 descriptors containing these lines and that Google indexes them, so
2260 spammers might also collect them. You may want to obscure the fact
2261 that it's an email address and/or generate a new address for this
2264 ContactInfo **must** be set to a working address if you run more than one
2265 relay or bridge. (Really, everybody running a relay or bridge should set
2268 [[DisableOOSCheck]] **DisableOOSCheck** **0**|**1**::
2269 This option disables the code that closes connections when Tor notices
2270 that it is running low on sockets. Right now, it is on by default,
2271 since the existing out-of-sockets mechanism tends to kill OR connections
2272 more than it should. (Default: 1)
2274 [[ExitPolicy]] **ExitPolicy** __policy__,__policy__,__...__::
2275 Set an exit policy for this server. Each policy is of the form
2276 "**accept[6]**|**reject[6]** __ADDR__[/__MASK__][:__PORT__]". If /__MASK__ is
2277 omitted then this policy just applies to the host given. Instead of giving
2278 a host or network you can also use "\*" to denote the universe (0.0.0.0/0
2279 and ::/0), or \*4 to denote all IPv4 addresses, and \*6 to denote all IPv6
2281 __PORT__ can be a single port number, an interval of ports
2282 "__FROM_PORT__-__TO_PORT__", or "\*". If __PORT__ is omitted, that means
2285 For example, "accept 18.7.22.69:\*,reject 18.0.0.0/8:\*,accept \*:\*" would
2286 reject any IPv4 traffic destined for MIT except for web.mit.edu, and accept
2287 any other IPv4 or IPv6 traffic. +
2289 Tor also allows IPv6 exit policy entries. For instance, "reject6 [FC00::]/7:\*"
2290 rejects all destinations that share 7 most significant bit prefix with
2291 address FC00::. Respectively, "accept6 [C000::]/3:\*" accepts all destinations
2292 that share 3 most significant bit prefix with address C000::. +
2294 accept6 and reject6 only produce IPv6 exit policy entries. Using an IPv4
2295 address with accept6 or reject6 is ignored and generates a warning.
2296 accept/reject allows either IPv4 or IPv6 addresses. Use \*4 as an IPv4
2297 wildcard address, and \*6 as an IPv6 wildcard address. accept/reject *
2298 expands to matching IPv4 and IPv6 wildcard address rules. +
2300 To specify all IPv4 and IPv6 internal and link-local networks (including
2301 0.0.0.0/8, 169.254.0.0/16, 127.0.0.0/8, 192.168.0.0/16, 10.0.0.0/8,
2302 172.16.0.0/12, [::]/8, [FC00::]/7, [FE80::]/10, [FEC0::]/10, [FF00::]/8,
2303 and [::]/127), you can use the "private" alias instead of an address.
2304 ("private" always produces rules for IPv4 and IPv6 addresses, even when
2305 used with accept6/reject6.) +
2307 Private addresses are rejected by default (at the beginning of your exit
2308 policy), along with any configured primary public IPv4 and IPv6 addresses.
2309 These private addresses are rejected unless you set the
2310 ExitPolicyRejectPrivate config option to 0. For example, once you've done
2311 that, you could allow HTTP to 127.0.0.1 and block all other connections to
2312 internal networks with "accept 127.0.0.1:80,reject private:\*", though that
2313 may also allow connections to your own computer that are addressed to its
2314 public (external) IP address. See RFC 1918 and RFC 3330 for more details
2315 about internal and reserved IP address space. See
2316 <<ExitPolicyRejectLocalInterfaces,ExitPolicyRejectLocalInterfaces>> if you want to block every address on the
2317 relay, even those that aren't advertised in the descriptor. +
2319 This directive can be specified multiple times so you don't have to put it
2322 Policies are considered first to last, and the first match wins. If you
2323 want to allow the same ports on IPv4 and IPv6, write your rules using
2324 accept/reject \*. If you want to allow different ports on IPv4 and IPv6,
2325 write your IPv6 rules using accept6/reject6 \*6, and your IPv4 rules using
2326 accept/reject \*4. If you want to \_replace_ the default exit policy, end
2327 your exit policy with either a reject \*:* or an accept \*:*. Otherwise,
2328 you're \_augmenting_ (prepending to) the default exit policy. +
2330 If you want to use a reduced exit policy rather than the default exit
2331 policy, set "ReducedExitPolicy 1". If you want to _replace_ the default
2332 exit policy with your custom exit policy, end your exit policy with either
2333 a reject *:* or an accept *:*. Otherwise, you're _augmenting_ (prepending
2334 to) the default or reduced exit policy. +
2336 The default exit policy is:
2350 // Anchor only for formatting, not visible in the man page.
2351 [[ExitPolicyDefault]]::
2352 Since the default exit policy uses accept/reject *, it applies to both
2353 IPv4 and IPv6 addresses.
2355 [[ExitPolicyRejectLocalInterfaces]] **ExitPolicyRejectLocalInterfaces** **0**|**1**::
2356 Reject all IPv4 and IPv6 addresses that the relay knows about, at the
2357 beginning of your exit policy. This includes any OutboundBindAddress, the
2358 bind addresses of any port options, such as ControlPort or DNSPort, and any
2359 public IPv4 and IPv6 addresses on any interface on the relay. (If IPv6Exit
2360 is not set, all IPv6 addresses will be rejected anyway.)
2361 See above entry on <<ExitPolicy,ExitPolicy>>.
2362 This option is off by default, because it lists all public relay IP
2363 addresses in the ExitPolicy, even those relay operators might prefer not
2367 [[ExitPolicyRejectPrivate]] **ExitPolicyRejectPrivate** **0**|**1**::
2368 Reject all private (local) networks, along with the relay's advertised
2369 public IPv4 and IPv6 addresses, at the beginning of your exit policy.
2370 See above entry on <<ExitPolicy,ExitPolicy>>.
2373 [[ExitRelay]] **ExitRelay** **0**|**1**|**auto**::
2374 Tells Tor whether to run as an exit relay. If Tor is running as a
2375 non-bridge server, and ExitRelay is set to 1, then Tor allows traffic to
2376 exit according to the ExitPolicy option, the ReducedExitPolicy option,
2377 or the default ExitPolicy (if no other exit policy option is specified). +
2379 If ExitRelay is set to 0, no traffic is allowed to exit, and the
2380 ExitPolicy, ReducedExitPolicy, and IPv6Exit options are ignored. +
2382 If ExitRelay is set to "auto", then Tor checks the ExitPolicy,
2383 ReducedExitPolicy, and IPv6Exit options. If at least one of these options
2384 is set, Tor behaves as if ExitRelay were set to 1. If none of these exit
2385 policy options are set, Tor behaves as if ExitRelay were set to 0.
2388 [[ReevaluateExitPolicy]] **ReevaluateExitPolicy** **0**|**1**::
2389 If set, reevaluate the exit policy on existing connections when reloading
2392 When the exit policy of an exit node change while reloading configuration,
2393 connections made prior to this change could violate the new policy. By
2394 setting this to 1, Tor will check if such connections exist, and mark them
2398 [[ExtendAllowPrivateAddresses]] **ExtendAllowPrivateAddresses** **0**|**1**::
2399 When this option is enabled, Tor will connect to relays on localhost,
2400 RFC1918 addresses, and so on. In particular, Tor will make direct OR
2401 connections, and Tor routers allow EXTEND requests, to these private
2402 addresses. (Tor will always allow connections to bridges, proxies, and
2403 pluggable transports configured on private addresses.) Enabling this
2404 option can create security issues; you should probably leave it off.
2407 [[GeoIPFile]] **GeoIPFile** __filename__::
2408 A filename containing IPv4 GeoIP data, for use with by-country statistics.
2410 [[GeoIPv6File]] **GeoIPv6File** __filename__::
2411 A filename containing IPv6 GeoIP data, for use with by-country statistics.
2413 [[HeartbeatPeriod]] **HeartbeatPeriod** __N__ **minutes**|**hours**|**days**|**weeks**::
2414 Log a heartbeat message every **HeartbeatPeriod** seconds. This is
2415 a log level __notice__ message, designed to let you know your Tor
2416 server is still alive and doing useful things. Settings this
2417 to 0 will disable the heartbeat. Otherwise, it must be at least 30
2418 minutes. (Default: 6 hours)
2420 [[IPv6Exit]] **IPv6Exit** **0**|**1**::
2421 If set, and we are an exit node, allow clients to use us for IPv6 traffic.
2422 When this option is set and ExitRelay is auto, we act as if ExitRelay
2425 [[KeyDirectory]] **KeyDirectory** __DIR__::
2426 Store secret keys in DIR. Can not be changed while tor is
2428 (Default: the "keys" subdirectory of DataDirectory.)
2430 [[KeyDirectoryGroupReadable]] **KeyDirectoryGroupReadable** **0**|**1**|**auto**::
2431 If this option is set to 0, don't allow the filesystem group to read the
2432 KeyDirectory. If the option is set to 1, make the KeyDirectory readable
2433 by the default GID. If the option is "auto", then we use the
2434 setting for DataDirectoryGroupReadable when the KeyDirectory is the
2435 same as the DataDirectory, and 0 otherwise. (Default: auto)
2437 [[MainloopStats]] **MainloopStats** **0**|**1**::
2438 Log main loop statistics every **HeartbeatPeriod** seconds. This is a log
2439 level __notice__ message designed to help developers instrumenting Tor's
2440 main event loop. (Default: 0)
2442 [[MaxMemInQueues]] **MaxMemInQueues** __N__ **bytes**|**KBytes**|**MBytes**|**GBytes**::
2443 This option configures a threshold above which Tor will assume that it
2444 needs to stop queueing or buffering data because it's about to run out of
2445 memory. If it hits this threshold, it will begin killing circuits until
2446 it has recovered at least 10% of this memory. Do not set this option too
2447 low, or your relay may be unreliable under load. This option only
2448 affects some queues, so the actual process size will be larger than
2449 this. If this option is set to 0, Tor will try to pick a reasonable
2450 default based on your system's physical memory. (Default: 0)
2452 [[MaxOnionQueueDelay]] **MaxOnionQueueDelay** __NUM__ [**msec**|**second**]::
2453 If we have more onionskins queued for processing than we can process in
2454 this amount of time, reject new ones. (Default: 1750 msec)
2456 [[MyFamily]] **MyFamily** __fingerprint__,__fingerprint__,...::
2457 Declare that this Tor relay is controlled or administered by a group or
2458 organization identical or similar to that of the other relays, defined by
2459 their (possibly $-prefixed) identity fingerprints.
2460 This option can be repeated many times, for
2461 convenience in defining large families: all fingerprints in all MyFamily
2462 lines are merged into one list.
2463 When two relays both declare that they are in the
2464 same \'family', Tor clients will not use them in the same circuit. (Each
2465 relay only needs to list the other servers in its family; it doesn't need to
2466 list itself, but it won't hurt if it does.) Do not list any bridge relay as it would
2467 compromise its concealment. +
2469 If you run more than one relay, the MyFamily option on each relay
2470 **must** list all other relays, as described above. +
2472 Note: do not use MyFamily when configuring your Tor instance as a
2475 [[Nickname]] **Nickname** __name__::
2476 Set the server's nickname to \'name'. Nicknames must be between 1 and 19
2477 characters inclusive, and must contain only the characters [a-zA-Z0-9].
2478 If not set, **Unnamed** will be used. Relays can always be uniquely identified
2479 by their identity fingerprints.
2481 [[NumCPUs]] **NumCPUs** __num__::
2482 How many processes to use at once for decrypting onionskins and other
2483 parallelizable operations. If this is set to 0, Tor will try to detect
2484 how many CPUs you have, defaulting to 1 if it can't tell. (Default: 0)
2486 [[OfflineMasterKey]] **OfflineMasterKey** **0**|**1**::
2487 If non-zero, the Tor relay will never generate or load its master secret
2488 key. Instead, you'll have to use "tor --keygen" to manage the permanent
2489 ed25519 master identity key, as well as the corresponding temporary
2490 signing keys and certificates. (Default: 0)
2492 [[ORPort]] **ORPort** ['address'**:**]{empty}__PORT__|**auto** [_flags_]::
2493 Advertise this port to listen for connections from Tor clients and
2494 servers. This option is required to be a Tor server.
2495 Set it to "auto" to have Tor pick a port for you. Set it to 0 to not
2496 run an ORPort at all. This option can occur more than once. (Default: 0) +
2498 Tor recognizes these flags on each ORPort:
2500 By default, we bind to a port and tell our users about it. If
2501 NoAdvertise is specified, we don't advertise, but listen anyway. This
2502 can be useful if the port everybody will be connecting to (for
2503 example, one that's opened on our firewall) is somewhere else.
2505 By default, we bind to a port and tell our users about it. If
2506 NoListen is specified, we don't bind, but advertise anyway. This
2507 can be useful if something else (for example, a firewall's port
2508 forwarding configuration) is causing connections to reach us.
2510 If the address is absent, or resolves to both an IPv4 and an IPv6
2511 address, only listen to the IPv4 address.
2513 If the address is absent, or resolves to both an IPv4 and an IPv6
2514 address, only listen to the IPv6 address.
2516 // Anchor only for formatting, not visible in the man page.
2517 [[ORPortFlagsExclusive]]::
2518 For obvious reasons, NoAdvertise and NoListen are mutually exclusive, and
2519 IPv4Only and IPv6Only are mutually exclusive.
2521 [[PublishServerDescriptor]] **PublishServerDescriptor** **0**|**1**|**v3**|**bridge**,**...**::
2522 This option specifies which descriptors Tor will publish when acting as
2524 choose multiple arguments, separated by commas. +
2526 If this option is set to 0, Tor will not publish its
2527 descriptors to any directories. (This is useful if you're testing
2528 out your server, or if you're using a Tor controller that handles
2529 directory publishing for you.) Otherwise, Tor will publish its
2530 descriptors of all type(s) specified. The default is "1", which
2531 means "if running as a relay or bridge, publish descriptors to the
2532 appropriate authorities". Other possibilities are "v3", meaning
2533 "publish as if you're a relay", and "bridge", meaning "publish as
2534 if you're a bridge".
2536 [[ReducedExitPolicy]] **ReducedExitPolicy** **0**|**1**::
2537 If set, use a reduced exit policy rather than the default one. +
2539 The reduced exit policy is an alternative to the default exit policy. It
2540 allows as many Internet services as possible while still blocking the
2541 majority of TCP ports. Currently, the policy allows approximately 65 ports.
2542 This reduces the odds that your node will be used for peer-to-peer
2545 The reduced exit policy is:
2629 [[RefuseUnknownExits]] **RefuseUnknownExits** **0**|**1**|**auto**::
2630 Prevent nodes that don't appear in the consensus from exiting using this
2631 relay. If the option is 1, we always block exit attempts from such
2632 nodes; if it's 0, we never do, and if the option is "auto", then we do
2633 whatever the authorities suggest in the consensus (and block if the consensus
2634 is quiet on the issue). (Default: auto)
2636 [[ServerDNSAllowBrokenConfig]] **ServerDNSAllowBrokenConfig** **0**|**1**::
2637 If this option is false, Tor exits immediately if there are problems
2638 parsing the system DNS configuration or connecting to nameservers.
2639 Otherwise, Tor continues to periodically retry the system nameservers until
2640 it eventually succeeds. (Default: 1)
2642 [[ServerDNSAllowNonRFC953Hostnames]] **ServerDNSAllowNonRFC953Hostnames** **0**|**1**::
2643 When this option is disabled, Tor does not try to resolve hostnames
2644 containing illegal characters (like @ and :) rather than sending them to an
2645 exit node to be resolved. This helps trap accidental attempts to resolve
2646 URLs and so on. This option only affects name lookups that your server does
2647 on behalf of clients. (Default: 0)
2649 [[ServerDNSDetectHijacking]] **ServerDNSDetectHijacking** **0**|**1**::
2650 When this option is set to 1, we will test periodically to determine
2651 whether our local nameservers have been configured to hijack failing DNS
2652 requests (usually to an advertising site). If they are, we will attempt to
2653 correct this. This option only affects name lookups that your server does
2654 on behalf of clients. (Default: 1)
2656 [[ServerDNSRandomizeCase]] **ServerDNSRandomizeCase** **0**|**1**::
2657 When this option is set, Tor sets the case of each character randomly in
2658 outgoing DNS requests, and makes sure that the case matches in DNS replies.
2659 This so-called "0x20 hack" helps resist some types of DNS poisoning attack.
2660 For more information, see "Increased DNS Forgery Resistance through
2661 0x20-Bit Encoding". This option only affects name lookups that your server
2662 does on behalf of clients. (Default: 1)
2664 [[ServerDNSResolvConfFile]] **ServerDNSResolvConfFile** __filename__::
2665 Overrides the default DNS configuration with the configuration in
2666 __filename__. The file format is the same as the standard Unix
2667 "**resolv.conf**" file (7). This option, like all other ServerDNS options,
2668 only affects name lookups that your server does on behalf of clients.
2669 (Defaults to use the system DNS configuration or a localhost DNS service
2670 in case no nameservers are found in a given configuration.)
2672 [[ServerDNSSearchDomains]] **ServerDNSSearchDomains** **0**|**1**::
2673 If set to 1, then we will search for addresses in the local search domain.
2674 For example, if this system is configured to believe it is in
2675 "example.com", and a client tries to connect to "www", the client will be
2676 connected to "www.example.com". This option only affects name lookups that
2677 your server does on behalf of clients. (Default: 0)
2679 [[ServerDNSTestAddresses]] **ServerDNSTestAddresses** __hostname__,__hostname__,__...__::
2680 When we're detecting DNS hijacking, make sure that these __valid__ addresses
2681 aren't getting redirected. If they are, then our DNS is completely useless,
2682 and we'll reset our exit policy to "reject \*:*". This option only affects
2683 name lookups that your server does on behalf of clients. (Default:
2684 "www.google.com, www.mit.edu, www.yahoo.com, www.slashdot.org")
2686 [[ServerTransportListenAddr]] **ServerTransportListenAddr** __transport__ __IP__:__PORT__::
2687 When this option is set, Tor will suggest __IP__:__PORT__ as the
2688 listening address of any pluggable transport proxy that tries to
2689 launch __transport__. (IPv4 addresses should written as-is; IPv6
2690 addresses should be wrapped in square brackets.) (Default: none)
2692 [[ServerTransportOptions]] **ServerTransportOptions** __transport__ __k=v__ __k=v__ ...::
2693 When this option is set, Tor will pass the __k=v__ parameters to
2694 any pluggable transport proxy that tries to launch __transport__. +
2695 (Example: ServerTransportOptions obfs45 shared-secret=bridgepasswd cache=/var/lib/tor/cache) (Default: none)
2697 [[ServerTransportPlugin]] **ServerTransportPlugin** __transport__ exec __path-to-binary__ [options]::
2698 The Tor relay launches the pluggable transport proxy in __path-to-binary__
2699 using __options__ as its command-line options, and expects to receive
2700 proxied client traffic from it. (Default: none)
2702 [[ShutdownWaitLength]] **ShutdownWaitLength** __NUM__::
2703 When we get a SIGINT and we're a server, we begin shutting down:
2704 we close listeners and start refusing new circuits. After **NUM**
2705 seconds, we exit. If we get a second SIGINT, we exit immediately.
2706 (Default: 30 seconds)
2708 [[SigningKeyLifetime]] **SigningKeyLifetime** __N__ **days**|**weeks**|**months**::
2709 For how long should each Ed25519 signing key be valid? Tor uses a
2710 permanent master identity key that can be kept offline, and periodically
2711 generates new "signing" keys that it uses online. This option
2712 configures their lifetime.
2715 [[SSLKeyLifetime]] **SSLKeyLifetime** __N__ **minutes**|**hours**|**days**|**weeks**::
2716 When creating a link certificate for our outermost SSL handshake,
2717 set its lifetime to this amount of time. If set to 0, Tor will choose
2718 some reasonable random defaults. (Default: 0)
2720 == STATISTICS OPTIONS
2722 // These options are in alphabetical order, with exceptions as noted.
2723 // Please keep them that way!
2725 Relays publish most statistics in a document called the
2726 extra-info document. The following options affect the different
2727 types of statistics that Tor relays collect and publish:
2729 [[BridgeRecordUsageByCountry]] **BridgeRecordUsageByCountry** **0**|**1**::
2730 When this option is enabled and BridgeRelay is also enabled, and we have
2731 GeoIP data, Tor keeps a per-country count of how many client
2732 addresses have contacted it so that it can help the bridge authority guess
2733 which countries have blocked access to it. If ExtraInfoStatistics is
2734 enabled, it will be published as part of the extra-info document.
2737 [[CellStatistics]] **CellStatistics** **0**|**1**::
2739 When this option is enabled, Tor collects statistics about cell
2740 processing (i.e. mean time a cell is spending in a queue, mean
2741 number of cells in a queue and mean number of processed cells per
2742 circuit) and writes them into disk every 24 hours. Onion router
2743 operators may use the statistics for performance monitoring.
2744 If ExtraInfoStatistics is enabled, it will published as part of
2745 the extra-info document. (Default: 0)
2747 [[ConnDirectionStatistics]] **ConnDirectionStatistics** **0**|**1**::
2749 When this option is enabled, Tor writes statistics on the amounts of
2750 traffic it passes between itself and other relays to disk every 24
2751 hours. Enables relay operators to monitor how much their relay is
2752 being used as middle node in the circuit. If ExtraInfoStatistics is
2753 enabled, it will be published as part of the extra-info document.
2756 [[DirReqStatistics]] **DirReqStatistics** **0**|**1**::
2757 Relays and bridges only.
2758 When this option is enabled, a Tor directory writes statistics on the
2759 number and response time of network status requests to disk every 24
2760 hours. Enables relay and bridge operators to monitor how much their
2761 server is being used by clients to learn about Tor network.
2762 If ExtraInfoStatistics is enabled, it will published as part of
2763 the extra-info document. (Default: 1)
2765 [[EntryStatistics]] **EntryStatistics** **0**|**1**::
2767 When this option is enabled, Tor writes statistics on the number of
2768 directly connecting clients to disk every 24 hours. Enables relay
2769 operators to monitor how much inbound traffic that originates from
2770 Tor clients passes through their server to go further down the
2771 Tor network. If ExtraInfoStatistics is enabled, it will be published
2772 as part of the extra-info document. (Default: 0)
2774 [[ExitPortStatistics]] **ExitPortStatistics** **0**|**1**::
2776 When this option is enabled, Tor writes statistics on the number of
2777 relayed bytes and opened stream per exit port to disk every 24 hours.
2778 Enables exit relay operators to measure and monitor amounts of traffic
2779 that leaves Tor network through their exit node. If ExtraInfoStatistics
2780 is enabled, it will be published as part of the extra-info document.
2783 [[ExtraInfoStatistics]] **ExtraInfoStatistics** **0**|**1**::
2784 When this option is enabled, Tor includes previously gathered statistics in
2785 its extra-info documents that it uploads to the directory authorities.
2786 Disabling this option also removes bandwidth usage statistics, and
2787 GeoIPFile and GeoIPv6File hashes from the extra-info file. Bridge
2788 ServerTransportPlugin lines are always included in the extra-info file,
2789 because they are required by BridgeDB.
2792 [[HiddenServiceStatistics]] **HiddenServiceStatistics** **0**|**1**::
2793 Relays and bridges only.
2794 When this option is enabled, a Tor relay writes obfuscated
2795 statistics on its role as hidden-service directory, introduction
2796 point, or rendezvous point to disk every 24 hours. If ExtraInfoStatistics
2797 is enabled, it will be published as part of the extra-info document.
2800 [[OverloadStatistics]] **OverloadStatistics** *0**|**1**::
2801 Relays and bridges only.
2802 When this option is enabled, a Tor relay will write an overload general
2803 line in the server descriptor if the relay is considered overloaded.
2806 A relay is considered overloaded if at least one of these conditions is
2808 - A certain ratio of ntor onionskins are dropped.
2809 - The OOM was invoked.
2810 - TCP Port exhaustion.
2813 If ExtraInfoStatistics is enabled, it can also put two more specific
2814 overload lines in the extra-info document if at least one of these
2816 - Connection rate limits have been reached (read and write side).
2817 - File descriptors are exhausted.
2819 [[PaddingStatistics]] **PaddingStatistics** **0**|**1**::
2820 Relays and bridges only.
2821 When this option is enabled, Tor collects statistics for padding cells
2822 sent and received by this relay, in addition to total cell counts.
2823 These statistics are rounded, and omitted if traffic is low. This
2824 information is important for load balancing decisions related to padding.
2825 If ExtraInfoStatistics is enabled, it will be published
2826 as a part of the extra-info document. (Default: 1)
2828 == DIRECTORY SERVER OPTIONS
2830 The following options are useful only for directory servers. (Relays with
2831 enough bandwidth automatically become directory servers; see <<DirCache,DirCache>> for
2834 [[DirCache]] **DirCache** **0**|**1**::
2835 When this option is set, Tor caches all current directory documents except
2836 extra info documents, and accepts client requests for them. If
2837 **DownloadExtraInfo** is set, cached extra info documents are also cached.
2838 Setting **DirPort** is not required for **DirCache**, because clients
2839 connect via the ORPort by default. Setting either DirPort or BridgeRelay
2840 and setting DirCache to 0 is not supported. (Default: 1)
2842 [[DirPolicy]] **DirPolicy** __policy__,__policy__,__...__::
2843 Set an entrance policy for this server, to limit who can connect to the
2844 directory ports. The policies have the same form as exit policies above,
2845 except that port specifiers are ignored. Any address not matched by
2846 some entry in the policy is accepted.
2848 [[DirPort]] **DirPort** ['address'**:**]{empty}__PORT__|**auto** [_flags_]::
2849 If this option is nonzero, advertise the directory service on this port.
2850 Set it to "auto" to have Tor pick a port for you. This option can occur
2851 more than once, but only one advertised DirPort is supported: all
2852 but one DirPort must have the **NoAdvertise** flag set. (Default: 0) +
2854 The same flags are supported here as are supported by ORPort. This port can
2857 As of Tor 0.4.6.1-alpha, non-authoritative relays (see
2858 AuthoritativeDirectory) will not publish the DirPort but will still listen
2859 on it. Clients don't use the DirPorts on relays, so it is safe for you
2860 to remove the DirPort from your torrc configuration.
2862 [[DirPortFrontPage]] **DirPortFrontPage** __FILENAME__::
2863 When this option is set, it takes an HTML file and publishes it as "/" on
2864 the DirPort. Now relay operators can provide a disclaimer without needing
2865 to set up a separate webserver. There's a sample disclaimer in
2866 contrib/operator-tools/tor-exit-notice.html.
2868 [[MaxConsensusAgeForDiffs]] **MaxConsensusAgeForDiffs** __N__ **minutes**|**hours**|**days**|**weeks**::
2869 When this option is nonzero, Tor caches will not try to generate
2870 consensus diffs for any consensus older than this amount of time.
2871 If this option is set to zero, Tor will pick a reasonable default from
2872 the current networkstatus document. You should not set this
2873 option unless your cache is severely low on disk space or CPU.
2874 If you need to set it, keeping it above 3 or 4 hours will help clients
2875 much more than setting it to zero.
2879 == DENIAL OF SERVICE MITIGATION OPTIONS
2881 Tor has a series of built-in denial of service mitigation options that can be
2882 individually enabled/disabled and fine-tuned, but by default Tor directory
2883 authorities will define reasonable values for the network and no explicit
2884 configuration is required to make use of these protections.
2886 The following is a series of configuration options for relays and then options
2887 for onion services and how they work.
2889 The mitigations take place at relays, and are as follows:
2891 1. If a single client address makes too many concurrent connections (this is
2892 configurable via DoSConnectionMaxConcurrentCount), hang up on further
2895 2. If a single client IP address (v4 or v6) makes circuits too quickly
2896 (default values are more than 3 per second, with an allowed burst of 90,
2897 see <<DoSCircuitCreationRate,DoSCircuitCreationRate>> and
2898 <<DoSCircuitCreationBurst,DoSCircuitCreationBurst>>) while also having
2899 too many connections open (default is 3, see
2900 <<DoSCircuitCreationMinConnections,DoSCircuitCreationMinConnections>>),
2901 tor will refuse any new circuit (CREATE
2902 cells) for the next while (random value between 1 and 2 hours).
2904 3. If a client asks to establish a rendezvous point to you directly (ex:
2905 Tor2Web client), ignore the request.
2907 These defenses can be manually controlled by torrc options, but relays will
2908 also take guidance from consensus parameters using these same names, so there's
2909 no need to configure anything manually. In doubt, do not change those values.
2911 The values set by the consensus, if any, can be found here:
2912 https://consensus-health.torproject.org/#consensusparams
2914 If any of the DoS mitigations are enabled, a heartbeat message will appear in
2915 your log at NOTICE level which looks like:
2917 DoS mitigation since startup: 429042 circuits rejected, 17 marked addresses.
2918 2238 connections closed. 8052 single hop clients refused.
2920 The following options are useful only for a public relay. They control the
2921 Denial of Service mitigation subsystem described above.
2923 //Out of order because it logically belongs before the other DoSCircuitCreation options.
2924 [[DoSCircuitCreationEnabled]] **DoSCircuitCreationEnabled** **0**|**1**|**auto**::
2926 Enable circuit creation DoS mitigation. If set to 1 (enabled), tor will
2927 cache client IPs along with statistics in order to detect circuit DoS
2928 attacks. If an address is positively identified, tor will activate
2929 defenses against the address. See <<DoSCircuitCreationDefenseType,DoSCircuitCreationDefenseType>>
2930 option for more details. This is a client to relay detection only. "auto" means
2931 use the consensus parameter. If not defined in the consensus, the value is 0.
2934 [[DoSCircuitCreationBurst]] **DoSCircuitCreationBurst** __NUM__::
2936 The allowed circuit creation burst per client IP address. If the circuit
2937 rate and the burst are reached, a client is marked as executing a circuit
2938 creation DoS. "0" means use the consensus parameter. If not defined in the
2939 consensus, the value is 90.
2942 [[DoSCircuitCreationDefenseTimePeriod]] **DoSCircuitCreationDefenseTimePeriod** __N__ **seconds**|**minutes**|**hours**::
2944 The base time period in seconds that the DoS defense is activated for. The
2945 actual value is selected randomly for each activation from N+1 to 3/2 * N.
2946 "0" means use the consensus parameter. If not defined in the consensus,
2947 the value is 3600 seconds (1 hour).
2950 [[DoSCircuitCreationDefenseType]] **DoSCircuitCreationDefenseType** __NUM__::
2952 This is the type of defense applied to a detected client address. The
2953 possible values are:
2957 2: Refuse circuit creation for the DoSCircuitCreationDefenseTimePeriod period of time.
2959 "0" means use the consensus parameter. If not defined in the consensus, the value is 2.
2962 [[DoSCircuitCreationMinConnections]] **DoSCircuitCreationMinConnections** __NUM__::
2964 Minimum threshold of concurrent connections before a client address can be
2965 flagged as executing a circuit creation DoS. In other words, once a client
2966 address reaches the circuit rate and has a minimum of NUM concurrent
2967 connections, a detection is positive. "0" means use the consensus
2968 parameter. If not defined in the consensus, the value is 3.
2971 [[DoSCircuitCreationRate]] **DoSCircuitCreationRate** __NUM__::
2973 The allowed circuit creation rate per second applied per client IP
2974 address. If this option is 0, it obeys a consensus parameter. If not
2975 defined in the consensus, the value is 3.
2978 //out of order because it logically belongs before the other DoSConnection options.
2979 [[DoSConnectionEnabled]] **DoSConnectionEnabled** **0**|**1**|**auto**::
2981 Enable the connection DoS mitigation. If set to 1 (enabled), for client
2982 address only, this allows tor to mitigate against large number of
2983 concurrent connections made by a single IP address. "auto" means use the
2984 consensus parameter. If not defined in the consensus, the value is 0.
2987 [[DoSConnectionDefenseType]] **DoSConnectionDefenseType** __NUM__::
2989 This is the type of defense applied to a detected client address for the
2990 connection mitigation. The possible values are:
2994 2: Immediately close new connections.
2996 "0" means use the consensus parameter. If not defined in the consensus, the value is 2.
2999 [[DoSConnectionMaxConcurrentCount]] **DoSConnectionMaxConcurrentCount** __NUM__::
3001 The maximum threshold of concurrent connection from a client IP address.
3002 Above this limit, a defense selected by DoSConnectionDefenseType is
3003 applied. "0" means use the consensus parameter. If not defined in the
3004 consensus, the value is 100.
3007 [[DoSConnectionConnectRate]] **DoSConnectionConnectRate** __NUM__::
3009 The allowed rate of client connection from a single address per second.
3010 Coupled with the burst (see below), if the limit is reached, the address
3011 is marked and a defense is applied (DoSConnectionDefenseType) for a period
3012 of time defined by DoSConnectionConnectDefenseTimePeriod. If not defined
3013 or set to 0, it is controlled by a consensus parameter.
3016 [[DoSConnectionConnectBurst]] **DoSConnectionConnectBurst** __NUM__::
3018 The allowed burst of client connection from a single address per second.
3019 See the DoSConnectionConnectRate for more details on this detection. If
3020 not defined or set to 0, it is controlled by a consensus parameter.
3023 [[DoSConnectionConnectDefenseTimePeriod]] **DoSConnectionConnectDefenseTimePeriod** __N__ **seconds**|**minutes**|**hours**::
3025 The base time period in seconds that the client connection defense is
3026 activated for. The actual value is selected randomly for each activation
3027 from N+1 to 3/2 * N. If not defined or set to 0, it is controlled by a
3028 consensus parameter.
3031 [[DoSRefuseSingleHopClientRendezvous]] **DoSRefuseSingleHopClientRendezvous** **0**|**1**|**auto**::
3033 Refuse establishment of rendezvous points for single hop clients. In other
3034 words, if a client directly connects to the relay and sends an
3035 ESTABLISH_RENDEZVOUS cell, it is silently dropped. "auto" means use the
3036 consensus parameter. If not defined in the consensus, the value is 0.
3039 The following options are useful only for a exit relay.
3041 [[DoSStreamCreationEnabled]] **DoSStreamCreationEnabled** **0**|**1**|**auto**::
3043 Enable the stream DoS mitigation. If set to 1 (enabled), tor will apply
3044 rate limit on the creation of new streams and dns requests per circuit.
3045 "auto" means use the consensus parameter. If not defined in the consensus,
3046 the value is 0. (Default: auto)
3048 [[DoSStreamCreationDefenseType]] **DoSStreamCreationDefenseType** __NUM__::
3050 This is the type of defense applied to a detected circuit or stream for the
3051 stream mitigation. The possible values are:
3055 2: Reject the stream or resolve request.
3057 3: Close the circuit creating too many streams.
3059 "0" means use the consensus parameter. If not defined in the consensus, the value is 2.
3062 [[DoSStreamCreationRate]] **DoSStreamCreationRate** __NUM__::
3064 The allowed rate of stream creation from a single circuit per second. Coupled
3065 with the burst (see below), if the limit is reached, actions can be taken
3066 against the stream or circuit (DoSStreamCreationDefenseType). If not defined or
3067 set to 0, it is controlled by a consensus parameter. If not defined in the
3068 consensus, the value is 100. (Default: 0)
3070 [[DoSStreamCreationBurst]] **DoSStreamCreationBurst** __NUM__::
3072 The allowed burst of stream creation from a circuit per second.
3073 See the DoSStreamCreationRate for more details on this detection. If
3074 not defined or set to 0, it is controlled by a consensus parameter. If not
3075 defined in the consensus, the value is 300. (Default: 0)
3078 For onion services, mitigations are a work in progress and multiple options
3079 are currently available.
3081 The introduction point defense is a rate limit on the number of introduction
3082 requests that will be forwarded to a service by each of its honest
3083 introduction point routers. This can prevent some types of overwhelming floods
3084 from reaching the service, but it will also prevent legitimate clients from
3085 establishing new connections.
3087 The following options are per onion service:
3089 [[HiddenServiceEnableIntroDoSDefense]] **HiddenServiceEnableIntroDoSDefense** **0**|**1**::
3090 Enable DoS defense at the intropoint level. When this is enabled, the
3091 rate and burst parameter (see below) will be sent to the intro point which
3092 will then use them to apply rate limiting for introduction request to this
3095 The introduction point honors the consensus parameters except if this is
3096 specifically set by the service operator using this option. The service
3097 never looks at the consensus parameters in order to enable or disable this
3098 defense. (Default: 0)
3100 //Out of order because it logically belongs after HiddenServiceEnableIntroDoSDefense.
3101 [[HiddenServiceEnableIntroDoSBurstPerSec]] **HiddenServiceEnableIntroDoSBurstPerSec** __NUM__::
3102 The allowed client introduction burst per second at the introduction
3103 point. If this option is 0, it is considered infinite and thus if
3104 **HiddenServiceEnableIntroDoSDefense** is set, it then effectively
3105 disables the defenses. (Default: 200)
3107 [[HiddenServiceEnableIntroDoSRatePerSec]] **HiddenServiceEnableIntroDoSRatePerSec** __NUM__::
3108 The allowed client introduction rate per second at the introduction
3109 point. If this option is 0, it is considered infinite and thus if
3110 **HiddenServiceEnableIntroDoSDefense** is set, it then effectively
3111 disables the defenses. (Default: 25)
3113 The rate is the maximum number of clients a service will ask its introduction
3114 points to allow every seconds. And the burst is a parameter that allows that
3115 many within one second.
3117 For example, the default values of 25 and 200 respectively means that for every
3118 introduction points a service has (default 3 but can be configured with
3119 **HiddenServiceNumIntroductionPoints**), 25 clients per seconds will be allowed
3120 to reach the service and 200 at most within 1 second as a burst. This means
3121 that if 200 clients are seen within 1 second, it will take 8 seconds (200/25)
3122 for another client to be able to be allowed to introduce due to the rate of 25
3125 This might be too much for your use case or not, fine tuning these values is
3126 hard and are likely different for each service operator.
3128 Why is this not helping reachability of the service? Because the defenses are
3129 at the introduction point, an attacker can easily flood all introduction point
3130 rendering the service unavailable due to no client being able to pass through.
3131 But, the service itself is not overwhelmed with connections allowing it to
3132 function properly for the few clients that were able to go through or other any
3133 services running on the same tor instance.
3135 The bottom line is that this protects the network by preventing an onion
3136 service to flood the network with new rendezvous circuits that is reducing load
3139 A secondary mitigation is available, based on prioritized dispatch of rendezvous
3140 circuits for new connections. The queue is ordered based on effort a client
3141 chooses to spend at computing a proof-of-work function.
3143 The following options are per onion service:
3145 [[HiddenServicePoWDefensesEnabled]] **HiddenServicePoWDefensesEnabled** **0**|**1**::
3147 Enable proof-of-work based service DoS mitigation. If set to 1 (enabled),
3148 tor will include parameters for an optional client puzzle in the encrypted
3149 portion of this hidden service's descriptor. Incoming rendezvous requests
3150 will be prioritized based on the amount of effort a client chooses to make
3151 when computing a solution to the puzzle. The service will periodically update
3152 a suggested amount of effort, based on attack load, and disable the puzzle
3153 entirely when the service is not overloaded.
3156 [[HiddenServicePoWQueueRate]] **HiddenServicePoWQueueRate** __NUM__::
3158 The sustained rate of rendezvous requests to dispatch per second from
3159 the priority queue. Has no effect when proof-of-work is disabled.
3160 If this is set to 0 there's no explicit limit and we will process
3161 requests as quickly as possible.
3164 [[HiddenServicePoWQueueBurst]] **HiddenServicePoWQueueBurst** __NUM__::
3166 The maximum burst size for rendezvous requests handled from the
3167 priority queue at once. (Default: 2500)
3169 These options are applicable to both onion services and their clients:
3171 [[CompiledProofOfWorkHash]] **CompiledProofOfWorkHash** **0**|**1**|**auto**::
3172 When proof-of-work DoS mitigation is active, both the services themselves
3173 and the clients which connect will use a dynamically generated hash
3174 function as part of the puzzle computation.
3176 If this option is set to 1, puzzles will only be solved and verified using
3177 the compiled implementation (about 20x faster) and we choose to fail rather
3178 than using a slower fallback. If it's 0, the compiler will never be used.
3179 By default, the compiler is always tried if possible but the interpreter is
3180 available as a fallback. (Default: auto)
3182 See also <<opt-list-modules,`--list-modules`>>, these proof of work options
3183 have no effect unless the "`pow`" module is enabled at compile time.
3185 == DIRECTORY AUTHORITY SERVER OPTIONS
3187 The following options enable operation as a directory authority, and
3188 control how Tor behaves as a directory authority. You should not need
3189 to adjust any of them if you're running a regular relay or exit server
3190 on the public Tor network.
3192 // Out of order because it logically belongs first in this section
3193 [[AuthoritativeDirectory]] **AuthoritativeDirectory** **0**|**1**::
3194 When this option is set to 1, Tor operates as an authoritative directory
3195 server. Instead of caching the directory, it generates its own list of
3196 good servers, signs it, and sends that to the clients. Unless the clients
3197 already have you listed as a trusted directory, you probably do not want
3200 //Out of order because it belongs with the AuthoritativeDirectory option.
3201 [[BridgeAuthoritativeDir]] **BridgeAuthoritativeDir** **0**|**1**::
3202 When this option is set in addition to **AuthoritativeDirectory**, Tor
3203 accepts and serves server descriptors, but it caches and serves the main
3204 networkstatus documents rather than generating its own. (Default: 0)
3206 //Out of order because it belongs with the AuthoritativeDirectory option.
3207 [[V3AuthoritativeDirectory]] **V3AuthoritativeDirectory** **0**|**1**::
3208 When this option is set in addition to **AuthoritativeDirectory**, Tor
3209 generates version 3 network statuses and serves descriptors, etc as
3210 described in dir-spec.txt file of https://spec.torproject.org/[torspec]
3211 (for Tor clients and servers running at least 0.2.0.x).
3213 [[AuthDirBadExit]] **AuthDirBadExit** __AddressPattern...__::
3214 Authoritative directories only. A set of address patterns for servers that
3215 will be listed as bad exits in any network status document this authority
3216 publishes, if **AuthDirListBadExits** is set. +
3218 (The address pattern syntax here and in the options below
3219 is the same as for exit policies, except that you don't need to say
3220 "accept" or "reject", and ports are not needed.)
3222 [[AuthDirMiddleOnly]] **AuthDirMiddleOnly** __AddressPattern...__::
3223 Authoritative directories only. A set of address patterns for servers that
3224 will be listed as middle-only in any network status document this authority
3225 publishes, if **AuthDirListMiddleOnly** is set. +
3227 [[AuthDirFastGuarantee]] **AuthDirFastGuarantee** __N__ **bytes**|**KBytes**|**MBytes**|**GBytes**|**TBytes**|**KBits**|**MBits**|**GBits**|**TBits**::
3228 Authoritative directories only. If non-zero, always vote the
3229 Fast flag for any relay advertising this amount of capacity or
3230 more. (Default: 100 KBytes)
3232 [[AuthDirGuardBWGuarantee]] **AuthDirGuardBWGuarantee** __N__ **bytes**|**KBytes**|**MBytes**|**GBytes**|**TBytes**|**KBits**|**MBits**|**GBits**|**TBits**::
3233 Authoritative directories only. If non-zero, this advertised capacity
3234 or more is always sufficient to satisfy the bandwidth requirement
3235 for the Guard flag. (Default: 2 MBytes)
3237 [[AuthDirHasIPv6Connectivity]] **AuthDirHasIPv6Connectivity** **0**|**1**::
3238 Authoritative directories only. When set to 0, OR ports with an
3239 IPv6 address are not included in the authority's votes. When set to 1,
3240 IPv6 OR ports are tested for reachability like IPv4 OR ports. If the
3241 reachability test succeeds, the authority votes for the IPv6 ORPort, and
3242 votes Running for the relay. If the reachability test fails, the authority
3243 does not vote for the IPv6 ORPort, and does not vote Running (Default: 0) +
3245 The content of the consensus depends on the number of voting authorities
3246 that set AuthDirHasIPv6Connectivity:
3248 If no authorities set AuthDirHasIPv6Connectivity 1, there will be no
3249 IPv6 ORPorts in the consensus.
3251 If a minority of authorities set AuthDirHasIPv6Connectivity 1,
3252 unreachable IPv6 ORPorts will be removed from the consensus. But the
3253 majority of IPv4-only authorities will still vote the relay as Running.
3254 Reachable IPv6 ORPort lines will be included in the consensus
3256 If a majority of voting authorities set AuthDirHasIPv6Connectivity 1,
3257 relays with unreachable IPv6 ORPorts will not be listed as Running.
3258 Reachable IPv6 ORPort lines will be included in the consensus
3259 (To ensure that any valid majority will vote relays with unreachable
3260 IPv6 ORPorts not Running, 75% of authorities must set
3261 AuthDirHasIPv6Connectivity 1.)
3263 [[AuthDirInvalid]] **AuthDirInvalid** __AddressPattern...__::
3264 Authoritative directories only. A set of address patterns for servers that
3265 will never be listed as "valid" in any network status document that this
3266 authority publishes.
3268 [[AuthDirListBadExits]] **AuthDirListBadExits** **0**|**1**::
3269 Authoritative directories only. If set to 1, this directory has some
3270 opinion about which nodes are unsuitable as exit nodes. (Do not set this to
3271 1 unless you plan to list non-functioning exits as bad; otherwise, you are
3272 effectively voting in favor of every declared exit as an exit.)
3274 [[AuthDirListMiddleOnly]] **AuthDirListMiddleOnly** **0**|**1**::
3275 Authoritative directories only. If set to 1, this directory has some
3276 opinion about which nodes should only be used in the middle position.
3277 (Do not set this to 1 unless you plan to list questionable relays
3278 as "middle only"; otherwise, you are effectively voting _against_
3279 middle-only status for every relay.)
3281 [[AuthDirMaxServersPerAddr]] **AuthDirMaxServersPerAddr** __NUM__::
3282 Authoritative directories only. The maximum number of servers that we will
3283 list as acceptable on a single IP address. Set this to "0" for "no limit".
3286 [[AuthDirPinKeys]] **AuthDirPinKeys** **0**|**1**::
3287 Authoritative directories only. If non-zero, do not allow any relay to
3288 publish a descriptor if any other relay has reserved its <Ed25519,RSA>
3289 identity keypair. In all cases, Tor records every keypair it accepts
3290 in a journal if it is new, or if it differs from the most recently
3291 accepted pinning for one of the keys it contains. (Default: 1)
3293 [[AuthDirReject]] **AuthDirReject** __AddressPattern__...::
3294 Authoritative directories only. A set of address patterns for servers that
3295 will never be listed at all in any network status document that this
3296 authority publishes, or accepted as an OR address in any descriptor
3297 submitted for publication by this authority.
3299 [[AuthDirRejectRequestsUnderLoad]] **AuthDirRejectRequestsUnderLoad** **0**|**1**::
3300 If set, the directory authority will start rejecting directory requests
3301 from non relay connections by sending a 503 error code if it is under
3302 bandwidth pressure (reaching the configured limit if any). Relays will
3303 always tried to be answered even if this is on. (Default: 1)
3305 //Out of order because it logically belongs with the other CCs options.
3306 [[AuthDirBadExitCCs]] **AuthDirBadExitCCs** __CC__,... +
3308 //Out of order because it logically belongs with the other CCs options.
3309 [[AuthDirInvalidCCs]] **AuthDirInvalidCCs** __CC__,... +
3311 //Out of order because it logically belongs with the other CCs options.
3312 [[AuthDirMiddleOnlytCCs]] **AuthDirMiddleOnlyCCs** __CC__,... +
3314 [[AuthDirRejectCCs]] **AuthDirRejectCCs** __CC__,...::
3315 Authoritative directories only. These options contain a comma-separated
3316 list of country codes such that any server in one of those country codes
3317 will be marked as a bad exit/invalid for use, or rejected
3320 [[AuthDirSharedRandomness]] **AuthDirSharedRandomness** **0**|**1**::
3321 Authoritative directories only. Switch for the shared random protocol.
3322 If zero, the authority won't participate in the protocol. If non-zero
3323 (default), the flag "shared-rand-participate" is added to the authority
3324 vote indicating participation in the protocol. (Default: 1)
3326 [[AuthDirTestEd25519LinkKeys]] **AuthDirTestEd25519LinkKeys** **0**|**1**::
3327 Authoritative directories only. If this option is set to 0, then we treat
3328 relays as "Running" if their RSA key is correct when we probe them,
3329 regardless of their Ed25519 key. We should only ever set this option to 0
3330 if there is some major bug in Ed25519 link authentication that causes us
3331 to label all the relays as not Running. (Default: 1)
3333 [[AuthDirTestReachability]] **AuthDirTestReachability** **0**|**1**::
3334 Authoritative directories only. If set to 1, then we periodically
3335 check every relay we know about to see whether it is running.
3336 If set to 0, we vote Running for every relay, and don't perform
3337 these tests. (Default: 1)
3339 [[AuthDirVoteGuard]] **AuthDirVoteGuard** __node__,__node__,__...__::
3340 A list of identity fingerprints or country codes or address patterns of
3341 nodes to vote Guard for regardless of their uptime and bandwidth. See
3342 <<ExcludeNodes,ExcludeNodes>> for more information on how to specify nodes.
3344 [[AuthDirVoteGuardBwThresholdFraction]] **AuthDirVoteGuardBwThresholdFraction** __FRACTION__::
3345 The Guard flag bandwidth performance threshold fraction that is the
3346 fraction representing who gets the Guard flag out of all measured
3347 bandwidth. (Default: 0.75)
3349 [[AuthDirVoteGuardGuaranteeTimeKnown]] **AuthDirVoteGuardGuaranteeTimeKnown** __N__ **seconds**|**minutes**|**hours**|**days**|**weeks**::
3350 A relay with at least this much weighted time known can be considered
3351 familiar enough to be a guard. (Default: 8 days)
3353 [[AuthDirVoteGuardGuaranteeWFU]] **AuthDirVoteGuardGuaranteeWFU** __FRACTION__::
3354 A level of weighted fractional uptime (WFU) is that is sufficient to be a
3355 Guard. (Default: 0.98)
3357 [[AuthDirVoteStableGuaranteeMinUptime]] **AuthDirVoteStableGuaranteeMinUptime** __N__ **seconds**|**minutes**|**hours**|**days**|**weeks**::
3358 If a relay's uptime is at least this value, then it is always considered
3359 stable, regardless of the rest of the network. (Default: 30 days)
3361 [[AuthDirVoteStableGuaranteeMTBF]] **AuthDirVoteStableGuaranteeMTBF** __N__ **seconds**|**minutes**|**hours**|**days**|**weeks**::
3362 If a relay's mean time between failures (MTBF) is least this value, then
3363 it will always be considered stable. (Default: 5 days)
3365 [[BridgePassword]] **BridgePassword** __Password__::
3366 If set, contains an HTTP authenticator that tells a bridge authority to
3367 serve all requested bridge information. Used by the (only partially
3368 implemented) "bridge community" design, where a community of bridge
3369 relay operators all use an alternate bridge directory authority,
3370 and their target user audience can periodically fetch the list of
3371 available community bridges to stay up-to-date. (Default: not set)
3373 [[ConsensusParams]] **ConsensusParams** __STRING__::
3374 STRING is a space-separated list of key=value pairs that Tor will include
3375 in the "params" line of its networkstatus vote. This directive can be
3376 specified multiple times so you don't have to put it all on one line.
3378 [[DirAllowPrivateAddresses]] **DirAllowPrivateAddresses** **0**|**1**::
3379 If set to 1, Tor will accept server descriptors with arbitrary "Address"
3380 elements. Otherwise, if the address is not an IP address or is a private IP
3381 address, it will reject the server descriptor. Additionally, Tor
3382 will allow exit policies for private networks to fulfill Exit flag
3383 requirements. (Default: 0)
3385 [[GuardfractionFile]] **GuardfractionFile** __FILENAME__::
3386 V3 authoritative directories only. Configures the location of the
3387 guardfraction file which contains information about how long relays
3388 have been guards. (Default: unset)
3390 [[MinMeasuredBWsForAuthToIgnoreAdvertised]] **MinMeasuredBWsForAuthToIgnoreAdvertised** __N__::
3391 A total value, in abstract bandwidth units, describing how much
3392 measured total bandwidth an authority should have observed on the network
3393 before it will treat advertised bandwidths as wholly
3394 unreliable. (Default: 500)
3396 [[MinUptimeHidServDirectoryV2]] **MinUptimeHidServDirectoryV2** __N__ **seconds**|**minutes**|**hours**|**days**|**weeks**::
3397 Minimum uptime of a relay to be accepted as a hidden service directory
3398 by directory authorities. (Default: 96 hours)
3400 [[RecommendedClientVersions]] **RecommendedClientVersions** __STRING__::
3401 STRING is a comma-separated list of Tor versions currently believed to be
3402 safe for clients to use. This information is included in version 2
3403 directories. If this is not set then the value of **RecommendedVersions**
3404 is used. When this is set then **VersioningAuthoritativeDirectory** should
3407 [[RecommendedServerVersions]] **RecommendedServerVersions** __STRING__::
3408 STRING is a comma-separated list of Tor versions currently believed to be
3409 safe for servers to use. This information is included in version 2
3410 directories. If this is not set then the value of **RecommendedVersions**
3411 is used. When this is set then **VersioningAuthoritativeDirectory** should
3414 [[RecommendedVersions]] **RecommendedVersions** __STRING__::
3415 STRING is a comma-separated list of Tor versions currently believed to be
3416 safe. The list is included in each directory, and nodes which pull down the
3417 directory learn whether they need to upgrade. This option can appear
3418 multiple times: the values from multiple lines are spliced together. When
3419 this is set then **VersioningAuthoritativeDirectory** should be set too.
3421 [[MinimalAcceptedServerVersion]] **MinimalAcceptedServerVersion** __STRING__::
3422 STRING is the oldest Tor version accepted by the directory authority for
3423 relays and bridge. Any older version will be rejected.
3424 (Default: 0.4.7.0-alpha-dev)
3426 [[V3AuthDistDelay]] **V3AuthDistDelay** __N__ **seconds**|**minutes**|**hours**::
3427 V3 authoritative directories only. Configures the server's preferred delay
3428 between publishing its consensus and signature and assuming it has all the
3429 signatures from all the other authorities. Note that the actual time used
3430 is not the server's preferred time, but the consensus of all preferences.
3431 (Default: 5 minutes)
3433 [[V3AuthNIntervalsValid]] **V3AuthNIntervalsValid** __NUM__::
3434 V3 authoritative directories only. Configures the number of VotingIntervals
3435 for which each consensus should be valid for. Choosing high numbers
3436 increases network partitioning risks; choosing low numbers increases
3437 directory traffic. Note that the actual number of intervals used is not the
3438 server's preferred number, but the consensus of all preferences. Must be at
3439 least 2. (Default: 3)
3441 [[V3AuthUseLegacyKey]] **V3AuthUseLegacyKey** **0**|**1**::
3442 If set, the directory authority will sign consensuses not only with its
3443 own signing key, but also with a "legacy" key and certificate with a
3444 different identity. This feature is used to migrate directory authority
3445 keys in the event of a compromise. (Default: 0)
3447 [[V3AuthVoteDelay]] **V3AuthVoteDelay** __N__ **seconds**|**minutes**|**hours**::
3448 V3 authoritative directories only. Configures the server's preferred delay
3449 between publishing its vote and assuming it has all the votes from all the
3450 other authorities. Note that the actual time used is not the server's
3451 preferred time, but the consensus of all preferences. (Default: 5
3454 [[V3AuthVotingInterval]] **V3AuthVotingInterval** __N__ **minutes**|**hours**::
3455 V3 authoritative directories only. Configures the server's preferred voting
3456 interval. Note that voting will __actually__ happen at an interval chosen
3457 by consensus from all the authorities' preferred intervals. This time
3458 SHOULD divide evenly into a day. (Default: 1 hour)
3460 [[V3BandwidthsFile]] **V3BandwidthsFile** __FILENAME__::
3461 V3 authoritative directories only. Configures the location of the
3462 bandwidth-authority generated file storing information on relays' measured
3463 bandwidth capacities. To avoid inconsistent reads, bandwidth data should
3464 be written to temporary file, then renamed to the configured filename.
3467 [[VersioningAuthoritativeDirectory]] **VersioningAuthoritativeDirectory** **0**|**1**::
3468 When this option is set to 1, Tor adds information on which versions of
3469 Tor are still believed safe for use to the published directory. Each
3470 version 1 authority is automatically a versioning authority; version 2
3471 authorities provide this service optionally. See <<RecommendedVersions,RecommendedVersions>>,
3472 <<RecommendedClientVersions,RecommendedClientVersions>>, and <<RecommendedServerVersions,RecommendedServerVersions>>.
3474 == HIDDEN SERVICE OPTIONS
3476 The following options are used to configure a hidden service. Some options
3477 apply per service and some apply for the whole tor instance.
3479 The next section describes the per service options that can only be set
3480 **after** the **HiddenServiceDir** directive
3482 **PER SERVICE OPTIONS:**
3484 [[HiddenServiceAllowUnknownPorts]] **HiddenServiceAllowUnknownPorts** **0**|**1**::
3485 If set to 1, then connections to unrecognized ports do not cause the
3486 current hidden service to close rendezvous circuits. (Setting this to 0 is
3487 not an authorization mechanism; it is instead meant to be a mild
3488 inconvenience to port-scanners.) (Default: 0)
3490 [[HiddenServiceDir]] **HiddenServiceDir** __DIRECTORY__::
3491 Store data files for a hidden service in DIRECTORY. Every hidden service
3492 must have a separate directory. You may use this option multiple times to
3493 specify multiple services. If DIRECTORY does not exist, Tor will create it.
3494 Please note that you cannot add new Onion Service to already running Tor
3495 instance if **Sandbox** is enabled.
3496 (Note: in current versions of Tor, if DIRECTORY is a relative path,
3497 it will be relative to the current
3498 working directory of Tor instance, not to its DataDirectory. Do not
3499 rely on this behavior; it is not guaranteed to remain the same in future
3502 [[HiddenServiceDirGroupReadable]] **HiddenServiceDirGroupReadable** **0**|**1**::
3503 If this option is set to 1, allow the filesystem group to read the
3504 hidden service directory and hostname file. If the option is set to 0,
3505 only owner is able to read the hidden service directory. (Default: 0)
3506 Has no effect on Windows.
3508 [[HiddenServiceExportCircuitID]] **HiddenServiceExportCircuitID** __protocol__::
3509 The onion service will use the given protocol to expose the global circuit
3510 identifier of each inbound client circuit. The only
3511 protocol supported right now \'haproxy'. This option is only for v3
3512 services. (Default: none) +
3514 The haproxy option works in the following way: when the feature is
3515 enabled, the Tor process will write a header line when a client is connecting
3516 to the onion service. The header will look like this: +
3518 "PROXY TCP6 fc00:dead:beef:4dad::ffff:ffff ::1 65535 42\r\n" +
3520 We encode the "global circuit identifier" as the last 32-bits of the first
3521 IPv6 address. All other values in the header can safely be ignored. You can
3522 compute the global circuit identifier using the following formula given the
3523 IPv6 address "fc00:dead:beef:4dad::AABB:CCDD": +
3525 global_circuit_id = (0xAA << 24) + (0xBB << 16) + (0xCC << 8) + 0xDD; +
3527 In the case above, where the last 32-bits are 0xffffffff, the global circuit
3528 identifier would be 4294967295. You can use this value together with Tor's
3529 control port to terminate particular circuits using their global
3530 circuit identifiers. For more information about this see control-spec.txt. +
3532 The HAProxy version 1 protocol is described in detail at
3533 https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt
3535 [[HiddenServiceOnionBalanceInstance]] **HiddenServiceOnionBalanceInstance** **0**|**1**::
3537 If set to 1, this onion service becomes an OnionBalance instance and will
3538 accept client connections destined to an OnionBalance frontend. In this
3539 case, Tor expects to find a file named "ob_config" inside the
3540 **HiddenServiceDir** directory with content:
3542 MasterOnionAddress <frontend_onion_address>
3544 where <frontend_onion_address> is the onion address of the OnionBalance
3545 frontend (e.g. wrxdvcaqpuzakbfww5sxs6r2uybczwijzfn2ezy2osaj7iox7kl7nhad.onion).
3548 [[HiddenServiceMaxStreams]] **HiddenServiceMaxStreams** __N__::
3549 The maximum number of simultaneous streams (connections) per rendezvous
3550 circuit. The maximum value allowed is 65535. (Setting this to 0 will allow
3551 an unlimited number of simultaneous streams.) (Default: 0)
3553 [[HiddenServiceMaxStreamsCloseCircuit]] **HiddenServiceMaxStreamsCloseCircuit** **0**|**1**::
3554 If set to 1, then exceeding **HiddenServiceMaxStreams** will cause the
3555 offending rendezvous circuit to be torn down, as opposed to stream creation
3556 requests that exceed the limit being silently ignored. (Default: 0)
3558 [[HiddenServiceNumIntroductionPoints]] **HiddenServiceNumIntroductionPoints** __NUM__::
3559 Number of introduction points the hidden service will have. You can't
3560 have more than 20. (Default: 3)
3562 [[HiddenServicePort]] **HiddenServicePort** __VIRTPORT__ [__TARGET__]::
3563 Configure a virtual port VIRTPORT for a hidden service. You may use this
3564 option multiple times; each time applies to the service using the most
3565 recent HiddenServiceDir. By default, this option maps the virtual port to
3566 the same port on 127.0.0.1 over TCP. You may override the target port,
3567 address, or both by specifying a target of addr, port, addr:port, or
3568 **unix:**__path__. (You can specify an IPv6 target as [addr]:port. Unix
3569 paths may be quoted, and may use standard C escapes.)
3570 You may also have multiple lines with the same VIRTPORT: when a user
3571 connects to that VIRTPORT, one of the TARGETs from those lines will be
3572 chosen at random. Note that address-port pairs have to be comma-separated.
3574 [[HiddenServiceVersion]] **HiddenServiceVersion** **3**::
3575 A list of rendezvous service descriptor versions to publish for the hidden
3576 service. Currently, only version 3 is supported. (Default: 3)
3579 **PER INSTANCE OPTIONS:**
3581 [[HiddenServiceSingleHopMode]] **HiddenServiceSingleHopMode** **0**|**1**::
3582 **Experimental - Non Anonymous** Hidden Services on a tor instance in
3583 HiddenServiceSingleHopMode make one-hop (direct) circuits between the onion
3584 service server, and the introduction and rendezvous points. (Onion service
3585 descriptors are still posted using 3-hop paths, to avoid onion service
3586 directories blocking the service.)
3587 This option makes every hidden service instance hosted by a tor instance a
3588 Single Onion Service. One-hop circuits make Single Onion servers easily
3589 locatable, but clients remain location-anonymous. However, the fact that a
3590 client is accessing a Single Onion rather than a Hidden Service may be
3591 statistically distinguishable. +
3593 **WARNING:** Once a hidden service directory has been used by a tor
3594 instance in HiddenServiceSingleHopMode, it can **NEVER** be used again for
3595 a hidden service. It is best practice to create a new hidden service
3596 directory, key, and address for each new Single Onion Service and Hidden
3597 Service. It is not possible to run Single Onion Services and Hidden
3598 Services from the same tor instance: they should be run on different
3599 servers with different IP addresses. +
3601 HiddenServiceSingleHopMode requires HiddenServiceNonAnonymousMode to be set
3602 to 1. Since a Single Onion service is non-anonymous, you can not configure
3603 a SOCKSPort on a tor instance that is running in
3604 **HiddenServiceSingleHopMode**. Can not be changed while tor is running.
3607 //Out of order because it belongs after HiddenServiceSingleHopMode.
3608 [[HiddenServiceNonAnonymousMode]] **HiddenServiceNonAnonymousMode** **0**|**1**::
3609 Makes hidden services non-anonymous on this tor instance. Allows the
3610 non-anonymous HiddenServiceSingleHopMode. Enables direct connections in the
3611 server-side hidden service protocol. If you are using this option,
3612 you need to disable all client-side services on your Tor instance,
3613 including setting SOCKSPort to "0". Can not be changed while tor is
3614 running. (Default: 0)
3616 [[PublishHidServDescriptors]] **PublishHidServDescriptors** **0**|**1**::
3617 If set to 0, Tor will run any hidden services you configure, but it won't
3618 advertise them to the rendezvous directory. This option is only useful if
3619 you're using a Tor controller that handles hidserv publishing for you.
3622 [[client-authorization]]
3623 == CLIENT AUTHORIZATION
3627 To configure client authorization on the service side, the
3628 "<HiddenServiceDir>/authorized_clients/" directory needs to exist. Each file
3629 in that directory should be suffixed with ".auth" (i.e. "alice.auth"; the
3630 file name is irrelevant) and its content format MUST be:
3632 <auth-type>:<key-type>:<base32-encoded-public-key>
3634 The supported <auth-type> are: "descriptor". The supported <key-type> are:
3635 "x25519". The <base32-encoded-public-key> is the base32 representation of
3636 the raw key bytes only (32 bytes for x25519).
3638 Each file MUST contain one line only. Any malformed file will be
3639 ignored. Client authorization will only be enabled for the service if tor
3640 successfully loads at least one authorization file.
3642 Note that once you've configured client authorization, anyone else with the
3643 address won't be able to access it from this point on. If no authorization is
3644 configured, the service will be accessible to anyone with the onion address.
3646 Revoking a client can be done by removing their ".auth" file, however the
3647 revocation will be in effect only after the tor process gets restarted or if
3648 a SIGHUP takes place.
3652 To access a v3 onion service with client authorization as a client, make sure
3653 you have ClientOnionAuthDir set in your torrc. Then, in the
3654 <ClientOnionAuthDir> directory, create an .auth_private file for the onion
3655 service corresponding to this key (i.e. 'bob_onion.auth_private'). The
3656 contents of the <ClientOnionAuthDir>/<user>.auth_private file should look like:
3658 <56-char-onion-addr-without-.onion-part>:descriptor:x25519:<x25519 private key in base32>
3660 For more information, please see https://2019.www.torproject.org/docs/tor-onion-service.html.en#ClientAuthorization .
3662 == TESTING NETWORK OPTIONS
3664 The following options are used for running a testing Tor network.
3666 //Out of order because it logically belongs first in this section.
3667 [[TestingTorNetwork]] **TestingTorNetwork** **0**|**1**::
3668 If set to 1, Tor adjusts default values of the configuration options below,
3669 so that it is easier to set up a testing Tor network. May only be set if
3670 non-default set of DirAuthorities is set. Cannot be unset while Tor is
3674 DirAllowPrivateAddresses 1
3675 EnforceDistinctSubnets 0
3676 AuthDirMaxServersPerAddr 0
3677 ClientBootstrapConsensusAuthorityDownloadInitialDelay 0
3678 ClientBootstrapConsensusFallbackDownloadInitialDelay 0
3679 ClientBootstrapConsensusAuthorityOnlyDownloadInitialDelay 0
3680 ClientDNSRejectInternalAddresses 0
3681 ClientRejectInternalAddresses 0
3682 CountPrivateBandwidth 1
3683 ExitPolicyRejectPrivate 0
3684 ExtendAllowPrivateAddresses 1
3685 V3AuthVotingInterval 5 minutes
3686 V3AuthVoteDelay 20 seconds
3687 V3AuthDistDelay 20 seconds
3688 TestingV3AuthInitialVotingInterval 150 seconds
3689 TestingV3AuthInitialVoteDelay 20 seconds
3690 TestingV3AuthInitialDistDelay 20 seconds
3691 TestingAuthDirTimeToLearnReachability 0 minutes
3692 MinUptimeHidServDirectoryV2 0 minutes
3693 TestingServerDownloadInitialDelay 0
3694 TestingClientDownloadInitialDelay 0
3695 TestingServerConsensusDownloadInitialDelay 0
3696 TestingClientConsensusDownloadInitialDelay 0
3697 TestingBridgeDownloadInitialDelay 10
3698 TestingBridgeBootstrapDownloadInitialDelay 0
3699 TestingClientMaxIntervalWithoutRequest 5 seconds
3700 TestingDirConnectionMaxStall 30 seconds
3701 TestingEnableConnBwEvent 1
3702 TestingEnableCellStatsEvent 1
3704 [[TestingAuthDirTimeToLearnReachability]] **TestingAuthDirTimeToLearnReachability** __N__ **seconds**|**minutes**|**hours**::
3705 After starting as an authority, do not make claims about whether routers
3706 are Running until this much time has passed. Changing this requires
3707 that **TestingTorNetwork** is set. (Default: 30 minutes)
3709 [[TestingAuthKeyLifetime]] **TestingAuthKeyLifetime** __N__ **seconds**|**minutes**|**hours**|**days**|**weeks**|**months**::
3710 Overrides the default lifetime for a signing Ed25519 TLS Link authentication
3714 [[TestingAuthKeySlop]] **TestingAuthKeySlop** __N__ **seconds**|**minutes**|**hours** +
3716 [[TestingBridgeBootstrapDownloadInitialDelay]] **TestingBridgeBootstrapDownloadInitialDelay** __N__::
3717 Initial delay in seconds for how long clients should wait before
3718 downloading a bridge descriptor for a new bridge.
3719 Changing this requires that **TestingTorNetwork** is set. (Default: 0)
3721 [[TestingBridgeDownloadInitialDelay]] **TestingBridgeDownloadInitialDelay** __N__::
3722 How long to wait (in seconds) once clients have successfully
3723 downloaded a bridge descriptor, before trying another download for
3724 that same bridge. Changing this requires that **TestingTorNetwork**
3725 is set. (Default: 10800)
3727 [[TestingClientConsensusDownloadInitialDelay]] **TestingClientConsensusDownloadInitialDelay** __N__::
3728 Initial delay in seconds for when clients should download consensuses. Changing this
3729 requires that **TestingTorNetwork** is set. (Default: 0)
3731 [[TestingClientDownloadInitialDelay]] **TestingClientDownloadInitialDelay** __N__::
3732 Initial delay in seconds for when clients should download things in general. Changing this
3733 requires that **TestingTorNetwork** is set. (Default: 0)
3735 [[TestingClientMaxIntervalWithoutRequest]] **TestingClientMaxIntervalWithoutRequest** __N__ **seconds**|**minutes**::
3736 When directory clients have only a few descriptors to request, they batch
3737 them until they have more, or until this amount of time has passed.
3738 Changing this requires that **TestingTorNetwork** is set. (Default: 10
3741 [[TestingDirAuthVoteExit]] **TestingDirAuthVoteExit** __node__,__node__,__...__::
3742 A list of identity fingerprints, country codes, and
3743 address patterns of nodes to vote Exit for regardless of their
3744 uptime, bandwidth, or exit policy. See <<ExcludeNodes,ExcludeNodes>>
3745 for more information on how to specify nodes. +
3747 In order for this option to have any effect, **TestingTorNetwork**
3748 has to be set. See <<ExcludeNodes,ExcludeNodes>> for more
3749 information on how to specify nodes.
3751 [[TestingDirAuthVoteExitIsStrict]] **TestingDirAuthVoteExitIsStrict** **0**|**1** ::
3752 If True (1), a node will never receive the Exit flag unless it is specified
3753 in the **TestingDirAuthVoteExit** list, regardless of its uptime, bandwidth,
3756 In order for this option to have any effect, **TestingTorNetwork**
3759 [[TestingDirAuthVoteGuard]] **TestingDirAuthVoteGuard** __node__,__node__,__...__::
3760 A list of identity fingerprints and country codes and
3761 address patterns of nodes to vote Guard for regardless of their
3762 uptime and bandwidth. See <<ExcludeNodes,ExcludeNodes>> for more
3763 information on how to specify nodes. +
3765 In order for this option to have any effect, **TestingTorNetwork**
3768 [[TestingDirAuthVoteGuardIsStrict]] **TestingDirAuthVoteGuardIsStrict** **0**|**1** ::
3769 If True (1), a node will never receive the Guard flag unless it is specified
3770 in the **TestingDirAuthVoteGuard** list, regardless of its uptime and bandwidth. +
3772 In order for this option to have any effect, **TestingTorNetwork**
3775 [[TestingDirAuthVoteHSDir]] **TestingDirAuthVoteHSDir** __node__,__node__,__...__::
3776 A list of identity fingerprints and country codes and
3777 address patterns of nodes to vote HSDir for regardless of their
3778 uptime and DirPort. See <<ExcludeNodes,ExcludeNodes>> for more
3779 information on how to specify nodes. +
3781 In order for this option to have any effect, **TestingTorNetwork**
3784 [[TestingDirAuthVoteHSDirIsStrict]] **TestingDirAuthVoteHSDirIsStrict** **0**|**1** ::
3785 If True (1), a node will never receive the HSDir flag unless it is specified
3786 in the **TestingDirAuthVoteHSDir** list, regardless of its uptime and DirPort. +
3788 In order for this option to have any effect, **TestingTorNetwork**
3791 [[TestingDirConnectionMaxStall]] **TestingDirConnectionMaxStall** __N__ **seconds**|**minutes**::
3792 Let a directory connection stall this long before expiring it.
3793 Changing this requires that **TestingTorNetwork** is set. (Default:
3796 [[TestingEnableCellStatsEvent]] **TestingEnableCellStatsEvent** **0**|**1**::
3797 If this option is set, then Tor controllers may register for CELL_STATS
3798 events. Changing this requires that **TestingTorNetwork** is set.
3801 [[TestingEnableConnBwEvent]] **TestingEnableConnBwEvent** **0**|**1**::
3802 If this option is set, then Tor controllers may register for CONN_BW
3803 events. Changing this requires that **TestingTorNetwork** is set.
3806 [[TestingLinkCertLifetime]] **TestingLinkCertLifetime** __N__ **seconds**|**minutes**|**hours**|**days**|**weeks**|**months**::
3807 Overrides the default lifetime for the certificates used to authenticate
3808 our X509 link cert with our ed25519 signing key.
3811 [[TestingLinkKeySlop]] **TestingLinkKeySlop** __N__ **seconds**|**minutes**|**hours** +
3813 [[TestingMinExitFlagThreshold]] **TestingMinExitFlagThreshold** __N__ **KBytes**|**MBytes**|**GBytes**|**TBytes**|**KBits**|**MBits**|**GBits**|**TBits**::
3814 Sets a lower-bound for assigning an exit flag when running as an
3815 authority on a testing network. Overrides the usual default lower bound
3816 of 4 KBytes. (Default: 0)
3818 [[TestingMinFastFlagThreshold]] **TestingMinFastFlagThreshold** __N__ **bytes**|**KBytes**|**MBytes**|**GBytes**|**TBytes**|**KBits**|**MBits**|**GBits**|**TBits**::
3819 Minimum value for the Fast flag. Overrides the ordinary minimum taken
3820 from the consensus when TestingTorNetwork is set. (Default: 0.)
3822 [[TestingMinTimeToReportBandwidth]] **TestingMinTimeToReportBandwidth** __N__ **seconds**|**minutes**|**hours**::
3823 Do not report our measurements for our maximum observed bandwidth for any
3824 time period that has lasted for less than this amount of time.
3825 Values over 1 day have no effect. (Default: 1 day)
3827 [[TestingServerConsensusDownloadInitialDelay]] **TestingServerConsensusDownloadInitialDelay** __N__::
3828 Initial delay in seconds for when servers should download consensuses. Changing this
3829 requires that **TestingTorNetwork** is set. (Default: 0)
3831 [[TestingServerDownloadInitialDelay]] **TestingServerDownloadInitialDelay** __N__::
3832 Initial delay in seconds for when servers should download things in general. Changing this
3833 requires that **TestingTorNetwork** is set. (Default: 0)
3835 [[TestingSigningKeySlop]] **TestingSigningKeySlop** __N__ **seconds**|**minutes**|**hours**::
3836 How early before the official expiration of a an Ed25519 signing key do
3837 we replace it and issue a new key?
3838 (Default: 3 hours for link and auth; 1 day for signing.)
3840 [[TestingV3AuthInitialDistDelay]] **TestingV3AuthInitialDistDelay** __N__ **seconds**|**minutes**|**hours**::
3841 Like V3AuthDistDelay, but for initial voting interval before
3842 the first consensus has been created. Changing this requires that
3843 **TestingTorNetwork** is set. (Default: 5 minutes)
3845 [[TestingV3AuthInitialVoteDelay]] **TestingV3AuthInitialVoteDelay** __N__ **seconds**|**minutes**|**hours**::
3846 Like V3AuthVoteDelay, but for initial voting interval before
3847 the first consensus has been created. Changing this requires that
3848 **TestingTorNetwork** is set. (Default: 5 minutes)
3850 [[TestingV3AuthInitialVotingInterval]] **TestingV3AuthInitialVotingInterval** __N__ **seconds**|**minutes**|**hours**::
3851 Like V3AuthVotingInterval, but for initial voting interval before the first
3852 consensus has been created. Changing this requires that
3853 **TestingTorNetwork** is set. (Default: 30 minutes)
3855 [[TestingV3AuthVotingStartOffset]] **TestingV3AuthVotingStartOffset** __N__ **seconds**|**minutes**|**hours**::
3856 Directory authorities offset voting start time by this much.
3857 Changing this requires that **TestingTorNetwork** is set. (Default: 0)
3860 == NON-PERSISTENT OPTIONS
3862 These options are not saved to the torrc file by the "SAVECONF" controller
3863 command. Other options of this type are documented in control-spec.txt,
3864 section 5.4. End-users should mostly ignore them.
3866 [[UnderscorePorts]] **{dbl_}ControlPort**, **{dbl_}DirPort**, **{dbl_}DNSPort**, **{dbl_}ExtORPort**, **{dbl_}NATDPort**, **{dbl_}ORPort**, **{dbl_}SocksPort**, **{dbl_}TransPort**::
3867 These underscore-prefixed options are variants of the regular Port
3868 options. They behave the same, except they are not saved to the
3869 torrc file by the controller's SAVECONF command.
3874 Tor catches the following signals:
3876 [[SIGTERM]] **SIGTERM**::
3877 Tor will catch this, clean up and sync to disk if necessary, and exit.
3879 [[SIGINT]] **SIGINT**::
3880 Tor clients behave as with SIGTERM; but Tor servers will do a controlled
3881 slow shutdown, closing listeners and waiting 30 seconds before exiting.
3882 (The delay can be configured with the ShutdownWaitLength config option.)
3884 [[SIGHUP]] **SIGHUP**::
3885 The signal instructs Tor to reload its configuration (including closing and
3886 reopening logs), and kill and restart its helper processes if applicable.
3888 [[SIGUSR1]] **SIGUSR1**::
3889 Log statistics about current connections, past connections, and throughput.
3891 [[SIGUSR2]] **SIGUSR2**::
3892 Switch all logs to loglevel debug. You can go back to the old loglevels by
3895 [[SIGCHLD]] **SIGCHLD**::
3896 Tor receives this signal when one of its helper processes has exited, so it
3899 [[SIGPIPE]] **SIGPIPE**::
3900 Tor catches this signal and ignores it.
3902 [[SIGXFSZ]] **SIGXFSZ**::
3903 If this signal exists on your platform, Tor catches and ignores it.
3907 **`@CONFDIR@/torrc`**::
3908 Default location of the configuration file.
3910 **`$HOME/.torrc`**::
3911 Fallback location for torrc, if @CONFDIR@/torrc is not found.
3913 **`@LOCALSTATEDIR@/lib/tor/`**::
3914 The tor process stores keys and other data here.
3916 __CacheDirectory__/**`cached-certs`**::
3917 Contains downloaded directory key certificates that are used to verify
3918 authenticity of documents generated by the Tor directory authorities.
3920 __CacheDirectory__/**`cached-consensus`** and/or **`cached-microdesc-consensus`**::
3921 The most recent consensus network status document we've downloaded.
3923 __CacheDirectory__/**`cached-descriptors`** and **`cached-descriptors.new`**::
3924 These files contain the downloaded router statuses. Some routers may appear
3925 more than once; if so, the most recently published descriptor is
3926 used. Lines beginning with **`@`**-signs are annotations that contain more
3927 information about a given router. The **`.new`** file is an append-only
3928 journal; when it gets too large, all entries are merged into a new
3929 cached-descriptors file.
3931 __CacheDirectory__/**`cached-extrainfo`** and **`cached-extrainfo.new`**::
3932 Similar to **cached-descriptors**, but holds optionally-downloaded
3933 "extra-info" documents. Relays use these documents to send inessential
3934 information about statistics, bandwidth history, and network health to the
3935 authorities. They aren't fetched by default. See <<DownloadExtraInfo,DownloadExtraInfo>>
3936 for more information.
3938 __CacheDirectory__/**`cached-microdescs`** and **`cached-microdescs.new`**::
3939 These files hold downloaded microdescriptors. Lines beginning with
3940 **`@`**-signs are annotations that contain more information about a given
3941 router. The **`.new`** file is an append-only journal; when it gets too
3942 large, all entries are merged into a new cached-microdescs file.
3944 __DataDirectory__/**`state`**::
3945 Contains a set of persistent key-value mappings. These include:
3946 - the current entry guards and their status.
3947 - the current bandwidth accounting values.
3948 - when the file was last written
3949 - what version of Tor generated the state file
3950 - a short history of bandwidth usage, as produced in the server
3953 __DataDirectory__/**`sr-state`**::
3954 _Authority only_. This file is used to record information about the current
3955 status of the shared-random-value voting state.
3957 __CacheDirectory__/**`diff-cache`**::
3958 _Directory cache only_. Holds older consensuses and diffs from oldest to
3959 the most recent consensus of each type compressed in various ways. Each
3960 file contains a set of key-value arguments describing its contents,
3961 followed by a single NUL byte, followed by the main file contents.
3963 __DataDirectory__/**`bw_accounting`**::
3964 This file is obsolete and the data is now stored in the **`state`** file
3965 instead. Used to track bandwidth accounting values (when the current period
3966 starts and ends; how much has been read and written so far this period).
3968 __DataDirectory__/**`control_auth_cookie`**::
3969 This file can be used only when cookie authentication is enabled. Used for
3970 cookie authentication with the controller. Location can be overridden by
3971 the `CookieAuthFile` configuration option. Regenerated on startup. See
3972 control-spec.txt in https://spec.torproject.org/[torspec] for details.
3974 __DataDirectory__/**`lock`**::
3975 This file is used to prevent two Tor instances from using the same data
3976 directory. If access to this file is locked, data directory is already in
3979 __DataDirectory__/**`key-pinning-journal`**::
3980 Used by authorities. A line-based file that records mappings between
3981 RSA1024 and Ed25519 identity keys. Authorities enforce these mappings, so
3982 that once a relay has picked an Ed25519 key, stealing or factoring the
3983 RSA1024 key will no longer let an attacker impersonate the relay.
3985 __KeyDirectory__/**`authority_identity_key`**::
3986 A v3 directory authority's master identity key, used to authenticate its
3987 signing key. Tor doesn't use this while it's running. The tor-gencert
3988 program uses this. If you're running an authority, you should keep this key
3989 offline, and not put it in this file.
3991 __KeyDirectory__/**`authority_certificate`**::
3992 Only directory authorities use this file. A v3 directory authority's
3993 certificate which authenticates the authority's current vote- and
3994 consensus-signing key using its master identity key.
3996 __KeyDirectory__/**`authority_signing_key`**::
3997 Only directory authorities use this file. A v3 directory authority's
3998 signing key that is used to sign votes and consensuses. Corresponds to the
3999 **authority_certificate** cert.
4001 __KeyDirectory__/**`legacy_certificate`**::
4002 As authority_certificate; used only when `V3AuthUseLegacyKey` is set. See
4003 documentation for <<V3AuthUseLegacyKey,V3AuthUseLegacyKey>>.
4005 __KeyDirectory__/**`legacy_signing_key`**::
4006 As authority_signing_key: used only when `V3AuthUseLegacyKey` is set. See
4007 documentation for <<V3AuthUseLegacyKey,V3AuthUseLegacyKey>>.
4009 __KeyDirectory__/**`secret_id_key`**::
4010 A relay's RSA1024 permanent identity key, including private and public
4011 components. Used to sign router descriptors, and to sign other keys.
4013 __KeyDirectory__/**`ed25519_master_id_public_key`**::
4014 The public part of a relay's Ed25519 permanent identity key.
4016 __KeyDirectory__/**`ed25519_master_id_secret_key`**::
4017 The private part of a relay's Ed25519 permanent identity key. This key is
4018 used to sign the medium-term ed25519 signing key. This file can be kept
4019 offline or encrypted. If so, Tor will not be able to generate new signing
4020 keys automatically; you'll need to use `tor --keygen` to do so.
4022 __KeyDirectory__/**`ed25519_signing_secret_key`**::
4023 The private and public components of a relay's medium-term Ed25519 signing
4024 key. This key is authenticated by the Ed25519 master key, which in turn
4025 authenticates other keys (and router descriptors).
4027 __KeyDirectory__/**`ed25519_signing_cert`**::
4028 The certificate which authenticates "ed25519_signing_secret_key" as having
4029 been signed by the Ed25519 master key.
4031 __KeyDirectory__/**`secret_onion_key`** and **`secret_onion_key.old`**::
4032 A relay's RSA1024 short-term onion key. Used to decrypt old-style ("TAP")
4033 circuit extension requests. The **`.old`** file holds the previously
4034 generated key, which the relay uses to handle any requests that were made
4035 by clients that didn't have the new one.
4037 __KeyDirectory__/**`secret_onion_key_ntor`** and **`secret_onion_key_ntor.old`**::
4038 A relay's Curve25519 short-term onion key. Used to handle modern ("ntor")
4039 circuit extension requests. The **`.old`** file holds the previously
4040 generated key, which the relay uses to handle any requests that were made
4041 by clients that didn't have the new one.
4043 __DataDirectory__/**`fingerprint`**::
4044 Only used by servers. Contains the fingerprint of the server's RSA
4047 __DataDirectory__/**`fingerprint-ed25519`**::
4048 Only used by servers. Contains the fingerprint of the server's ed25519
4051 __DataDirectory__/**`hashed-fingerprint`**::
4052 Only used by bridges. Contains the hashed fingerprint of the bridge's
4053 identity key. (That is, the hash of the hash of the identity key.)
4055 __DataDirectory__/**`approved-routers`**::
4056 Only used by authoritative directory servers. Each line lists a status and
4057 an identity, separated by whitespace. Identities can be hex-encoded RSA
4058 fingerprints, or base-64 encoded ed25519 public keys. See the
4059 **fingerprint** file in a tor relay's __DataDirectory__ for an example
4060 fingerprint line. If the status is **!reject**, then descriptors from the
4061 given identity are rejected by this server. If it is **!invalid** then
4062 descriptors are accepted, but marked in the vote as not valid.
4063 If it is **!badexit**, then the authority will vote for it to receive a
4064 BadExit flag, indicating that it shouldn't be used for traffic leaving
4065 the Tor network. If it is **!middleonly**, then the authority will
4066 vote for it to only be used in the middle of circuits.
4067 (Neither rejected nor invalid relays are included in the consensus.)
4069 __DataDirectory__/**`v3-status-votes`**::
4070 Only for v3 authoritative directory servers. This file contains status
4071 votes from all the authoritative directory servers.
4073 __CacheDirectory__/**`unverified-consensus`**::
4074 Contains a network consensus document that has been downloaded, but which
4075 we didn't have the right certificates to check yet.
4077 __CacheDirectory__/**`unverified-microdesc-consensus`**::
4078 Contains a microdescriptor-flavored network consensus document that has
4079 been downloaded, but which we didn't have the right certificates to check
4082 __DataDirectory__/**`unparseable-desc`**::
4083 Onion server descriptors that Tor was unable to parse are dumped to this
4084 file. Only used for debugging.
4086 __DataDirectory__/**`router-stability`**::
4087 Only used by authoritative directory servers. Tracks measurements for
4088 router mean-time-between-failures so that authorities have a fair idea of
4089 how to set their Stable flags.
4091 __DataDirectory__/**`stats/dirreq-stats`**::
4092 Only used by directory caches and authorities. This file is used to
4093 collect directory request statistics.
4095 __DataDirectory__/**`stats/entry-stats`**::
4096 Only used by servers. This file is used to collect incoming connection
4097 statistics by Tor entry nodes.
4099 __DataDirectory__/**`stats/bridge-stats`**::
4100 Only used by servers. This file is used to collect incoming connection
4101 statistics by Tor bridges.
4103 __DataDirectory__/**`stats/exit-stats`**::
4104 Only used by servers. This file is used to collect outgoing connection
4105 statistics by Tor exit routers.
4107 __DataDirectory__/**`stats/buffer-stats`**::
4108 Only used by servers. This file is used to collect buffer usage
4111 __DataDirectory__/**`stats/conn-stats`**::
4112 Only used by servers. This file is used to collect approximate connection
4113 history (number of active connections over time).
4115 __DataDirectory__/**`stats/hidserv-stats`**::
4116 Only used by servers. This file is used to collect approximate counts
4117 of what fraction of the traffic is hidden service rendezvous traffic, and
4118 approximately how many hidden services the relay has seen.
4120 __DataDirectory__/**`networkstatus-bridges`**::
4121 Only used by authoritative bridge directories. Contains information
4122 about bridges that have self-reported themselves to the bridge
4125 __HiddenServiceDirectory__/**`hostname`**::
4126 The <base32-encoded-fingerprint>.onion domain name for this hidden service.
4127 If the hidden service is restricted to authorized clients only, this file
4128 also contains authorization data for all clients.
4131 The clients will ignore any extra subdomains prepended to a hidden
4132 service hostname. Supposing you have "xyz.onion" as your hostname, you
4133 can ask your clients to connect to "www.xyz.onion" or "irc.xyz.onion"
4134 for virtual-hosting purposes.
4136 __HiddenServiceDirectory__/**`private_key`**::
4137 Contains the private key for this hidden service.
4139 __HiddenServiceDirectory__/**`client_keys`**::
4140 Contains authorization data for a hidden service that is only accessible by
4143 __HiddenServiceDirectory__/**`onion_service_non_anonymous`**::
4144 This file is present if a hidden service key was created in
4145 **HiddenServiceNonAnonymousMode**.
4149 For more information, refer to the Tor Project website at
4150 https://www.torproject.org/ and the Tor specifications at
4151 https://spec.torproject.org. See also **torsocks**(1) and **torify**(1).
4155 Because Tor is still under development, there may be plenty of bugs. Please
4156 report them at https://bugs.torproject.org/.