File: tor-instance-create.8.txt

package info (click to toggle)
tor 0.4.8.22-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 55,764 kB
  • sloc: ansic: 315,652; sh: 7,415; python: 1,829; makefile: 620; perl: 249; pascal: 141
file content (50 lines) | stat: -rw-r--r-- 1,725 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
:man source:   Tor
:man manual:   Tor Manual
tor-instance-create(8)
======================
Peter Palfrader

NAME
----
tor-instance-create - Set up a new tor instance

SYNOPSIS
--------
**tor-instance-create** __instance_name__

DESCRIPTION
-----------
The Tor Debian package supports running multiple instances of the Tor
daemon.  This can be useful if you want to run multiple relays or bridge
relays on a single system, of if you want to provide a hidden service in
addition to running a relay.

**tor-instance-create** is the tool that creates a new instance of Tor
on a Debian system.  In particular, it creates a new UNIX user with a
home directory and a mostly empty tor configuration file.

The new user and group are named **_tor-**__instance_name__.  The user's
home directory, which is also the DataDirectory of the new tor instance,
is **/var/lib/tor-instances/**__instance_name__.  The configuration file
for that instance is **/etc/tor/instances/**__instance_name__**/torrc**.
Logs go to syslog by default.

To start this new service, use
**systemctl start tor@**__instance_name__.  Stopping, restarting, and
reloading the config works accordingly.  Stopping/Starting/.. the
**tor** service should affect all instances.
The "main" instance which lives in /var/lib/tor and has /etc/tor/torrc
as its configuration file is known to systemd as **tor@default**.

There currently is no **tor-instance-remove** script.  To remove an
instance, delete the user and its homedirectory once you are convinced
there are no files or processes on your system still owned by that user.
Then also remove the corresponding directory tree in /etc/tor/instances.

SEE ALSO
--------
**tor**(1) +

AUTHORS
-------
    Peter Palfrader