2003-11-20 21:56:52 +01:00
.TH TOR 1 "November 2003" "TOR"
.SH NAME
tor \- The second-generation onion router
.SH SYNOPSIS
.B tor
[\fI OPTION value\fR ]...
.SH DESCRIPTION
.I tor
is a connection-oriented anonymizing communication
service. Users choose a source-routed path through a set of nodes, and
negotiate a "virtual circuit" through the network, in which each node
knows its predecessor and successor, but no others. Traffic flowing down
the circuit is unwrapped by a symmetric key at each node, which reveals
the downstream node.
.PP
Basically \fI tor\fR provides a distributed network of servers ("onion
routers"). Users bounce their tcp streams -- web traffic, ftp, ssh, etc --
around the routers, and recipients, observers, and even the routers
themselves have difficulty tracking the source of the stream.
.SH OPTIONS
\fB -h, -help\fP
Display a short help message and exit.
.TP
\fB -f \fR \fI FILE\fP
FILE contains further "option value" pairs. (Default: @CONFDIR@/torrc)
.TP
2003-12-03 11:44:11 +01:00
Other options can be specified either on the commandline (\fI --option value\fR ), or in the configuration file (\fI option value\fR ).
.TP
2004-08-07 10:30:16 +02:00
\fB loglevel debug|info|notice|warn|err\fP
2003-11-20 21:56:52 +01:00
Set the verboseness level of the primary log. (Default: warn)
.TP
\fB logfile \fR \fI FILE\fP
Rather than logging to stdout, log to FILE.
.TP
2004-01-11 00:42:24 +01:00
\fB bandwidthrate \fR \fI NUM\fP
A token bucket limits the average incoming bandwidth on this node to NUM bytes per second. (Default: 800000)
.TP
\fB bandwidthburst \fR \fI NUM\fP
Limit the maximum token bucket size (also known as the burst) to NUM bytes. (Default: 10000000)
.TP
2003-11-20 21:56:52 +01:00
\fB debuglogfile \fR \fI FILE\fP
In addition to other logging, we will log to FILE at log-level debug.
.TP
\fB group \fR \fI GID\fP
On startup, setgid to this user.
.TP
\fB keepaliveperiod \fR \fI NUM\fP
To keep firewalls from expiring connections, send a padding keepalive cell on open connections every NUM seconds. (Default: 300)
.TP
\fB pidfile \fR \fI FILE\fP
On startup, write our PID to FILE. On clean shutdown, remove FILE.
.TP
\fB routerfile \fR \fI FILE\fP
FILE contains a list of directory servers, to bootstrap into the network. (Default: @CONFDIR@/dirservers)
.TP
\fB runasdaemon \fR \fI 0|1\fP
If 1, Tor forks and daemonizes to the background. (Default: 0)
.TP
\fB user \fR \fI UID\fP
On startup, setuid to this user.
.SH CLIENT OPTIONS
.PP
The following options are useful only for clients (that is, if \fB socksport\fP is non-zero):
.TP
2004-01-12 07:06:47 +01:00
\fB entrynodes \fR \fI nickname,nickname,...\fP
A list of preferred nodes to use for the first hop in the circuit, if possible.
.TP
\fB exitnodes \fR \fI nickname,nickname,...\fP
A list of preferred nodes to use for the last hop in the circuit, if possible.
.TP
2004-08-10 07:34:51 +02:00
\fB excludenodes \fR \fI nickname,nickname,...\fP
2004-02-28 06:11:10 +01:00
A list of nodes to never use when building a circuit.
.TP
2004-08-15 22:14:44 +02:00
\fB strictexitnodes \fR \fI 0|1\fP
If 1, Tor will never use any nodes besides those listed in "exitnodes" for
the last hop of a circuit.
.TP
\fB strictentrynodes \fR \fI 0|1\fP
If 1, Tor will never use any nodes besides those listed in "entrynodes" for
the first hop of a circuit.
.TP
2003-11-20 21:56:52 +01:00
\fB newcircuitperiod \fR \fI NUM\fP
Every NUM seconds consider whether to build a new circuit. (Default: 60)
.TP
\fB pathlencoinweight \fR \fI 0.0-1.0\fP
2004-08-07 10:30:16 +02:00
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
2003-11-20 21:56:52 +01:00
.TP
\fB socksport \fR \fI PORT\fP
Bind to this port to listen for connections from socks-speaking applications.
.TP
\fB socksbindaddress \fR \fI IP\fP
2004-06-07 21:09:05 +02:00
Bind to this address to listen for connections from socks-speaking applications. (Default: 127.0.0.1) You can also specify a port (e.g. 192.168.0.1:9100). This directive can be specified multiple times to bind to multiple addresses/ports.
.TP
\fB sockspolicy \fR \fI policy,policy,...\fP
2004-08-07 10:30:16 +02:00
Set an entrance policy for this server, to limit who can connect to the socks ports. The policies have the same form as exit policies below.
2003-11-20 21:56:52 +01:00
.SH SERVER OPTIONS
.PP
The following options are useful only for servers (that is, if \fB orport\fP is non-zero):
.TP
2004-08-07 10:30:16 +02:00
\fB address \fR \fI address\fP
The IP or fqdn of this server (e.g. moria.mit.edu).
2003-11-20 21:56:52 +01:00
.TP
\fB datadirectory \fR \fI DIR\fP
Store working data in DIR (Default: @LOCALSTATEDIR@/lib/tor)
.TP
\fB exitpolicy \fR \fI policy,policy,...\fP
2004-04-06 03:00:26 +02:00
Set an exit policy for this server. Each policy is of the form
"\fB reject\fP \fI ADDR\fP \fB /\fP \fI MASK\fP \fB :\fP \fI PORT\fP ".
2004-06-07 21:09:05 +02:00
If \fB /\fP \fI MASK\fP is omitted then this policy just applies to the host
2004-04-06 03:00:26 +02:00
given. Instead of giving a host or network you can also use "\fB *\fP " to
denote the universe (0.0.0.0/0). \fI PORT\fP can either be a single port number
or an interval of ports: "\fI FROM_PORT\fP \fB -\fP \fI TO_PORT\fP ".
For example, "reject 127.0.0.1:*,reject 192.168.1.0/24:*,accept *:*" would
reject any traffic destined for localhost and any 192.168.1.* address, but
accept anything else.
2004-06-07 21:09:05 +02:00
2004-06-23 03:49:10 +02:00
This directive can be specified multiple times so you don't have to put
it all on one line.
See RFC 3330 for more details about internal and reserved IP address
space. The default exit policy is:
.PD 0
.RS 12
.IP "reject 0.0.0.0/8" 0
.IP "reject 169.254.0.0/16" 4
.IP "reject 127.0.0.0/8"
.IP "reject 192.168.0.0/16"
.IP "reject 10.0.0.0/8"
.IP "reject 172.16.0.0/12"
.IP "accept *:20-22"
.IP "accept *:53"
.IP "accept *:79-81"
.IP "accept *:110"
.IP "accept *:143"
.IP "accept *:443"
.IP "accept *:873"
.IP "accept *:993"
.IP "accept *:995" 4
2004-08-08 07:33:15 +02:00
.IP "reject *:4661-4662"
.IP "reject *:1214"
.IP "reject *:6346"
2004-06-23 03:49:10 +02:00
.IP "accept *:1024-65535"
.IP "reject *:*"
.RE
.PD
2003-11-20 21:56:52 +01:00
.TP
\fB maxonionspending \fR \fI NUM\fP
If you have more than this number of onionskins queued for decrypt, reject new ones. (Default: 100)
.TP
\fB nickname \fR \fI name\fP
Set the server's nickname to 'name'.
.TP
\fB numcpus \fR \fI num\fP
How many processes to use at once for decrypting onionskins. (Default: 1)
.TP
\fB orport \fR \fI PORT\fP
Bind to this port to listen for connections from Tor clients and servers.
.TP
\fB orbindaddress \fR \fI IP\fP
Bind to this address to listen for connections from Tor clients and servers. (Default: 0.0.0.0)
.SH DIRECTORY SERVER OPTIONS
.PP
The following options are useful only for directory servers (that is, if \fB dirport\fP is non-zero):
.TP
\fB dirport \fR \fI PORT\fP
Bind the directory service to this port.
.TP
\fB dirbindaddress \fR \fI IP\fP
Bind the directory service to this address. (Default: 0.0.0.0)
.TP
\fB recommendedversions \fR \fI STRING\fP
STRING is a command-separated list of Tor versions currently believed to be safe. The list is included in each directory, and nodes which pull down the directory learn whether they need to upgrade.
2004-04-01 02:36:46 +02:00
.SH HIDDEN SERVER OPTIONS
.PP
The following options are used to configure a hidden service.
.TP
\fB hiddenservicedir \fR \fI DIRECTORY\fP
Store data files for a hidden service in DIRECTORY. Every hidden
service must have a separate directory. You may use this option multiple
times to specify multiple services.
.TP
\fB hiddenserviceport \fR \fI VIRTPORT \fR [\fI TARGET\fR ]\fP
Configure a virtual port VIRTPORT for a hidden service. You may use this
option multiple times; each time applies to the service using the most recent
hiddenservicedir. By default, this option maps the virtual port to the
same port on 127.0.0.1. You may override the target port, address, or both
by specifying a target of addr, port, or addr:port.
2004-04-08 08:30:15 +02:00
.TP
\fB hiddenservicenodes \fR \fI nickname,nicknamme,...\fP
If possible, use the specified nodes as introduction points for the hidden
service.
.TP
\fB hiddenserviceexcludenodes \fR \fI nickname,nicknamme,...\fP
Do not use the specified nodes as introduction points for the hidden
service.
2004-04-01 02:36:46 +02:00
2003-11-20 21:56:52 +01:00
.SH FILES
.TP
.I @CONFDIR@/torrc
The configuration file, which contains "option value" pairs.
.TP
.I @CONFDIR@/dirservers
A list of directory servers, to bootstrap into the network.
.TP
.I @LOCALSTATEDIR@/lib/tor/
2004-08-07 10:30:16 +02:00
The tor process stores keys and other data here.
2003-11-20 21:56:52 +01:00
.SH SEE ALSO
.BR privoxy (1),
.BR tsocks (1)
.BR http://freehaven.net/tor/
.SH BUGS
Plenty, probably. It's still in alpha. Please report them.
.SH AUTHORS
2004-08-07 10:30:16 +02:00
Roger Dingledine <arma@mit.edu>, Nick Mathewson <nickm@alum.mit.edu>.
2003-11-20 21:56:52 +01:00