How To Set Up Your Own Tor Relay

by Joseph Boone

The Onion Router (Tor) runs on the support of a network of volunteers offering up their computers and internet bandwidth to make it all come together. There are millions of users around the world who place their trust in Tor for the purpose of online privacy protection and the ability to access various websites without compromising their identities.

Hosting your own Tor relay or node affords you the chance to help other users enjoy the same freedoms online with a few additional benefits. However, it’s also good to understand the potential risks. Speed is not one of the highlights of using Tor. A faster alternative would be a trusted VPN service if anonymity is your goal.

Table of Contents

    There are also some who choose to use the anonymity of the service to engage in criminal activities. By doing so, this could shine a spotlight on you that you otherwise would have zero interest in. You can expect a call from your ISP if they suspect something is amiss.

    If you still feel that a Tor relay is for you, continue reading for instructions on how you can set up one of your very own.

    Tor Relay Setup Necessities

    The full setup configuration should only require some time and a few technical skills. The whole process for a Tor relay isn’t too complicated but there are a few preliminary steps you’ll need to complete first. 

    To begin, gather a few details on your internet connection and the server you plan to use. It’s best to not take your ISP at their word when it comes to actual bandwidth. Instead, it’s advisable that you go to a site like speedtest.net to acquire the download and upload speeds.

    Test the speeds during peak hours to get a more accurate ballpark of how much bandwidth is afforded to you during busy traffic loads. If you’re not currently under contract for an unlimited bandwidth plan, you’ll also need to understand the limits placed on your data each month.

    Next, quickly figure out what your public IP address is by heading to ip4.me. The address will be displayed at the top of the page. It will also benefit you to keep in mind if you are using a proxy server, NAT, firewall or router in your network.

    The same can be said if there are any social applications with transmissions that should be concealed. If there are some, locate which ports are being used and configure them to use different ones, if possible.

    Configuring Your Tor Hardware

    Now is the time to choose the hardware and operating system your Tor relay will run. You need around 250KBps minimum internet download speed, although the more the merrier. It’s also a good idea to load everything using at least 64-bit architecture.

    The operating system is ultimately up to you but Debian (or Ubuntu) would be the best choice. There is a Tor package located in the Debian repository that makes installation very simple.

    Installing & Configuring The Tor Agent

    The rest of this tutorial will assume that Debian is the OS of choice.

    sudo apt-get install tor
    Starting tor daemon…done

     or 

    Setting up tor…
    sudo tail -f /var/log/messages 
    sudo vi /etc/tor/torrc
    ORPort 443
    Exitpolicy reject *:*
    Nickname whateveryouwant
    ContactInfo thisguy@itor.com
    ccountingStart day 0:00
    AccountingMax 512 MBytes
    RelayBandwidthRate 5120 KBytes
    RelayBandwidthBurst 10240 KBytes
    :wq 
    sudo service tor restart 

    Monitoring Your Tor Relay

    You can keep an eye on your relay using the Anonymizing Relay Monitor (ARM). Install it via the terminal with the following command: 

    sudo apt-get install tor-arm 
    sudo arm

    Tor Metrics, formerly Tor Atlas, is another great monitoring service that will display your relay publicly. The site contains a global catalog of Tor relays and exit nodes. It will take up to 4 hours after your relay has been set up before it will be visible on the site.

    # cat /var/lib/tor/fingerprint
    https://metrics.torproject.org/#details/<relay fingerprint info>

    Don’t expect your relay to gain much traffic any time soon. It will likely take a few days for data routing to get going and no earlier than 68 days before your relay can be considered a possible entry point for other clients.

    Just know that once everything has finally settled, you’ll be a part of a growing collaboration of volunteers that provide millions of users a safer way to use the internet.

    Exit mobile version