| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799 | .TH TOR 1 "January 2006" "TOR".SH NAMEtor \- The second-generation onion router.SH SYNOPSIS.B tor[\fIOPTION value\fR]....SH DESCRIPTION.I toris a connection-oriented anonymizing communicationservice. Users choose a source-routed path through a set of nodes, andnegotiate a "virtual circuit" through the network, in which each nodeknows its predecessor and successor, but no others. Traffic flowing downthe circuit is unwrapped by a symmetric key at each node, which revealsthe downstream node..PPBasically \fItor\fR provides a distributed network of servers ("onionrouters"). Users bounce their TCP streams -- web traffic, ftp, ssh, etc --around the routers, and recipients, observers, and even the routersthemselves have difficulty tracking the source of the stream..SH OPTIONS\fB-h, -help\fPDisplay a short help message and exit..LP.TP\fB-f \fR\fIFILE\fPFILE contains further "option value" pairs. (Default: @CONFDIR@/torrc).LP.TPOther options can be specified either on the command-line (\fI--optionvalue\fR), or in the configuration file (\fIoption value\fR).Options are case-insensitive..LP.TP\fBBandwidthRate \fR\fIN\fR \fBbytes\fR|\fBKB\fR|\fBMB\fR|\fBGB\fR|\fBTB\fPA token bucket limits the average incoming bandwidth on this node tothe specified number of bytes per second. (Default: 3 MB).LP.TP\fBBandwidthBurst \fR\fIN\fR \fBbytes\fR|\fBKB\fR|\fBMB\fR|\fBGB\fR|\fBTB\fPLimit the maximum token bucket size (also known as the burst) to thegiven number of bytes. (Default: 6 MB).LP.TP\fBMaxAdvertisedBandwidth \fR\fIN\fR \fBbytes\fR|\fBKB\fR|\fBMB\fR|\fBGB\fR|\fBTB\fPIf set, we will not advertise more than this amount of bandwidth for ourBandwidthRate. Server operators who want to reduce the number of clientswho ask to build circuits through them (since this is proportional toadvertised bandwidth rate) can thus reduce the CPU demands on theirserver without impacting network performance..LP.TP\fBConnLimit \fR\fINUM\fPThe minimum number of file descriptors that must be available tothe Tor process before it will start. Tor will ask the OS for asmany file descriptors as the OS will allow (you can find thisby "ulimit -H -n"). If this number is less than ConnLimit, thenTor will refuse to start.You probably don't need to adjust this. It has no effect onWindows since that platform lacks getrlimit(). (Default: 1024).LP.TP\fBControlPort \fR\fIPort\fPIf set, Tor will accept connections onthis port, and allow those connections to control the Tor process using theTor Control Protocol (described in control-spec.txt).  Note: unless you alsospecify one of \fBHashedControlPassword\fP or \fBCookieAuthentication\fP,setting this option will cause Tor to allow any process on the local host tocontrol it..LP.TP\fBControlListenAddress \fR\fIIP\fR[:\fIPORT\fR]\fPBind the controller listener to this address. If you specify a port,bind to this port rather than the one specified in ControlPort. Westrongly recommend that you leave this alone unless you know what you'redoing, since giving attackers access to your control listener is reallydangerous. (Default: 127.0.0.1).LP.TP\fBHashedControlPassword \fR\fIhashed_password\fPDon't allow any connections on the control port except when the other processknows the password whose one-way hash is \fIhashed_password\fP.  You cancompute the hash of a password by running "tor --hash-password\fIpassword\fP"..LP.TP\fBCookieAuthentication \fR\fB0\fR|\fB1\fPIf this option is set to 1, don't allow any connections on the control portexcept when the connecting process knows the contents of a file named"control_auth_cookie", which Tor will create in its data directory.  Thisauthentication methods should only be used on systems with good filesystemsecurity. (Default: 0).LP.TP\fBDataDirectory \fR\fIDIR\fPStore working data in DIR (Default: @LOCALSTATEDIR@/lib/tor).LP.TP\fBDirFetchPeriod \fR\fIN\fR \fBseconds\fR|\fBminutes\fR|\fBhours\fR|\fBdays\fR|\fBweeks\fPEvery time the specified period elapses, Tor downloads a directory.A directory contains a signed list of all known servers as well astheir current liveness status. A value of "0 seconds" tells Tor to choose anappropriate default. (Default: 1 hour for clients, 20 minutes for servers).LP.TP\fBDirServer \fR[\fInickname\fR] [\fBv1\fR] \fIaddress\fR\fB:\fIport fingerprint\fPUse a nonstandard authoritative directory server at the providedaddress and port, with the specified key fingerprint.  This option canbe repeated many times, for multiple authoritative directoryservers.  If the "v1" option is provided, Tor will use this server as anauthority for old-style (v1) directories as well.  (Only directory mirrorscare about this.) If no \fBdirserver\fP line is given, Tor will use the defaultdirectory servers: moria1, moria2, and tor26.  NOTE: this option is intendedfor setting up a private Tor network with its own directory authorities.  Ifyou use it, you will be distinguishable from other users, because you won'tbelieve the same authorities they do..LP.TP\fBFetchHidServDescriptors \fR\fB0\fR|\fB1\fR\fPIf set to 0, Tor will never fetch any hidden service descriptors fromthe rendezvous directories. This option is only useful if you're usinga Tor controller that handles hidserv fetches for you.(Default: 1).LP.TP\fBFetchServerDescriptors \fR\fB0\fR|\fB1\fR\fPIf set to 0, Tor will never fetch any network status summaries or serverdescriptors from the directory servers. This option is only useful ifyou're using a Tor controller that handles directory fetches for you.(Default: 1).LP.TP\fBGroup \fR\fIGID\fPOn startup, setgid to this user..LP.TP\fBHttpProxy\fR \fIhost\fR[:\fIport\fR]\fPTor will make all its directory requests through this host:port(or host:80 if port is not specified),rather than connecting directly to any directory servers..LP.TP\fBHttpProxyAuthenticator\fR \fIusername:password\fPIf defined, Tor will use this username:password for Basic Http proxyauthentication, as in RFC 2617. This is currently the only form ofHttp proxy authentication that Tor supports; feel free to submit apatch if you want it to support others..LP.TP\fBHttpsProxy\fR \fIhost\fR[:\fIport\fR]\fPTor will make all its OR (SSL) connections through this host:port(or host:443 if port is not specified), via HTTP CONNECT rather thanconnecting directly to servers.  You may want to set \fBFascistFirewall\fRto restrict the set of ports you might try to connect to, if your Httpsproxy only allows connecting to certain ports..LP.TP\fBHttpsProxyAuthenticator\fR \fIusername:password\fPIf defined, Tor will use this username:password for Basic Https proxyauthentication, as in RFC 2617. This is currently the only form ofHttps proxy authentication that Tor supports; feel free to submit apatch if you want it to support others..LP.TP\fBKeepalivePeriod \fR\fINUM\fPTo keep firewalls from expiring connections, send a padding keepalivecell every NUM seconds on open connections that are in use. If theconnection has no open circuits, it will instead be closed after NUMseconds of idleness. (Default: 5 minutes).LP.TP\fBLog \fR\fIminSeverity\fR[-\fImaxSeverity\fR] \fBstderr\fR|\fBstdout\fR|\fBsyslog\fR\fPSend all messages between \fIminSeverity\fR and \fImaxSeverity\fR tothe standard output stream, the standard error stream, or to the systemlog. (The "syslog" value is only supported on Unix.)  Recognizedseverity levels are debug, info, notice, warn, and err.  We advise using"notice" in most cases, since anything more verbose may provide sensitiveinformation to an attacker who obtains the logs.  If only oneseverity level is given, all messages of that level or higher will besent to the listed destination..LP.TP\fBLog \fR\fIminSeverity\fR[-\fImaxSeverity\fR] \fBfile\fR \fIFILENAME\fPAs above, but send log messages to the listed filename.  The "Log"option may appear more than once in a configuration file.  Messagesare sent to all the logs that match their severity level..LP.TP\fBOutboundBindAddress \fR\fIIP\fPMake all outbound connections originate from the IP address specified.  Thisis only useful when you have multiple network interfaces, and you want allof Tor's outgoing connections to use a single one..LP.TP\fBPidFile \fR\fIFILE\fPOn startup, write our PID to FILE. On clean shutdown, remove FILE..LP.TP\fBRunAsDaemon \fR\fB0\fR|\fB1\fR\fPIf 1, Tor forks and daemonizes to the background. (Default: 0).LP.TP\fBSafeLogging \fR\fB0\fR|\fB1\fPIf 1, Tor replaces potentially sensitive strings in the logs(e.g. addresses) with the string [scrubbed]. This way logs can still beuseful, but they don't leave behind personally identifying informationabout what sites a user might have visited. (Default: 1).LP.TP\fBStatusFetchPeriod \fR\fIN\fR \fBseconds\fR|\fBminutes\fR|\fBhours\fR|\fBdays\fR|\fBweeks\fPEvery time the specified period elapses, Tor downloads signed statusinformation about the current state of known servers.  A value of"0 seconds" tells Tor to choose an appropriate default. (Default: 30minutes for clients, 15 minutes for servers).LP.TP\fBUser \fR\fIUID\fPOn startup, setuid to this user..LP.TP\fBHardwareAccel \fR\fI0|1\fPIf non-zero, try to use crypto hardware acceleration whenavailable. This is untested and probably buggy. (Default: 0).SH CLIENT OPTIONS.PPThe following options are useful only for clients (that is, if \fBSOCKSPort\fP is non-zero):.LP.TP\fBAllowUnverifiedNodes\fR \fBentry\fR|\fBexit\fR|\fBmiddle\fR|\fBintroduction\fR|\fBrendezvous\fR|...\fPAllow no-name routers (ones that the dirserver operators don'tknow anything about) in only these positions in your circuits.The default is "middle,rendezvous", and other choices are not advised..LP.TP\fBClientOnly \fR\fB0\fR|\fB1\fR\fPIf set to 1, Tor will under no circumstances run as a server. The defaultis to run as a client unless ORPort is configured.  (Usually,you don't need to set this; Tor is pretty smart at figuring out whetheryou are reliable and high-bandwidth enough to be a useful server.)(Default: 0).LP.TP\fBEntryNodes \fR\fInickname\fR,\fInickname\fR,\fI...\fPA list of preferred nodes to use for the first hop in the circuit, if possible..LP.TP\fBExitNodes \fR\fInickname\fR,\fInickname\fR,\fI...\fPA list of preferred nodes to use for the last hop in the circuit, if possible..LP.TP\fBExcludeNodes \fR\fInickname\fR,\fInickname\fR,\fI...\fPA list of nodes to never use when building a circuit..LP.TP\fBStrictExitNodes \fR\fB0\fR|\fB1\fR\fPIf 1, Tor will never use any nodes besides those listed in "exitnodes" forthe last hop of a circuit..LP.TP\fBStrictEntryNodes \fR\fB0\fR|\fB1\fR\fPIf 1, Tor will never use any nodes besides those listed in "entrynodes" forthe first hop of a circuit..LP.TP\fBFascistFirewall \fR\fB0\fR|\fB1\fR\fPIf 1, Tor will only create outgoing connections to ORs running on ports thatyour firewall allows (defaults to 80 and 443; see \fBFirewallPorts\fR).  This willallow you to run Tor as a client behind a firewall with restrictive policies,but will not allow you to run as a server behind such a firewall.This option is deprecated; useReachableAddresses instead..LP.TP\fBFirewallPorts \fR\fIPORTS\fPA list of ports that your firewall allows you to connect to.  Onlyused when \fBFascistFirewall\fR is set. This option is deprecated; useReachableAddresses instead. (Default: 80, 443).LP.TP\fBReachableAddresses \fR\fIADDR\fP[\fB/\fP\fIMASK\fP][:\fIPORT\fP]...\fPA comma-separated list of IP addresses and ports that your firewall allows youto connect to. The format is asfor the addresses in ExitPolicy, except that "accept" is understoodunless "reject" is explicitly provided.  For example, 'ReachableAddresses99.0.0.0/8, reject 18.0.0.0/8:80, accept *:80' means that yourfirewall allows connections to everything inside net 99, rejects port80 connections to net 18, and accepts connections to port 80 otherwise.(Default: 'accept *:*'.).LP.TP\fBReachableDirAddresses \fR\fIADDR\fP[\fB/\fP\fIMASK\fP][:\fIPORT\fP]...\fPLike \fBReachableAddresses\fP, a list of addresses and ports.  Tor will obeythese restrictions when fetching directory information, using standard HTTPGET requests. If not set explicitly then the value of \fBfBReachableAddresses\fPis used.  If \fBHttpProxy\fR is set then these connections will go through thatproxy..LP.TP\fBReachableORAddresses \fR\fIADDR\fP[\fB/\fP\fIMASK\fP][:\fIPORT\fP]...\fPLike \fBReachableAddresses\fP, a list of addresses and ports.  Tor will obeythese restrictions when connecting to Onion Routers, using TLS/SSL.  If not setexplicitly then the value of \fBfBReachableAddresses\fP is used. If\fBHttpsProxy\fR is set then these connections will go through that proxy.The separation between \fBReachableORAddresses\fP and\fBReachableDirAddresses\fP is only interesting when you are connecting throughproxies (see \fBHttpProxy\fR and \fBHttpsProxy\fR).  Most proxies limit TLSconnections (which Tor uses to connect to Onion Routers) to port 443, and somelimit HTTP GET requests (which Tor uses for fetching directory information) toport 80..LP.TP\fBLongLivedPorts \fR\fIPORTS\fPA list of ports for services that tend to have long-running connections(e.g. chat and interactive shells). Circuits for streams that use theseports will contain only high-uptime nodes, to reduce the chance that anode will go down before the stream is finished. (Default: 21, 22, 706, 1863, 5050, 5190, 5222, 5223, 6667, 8300, 8888).LP.TP\fBMapAddress\fR \fIaddress\fR \fInewaddress\fRWhen a request for address arrives to Tor, it will rewrite it to newaddress before processing it. For example, if you always want connections to www.indymedia.org to exit via \fItorserver\fR (where \fItorserver\fR is the nickname of the server), use "MapAddress www.indymedia.org www.indymedia.org.torserver.exit"..LP.TP\fBNewCircuitPeriod \fR\fINUM\fPEvery NUM seconds consider whether to build a new circuit. (Default: 30 seconds).LP.TP\fBMaxCircuitDirtiness \fR\fINUM\fPFeel free to reuse a circuit that was first used at most NUM secondsago, but never attach a new stream to a circuit that is too old. (Default: 10 minutes).LP.TP\fBNodeFamily \fR\fInickname\fR,\fInickname\fR,\fI...\fPThe named Tor servers constitute a "family" of similar or co-administeredservers, so never use any two of them in the same circuit. Defining aNodeFamily is only needed when a server doesn't list the family itself(with MyFamily). This option can be used multiple times..LP.TP.\" \fBPathlenCoinWeight \fR\fI0.0-1.0\fP.\" Paths are 3 hops plus a geometric distribution centered around this coinweight. .\" Must be >=0.0 and <1.0. (Default: 0.3) NOT USED CURRENTLY.\" .TP\fBRendNodes \fR\fInickname\fR,\fInickname\fR,\fI...\fPA list of preferred nodes to use for the rendezvous point, if possible..LP.TP\fBRendExcludeNodes \fR\fInickname\fR,\fInickname\fR,\fI...\fPA list of nodes to never use when choosing a rendezvous point..LP.TP\fBSOCKSPort \fR\fIPORT\fPAdvertise this port to listen for connections from SOCKS-speakingapplications.  Set this to 0 if you don't want to allow applicationconnections. (Default: 9050).LP.TP\fBSOCKSListenAddress \fR\fIIP\fR[:\fIPORT\fR]\fPBind to this address to listen for connections from SOCKS-speakingapplications. (Default: 127.0.0.1) You can also specify a port(e.g. 192.168.0.1:9100). This directive can be specified multiple timesto bind to multiple addresses/ports..LP.TP\fBSOCKSPolicy \fR\fIpolicy\fR,\fIpolicy\fR,\fI...\fPSet an entrance policy for this server, to limit who can connect to the SOCKS ports. The policies have the same form as exit policies below..LP.TP\fBTrackHostExits \fR\fIhost\fR,\fI.domain\fR,\fI...\fR\fPFor each value in the comma separated list, Tor will track recent connectionsto hosts that match this value and attempt toreuse the same exit node for each. If the value is prepended with a '.', it istreated as matching an entire domain. If one of the values is just a '.', itmeans match everything. This option is useful if you frequently connect tosites that will expire all your authentication cookies (ie log you out) ifyour IP address changes. Note that this option does have the disadvantage ofmaking it more clear that a given history isassociated with a single user. However, most people who would wish to observethis will observe it through cookies or other protocol-specific means anyhow..LP.TP\fBTrackHostExitsExpire \fR\fINUM\fPSince exit servers go up and down, it is desirable to expire the associationbetween host and exit server after NUM seconds. The defaultis 1800 seconds (30 minutes)..LP.TP\fBUseEntryGuards \fR\fI0|1\fPIf this option is set to 1, we pick a few long-term entry servers, andtry to stick with them.  This is desirable becauseconstantly changing servers increases the odds that an adversary who ownssome servers will observe a fraction of your paths.(Defaults to 1.).LP.TP\fBNumEntryGuards \fR\fINUM\fPIf UseEntryGuards is set to 1, we will try to pick a total of NUM routersas long-term entries for our circuits.(Defaults to 3.).LP.TP\fBTestSocks \fR\fB0\fR|\fB1\fR\fPWhen this option is enabled, Tor will make a notice-level log entry foreach connection to the Socks port indicating whether the request useda hostname (safe) or an IP address (unsafe). This helps to determinewhether an application using Tor is possibly leaking DNS requests.(Default: 0).SH SERVER OPTIONS.PPThe following options are useful only for servers (that is, if \fBORPort\fP is non-zero):.LP.TP\fBAddress \fR\fIaddress\fPThe IP or fqdn of this server (e.g. moria.mit.edu). You can leave thisunset, and Tor will guess your IP..LP.TP\fBAssumeReachable \fR\fB0\fR|\fB1\fR\fPThis option is used when bootstrapping a new Tor network. If set to 1,don't do self-reachability testing; just upload your server descriptorimmediately. If \fBAuthoritativeDirectory\fP is also set, this optioninstructs the dirserver to bypass remote reachability testing too andlist all connected servers as running..LP.TP\fBContactInfo \fR\fIemail_address\fPAdministrative contact information for server..LP.TP\fBExitPolicy \fR\fIpolicy\fR,\fIpolicy\fR,\fI...\fPSet an exit policy for this server. Each policy is of the form"\fBaccept\fP|\fBreject\fP \fIADDR\fP[\fB/\fP\fIMASK\fP]\fB[:\fP\fIPORT\fP]".If \fB/\fP\fIMASK\fP is omitted then this policy just applies to the hostgiven.  Instead of giving a host or network you can also use "\fB*\fP" todenote the universe (0.0.0.0/0).  \fIPORT\fP can be a single port number,an interval of ports "\fIFROM_PORT\fP\fB-\fP\fITO_PORT\fP", or "\fB*\fP".If \fIPORT\fP is omitted, that means "\fB*\fP".For example, "accept 18.7.22.69:*,reject 18.0.0.0/8:*,accept *:*" wouldreject any traffic destined for MIT except for web.mit.edu, andaccept anything else.To specify all internal and link-local networks (including 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, and172.16.0.0/12), you can use the "private" alias instead of an address.These addresses are rejected by default (at the beginning of yourexit policy) unless you set the ExitPolicyRejectPrivate config optionto 0. For example, once you've done that, you could allow HTTP to127.0.0.1 and block all other connections to internal networks with"accept127.0.0.1:80,reject private:*".  See RFC 1918 and RFC 3330 for moredetails about internal and reserved IP address space.This directive can be specified multiple times so you don't have to putit all on one line.Policies are considered first to last, and the first match wins. Ifyou want to _replace_ the default exit policy, end your exit policy witheither a reject *:* or an accept *:*. Otherwise, you're _augmenting_(prepending to) the default exit policy. The default exit policy is:.PD 0.RS 12.IP "reject *:25".IP "reject *:119".IP "reject *:135-139".IP "reject *:445".IP "reject *:465".IP "reject *:587".IP "reject *:1214".IP "reject *:4661-4666".IP "reject *:6346-6429".IP "reject *:6699".IP "reject *:6881-6999".IP "accept *:*".RE.PD.LP.TP\fBExitPolicyRejectPrivate \fR\fB0\fR|\fB1\fR\fPReject all private (local) networks at the beginning of your exitpolicy. See above entry on ExitPolicy. (Default: 1).LP.TP\fBMaxOnionsPending \fR\fINUM\fPIf you have more than this number of onionskins queued for decrypt, reject new ones. (Default: 100).LP.TP\fBMyFamily \fR\fInickname\fR,\fInickname\fR,\fI...\fPDeclare that this Tor server is controlled or administered by a groupor organization identical or similar to that of the other named servers.When two servers both declare that they are in the same 'family', Tor clientswill not use them in the same circuit.  (Each server only needs to list theother servers in its family; it doesn't need to list itself, but it won't hurt.).LP.TP\fBNickname \fR\fIname\fPSet the server's nickname to 'name'. Nicknames must be between 1and 19 characters inclusive, and must contain only the characters[a-zA-Z0-9]..LP.TP\fBNumCPUs \fR\fInum\fPHow many processes to use at once for decrypting onionskins. (Default: 1).LP.TP\fBORPort \fR\fIPORT\fPAdvertise this port to listen for connections from Tor clients and servers..LP.TP\fBORListenAddress \fR\fIIP\fR[:\fIPORT\fR]\fPBind to this IP address to listen for connections from Tor clients andservers. If you specify a port, bind to this port rather than the onespecified in ORPort. (Default: 0.0.0.0).LP.TP\fBPublishServerDescriptor \fR\fB0\fR|\fB1\fR\fPIf set to 0, Tor will act as a server if you have an ORPortdefined, but it will not publish its descriptor to the dirservers. Thisoption is useful if you're testing out your server, or if you're usinga Tor controller that handles directory publishing for you.(Default: 1).LP.TP\fBRedirectExit \fR\fIpattern target\fPWhenever an outgoing connection tries to connect to one of a given setof addresses, connect to \fItarget\fP (an \fIaddress:port\fP pair) instead.The addresspattern is given in the same format as for an exit policy.  Theaddress translation applies after exit policies are applied.  Multiple\fBRedirectExit\fP options can be used: once any one has matchedsuccessfully, no subsequent rules are considered.  You can specify that noredirection is to be performed on a given set of addresses by using thespecial target string "pass", which prevents subsequent rules from beingconsidered..LP.TP\fBShutdownWaitLength\fR \fINUM\fPWhen we get a SIGINT and we're a server, we begin shutting down: we closelisteners and start refusing new circuits. After \fBNUM\fP seconds,we exit. If we get a second SIGINT, we exit immediately.  (Default:30 seconds).LP.TP\fBDirPostPeriod \fR\fIN\fR \fBseconds\fR|\fBminutes\fR|\fBhours\fR|\fBdays\fR|\fBweeks\fPEvery time the specified period elapses, Tor uploads its serverdescriptors to the directory servers.  This information is alsouploaded whenever it changes.  (Default: 20 minutes).LP.TP\fBAccountingMax \fR\fIN\fR \fBbytes\fR|\fBKB\fR|\fBMB\fR|\fBGB\fR|\fBTB\fPNever send more than the specified number of bytes in a givenaccounting period, or receive more than that number in the period.For example, with AccountingMax set to 1 GB, a server could send 900 MBand receive 800 MB and continue running. It will only hibernate once oneof the two reaches 1 GB.When the number of bytes is exhausted, Tor will hibernate until sometime in the next accounting period.  To prevent all servers fromwaking at the same time, Tor will also wait until a random point ineach period before waking up.  If you have bandwidth cost issues,enabling hibernation is preferable to setting a low bandwidth, since itprovides users with a collection of fast servers that are up some ofthe time, which is more useful than a set of slow servers that arealways "available"..LP.TP\fBAccountingStart \fR\fBday\fR|\fBweek\fR|\fBmonth\fR [\fIday\fR] \fIHH:MM\fR\fPSpecify how long accounting periods last.  If \fBmonth\fP is given,each accounting period runs from the time \fIHH:MM\fR on the\fIday\fRth day of one month to the same day and time of the next.(The day must be between 1 and 28.)  If \fBweek\fP is given, eachaccounting period runs from the time \fIHH:MM\fR of the \fIday\fRthday of one week to the same day and time of the next week, with Mondayas day 1 and Sunday as day 7.  If \fBday\fR is given, each accountingperiod runs from the time \fIHH:MM\fR each day to the same time on thenext day.  All times are local, and given in 24-hour time.  (Defaults to"month 1 0:00".).SH DIRECTORY SERVER OPTIONS.PPThe following options are useful only for directory servers (that is, if \fBDirPort\fP is non-zero):.LP.TP\fBAuthoritativeDirectory \fR\fB0\fR|\fB1\fR\fPWhen this option is set to 1, Tor operates as an authoritativedirectory server.  Instead of caching the directory, it generates itsown list of good servers, signs it, and sends that to the clients.Unless the clients already have you listed as a trusted directory, youprobably do not want to set this option.  Please coordinate with the otheradmins at tor-ops@freehaven.net if you think you should be a directory..LP.TP\fBV1AuthoritativeDirectory \fR\fB0\fR|\fB1\fR\fPWhen this option is set in addition to \fBAuthoritativeDirectory\fP, Tor alsogenerates a version 1 directory (for Tor clients up to 0.1.0.x).(As of Tor 0.1.1.12 every (v2) authoritative directory still provides most ofthe v1 directory functionality, even without this option set to 1.This however is expected to change in the future.).LP.TP\fBVersioningAuthoritativeDirectory \fR\fB0\fR|\fB1\fR\fPWhen this option is set to 1, Tor adds information onwhich versions of Tor are still believed safe for use tothe published directory.  Each version 1 authority isautomatically a versioning authority; version 2 authoritiesprovide this service optionally.  See \fBRecommendedVersions\fP,\fBRecommendedClientVersions\fP, and \fBRecommendedServerVersions\fP..LP.TP\fBNamingAuthoritativeDirectory \fR\fB0\fR|\fB1\fR\fPWhen this option is set to 1, then the server advertises that it hasopinions about nickname-to-fingerprint bindings.  It will include theseopinions in its published network-status pages, by listing servers withthe flag "Named" if a correct binding between that nickname andfingerprint has been registered with the dirserver.  Naming dirserverswill refuse to accept or publish descriptors that contradict aregistered binding.  See \fBapproved-routers\fP in the \fBFILES\fPsection below..LP.TP\fBDirPort \fR\fIPORT\fPAdvertise the directory service on this port..LP.TP\fBDirListenAddress \fR\fIIP\fR[:\fIPORT\fR]\fPBind the directory service to this address. If you specify a port, bindto this port rather than the one specified in DirPort. (Default: 0.0.0.0).LP.TP\fBDirPolicy \fR\fIpolicy\fR,\fIpolicy\fR,\fI...\fPSet an entrance policy for this server, to limit who can connect to the directory ports. The policies have the same form as exit policies above..LP.TP\fBRecommendedVersions \fR\fISTRING\fPSTRING is a comma-separated list of Tor versions currently believedto be safe. The list is included in each directory, and nodes whichpull down the directory learn whether they need to upgrade.  Thisoption can appear multiple times: the values from multiple lines arespliced together.When this is set then\fBVersioningAuthoritativeDirectory\fP should be set too..LP.TP\fBRecommendedClientVersions \fR\fISTRING\fPSTRING is a comma-separated list of Tor versions currently believedto be safe for clients to use.  This information is included in version 2directories.  If this is not set then the value of \fBRecommendedVersions\fRis used.When this is set then\fBVersioningAuthoritativeDirectory\fP should be set too..LP.TP\fBRecommendedServerVersions \fR\fISTRING\fPSTRING is a comma-separated list of Tor versions currently believedto be safe for servers to use.  This information is included in version 2directories.  If this is not set then the value of \fBRecommendedVersions\fRis used.When this is set then\fBVersioningAuthoritativeDirectory\fP should be set too..LP.TP\fBDirAllowPrivateAddresses \fR\fB0\fR|\fB1\fR\fPIf set to 1, Tor will accept router descriptors with arbitrary "Address"elements. Otherwise, if the address is not an IP or is a private IP,it will reject the router descriptor. Defaults to 0..LP.TP\fBRunTesting \fR\fB0\fR|\fB1\fR\fPIf set to 1, Tor tries to build circuits through all of the servers itknows about, so it can tell which are up and which are down.  Thisoption is only useful for authoritative directories, so you probablydon't want to use it..SH HIDDEN SERVICE OPTIONS.PPThe following options are used to configure a hidden service..LP.TP\fBHiddenServiceDir \fR\fIDIRECTORY\fPStore data files for a hidden service in DIRECTORY.  Every hiddenservice must have a separate directory.  You may use this option multipletimes to specify multiple services..LP.TP\fBHiddenServicePort \fR\fIVIRTPORT \fR[\fITARGET\fR]\fPConfigure a virtual port VIRTPORT for a hidden service.  You may use thisoption multiple times; each time applies to the service using the most recenthiddenservicedir.  By default, this option maps the virtual port to thesame port on 127.0.0.1.  You may override the target port, address, or bothby specifying a target of addr, port, or addr:port..LP.TP\fBHiddenServiceNodes \fR\fInickname\fR,\fInickname\fR,\fI...\fPIf possible, use the specified nodes as introduction points for the hiddenservice. If this is left unset, Tor will be smart and pick some reasonableones; most people can leave this unset..LP.TP\fBHiddenServiceExcludeNodes \fR\fInickname\fR,\fInickname\fR,\fI...\fPDo not use the specified nodes as introduction points for the hiddenservice. In normal use there is no reason to set this..LP.TP\fBPublishHidServDescriptors \fR\fB0\fR|\fB1\fR\fPIf set to 0, Tor will run any hidden services you configure, but it won'tadvertise them to the rendezvous directory. This option is only usefulif you're using a Tor controller that handles hidserv publishing for you.(Default: 1).LP.TP\fBRendPostPeriod \fR\fIN\fR \fBseconds\fR|\fBminutes\fR|\fBhours\fR|\fBdays\fR|\fBweeks\fPEvery time the specified period elapses, Tor uploads any rendezvousservice descriptors to the directory servers.  This information is alsouploaded whenever it changes.  (Default: 20 minutes).\" UNDOCUMENTED.\" ignoreversion.SH SIGNALSTor catches the following signals:.LP.TP\fBSIGTERM\fRTor will catch this, clean up and sync to disk if necessary, and exit..LP.TP\fBSIGINT\fRTor clients behave as with SIGTERM; but Tor servers will do a controlledslow shutdown, closing listeners and waiting 30 seconds before exiting.(The delay can be configured with the ShutdownWaitLength config option.).LP.TP\fBSIGHUP\fRThe signal instructs Tor to reload its configuration (including closingand reopening logs), fetch a new directory, and kill and restart itshelper processes if applicable..LP.TP\fBSIGUSR1\fRLog statistics about current connections, past connections, andthroughput..LP.TP\fBSIGUSR2\fRSwitch all logs to loglevel debug. You can go back to the old loglevelsby sending a SIGHUP..LP.TP\fBSIGCHLD\fRTor receives this signal when one of its helper processes has exited,so it can clean up..LP.TP\fBSIGPIPE\fRTor catches this signal and ignores it..LP.TP\fBSIGXFSZ\fRIf this signal exists on your platform, Tor catches and ignores it..SH FILES.LP.TP.B @CONFDIR@/torrcThe configuration file, which contains "option value" pairs..LP.TP.B @LOCALSTATEDIR@/lib/tor/The tor process stores keys and other data here..LP.TP.B \fIDataDirectory\fP/approved-routersOnly for naming authoritative directory servers(see \fBNamingAuthoritativeDirectory\fP).This file lists nickname to identity bindings.  Each line lists anickname and a fingerprint seperated by whitespace.  See your\fBfingerprint\fP file in the \fIDataDirectory\fP for an example line.If the nickname is \fB!reject\fP then descriptors from the givenidentity (fingerprint) are rejected by the authoritative directoryserver. If it is \fB!invalid\fP then descriptors are accepted but markedin the directory as not valid, that is, not recommended..SH SEE ALSO.BR privoxy (1),.BR tsocks (1),.BR torify (1).BR http://tor.eff.org/.SH BUGSPlenty, probably. Tor is still in development. Please report them..SH AUTHORSRoger Dingledine <arma@mit.edu>, Nick Mathewson <nickm@alum.mit.edu>.
 |