1. Enable the Torproject package repository to get the last version of tor

This can be considered optional on Debian but is not optional on Ubuntu. Do not use the packages in Ubuntu's universe. Get the repository sources to add to your /etc/apt/sources.list by running the configurator here. Also ensure you import the GPG keys. This will make sure that you're running the latest stable version of tor.

  1. Install the tor package
    apt update && apt install tor
  1. Put the configuration file /etc/tor/torrc in place:
    #change the nickname "myNiceRelay" to a name that you like
    Nickname myNiceRelay
    ORPort 443
    ExitRelay 0
    SocksPort 0
    ControlSocket 0
    # Change the email address bellow and be aware that it will be published
    ContactInfo tor-operator@your-emailaddress-domain
  1. Restart the tor daemon so your configuration changes take effect:
    systemctl restart tor@default
Last modified 9 months ago Last modified on Feb 10, 2020, 5:08:10 AM