[tor-relays] Multiple relay instances, debian + systemd

teor teor2345 at gmail.com
Sun Jul 2 00:16:13 UTC 2017


> On 2 Jul 2017, at 10:02, nusenu <nusenu-lists at riseup.net> wrote:
> 
> Paw Møller:
>> I am supposed to use
>> tor-instance-create tor{1,2} [1]
>> systemctl enable tor at tor1
>> etc.
>> 
>> but what goes in the individual tor at tor1 torrc
>> in /etc/tor/instances/tor1/torrc and what goes in the main instance in
>> /etc/tor/torrc?

/etc/tor/torrc is not used as the defaults torrc file. It's the torrc file
for tor at default.service, and /etc/tor/defaults-torrc (?) is its defaults file.

/etc/tor/tor-service-defaults-torrc-instances is the template file for
each instance's defaults torrc file. You can use it to name instances
and set common torrc options.

> When you create additional tor instances on the same host you can treat
> their torrc files individually with two exceptions:
> - don't run more than 2 instances per IP
> - (and obviously do not use same ports to bind to / data dirs)

Using /etc/tor/tor-service-defaults-torrc-instances is easier, unless
you use something even more automated:

> If you run more than a single host you might also want to look into
> something that does all that the work (and more) for you
> https://github.com/nusenu/ansible-relayor

T

--
Tim Wilson-Brown (teor)

teor2345 at gmail dot com
PGP C855 6CED 5D90 A0C5 29F6 4D43 450C BA7F 968F 094B
ricochet:ekmygaiu4rzgsk6n
xmpp: teor at torproject dot org
------------------------------------------------------------------------



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.torproject.org/pipermail/tor-relays/attachments/20170702/ea554eef/attachment.sig>


More information about the tor-relays mailing list