tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

tor.1.txt (221279B)


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