|
|
fd51c00 |
The default configuration file for Tor is "/etc/tor/torrc" and is used when you
|
|
|
fd51c00 |
run this command:
|
|
|
fd51c00 |
|
|
|
fd51c00 |
# systemctl start tor.service
|
|
|
fd51c00 |
|
|
|
fd51c00 |
Multiple instances of Tor can be run simultaneously using different
|
|
|
fd51c00 |
configuration files. For example, tor@custom.service will use the configuration
|
|
|
fd51c00 |
file "/etc/tor/custom.torrc".
|
|
|
fd51c00 |
|
|
|
c98fdc6 |
# touch /etc/tor/custom.torrc
|
|
|
fd51c00 |
# echo "SOCKSPort 9051" >> /etc/tor/custom.torrc
|
|
|
c98fdc6 |
# echo "DataDirectory /var/lib/tor/custom" >> /etc/tor/custom.torrc
|
|
|
c98fdc6 |
# mkdir /var/lib/tor/custom
|
|
|
c98fdc6 |
# chown toranon:root /var/lib/tor/custom
|
|
|
fd51c00 |
# systemctl start tor@custom.service
|
|
|
fd51c00 |
|
|
|
fd51c00 |
To restart, reload, or stop all running instances of Tor (including tor.service
|
|
|
fd51c00 |
and any tor@.service), use tor-master.service. For example, to restart all
|
|
|
fd51c00 |
instances of Tor, run this command:
|
|
|
fd51c00 |
|
|
|
fd51c00 |
# systemctl restart tor-master.service
|
|
|
fd51c00 |
|