Setting Up a Tor Exit Node

Started by Ibiza, 07-02-2018

Setting Up a Tor Exit Node
  07-02-2018, 05:40 PM
Setting Up A Tor Exit Node


I will only be teaching you how to set up the Relay, What you do with it
or encounter with it is up to you.

Debian Based Servers

First, you are going to have to add the Tor Repository to your sources list on your server.
For this example I will be using a Ubuntu 16.04 LTS server, main difference is simply the repository you will add
(If you are using a different flavor of Debian you can find your repository here )

To start off I will need to edit the Sources list

sudo nano /etc/apt/sources.list

Next, navigate to the bottom of the file and add these lines:

deb xenial main
deb-src xenial main

Next, save the file and return to the command line.
next enter these commands to add the gpg key used to sign the packages

gpg --keyserver --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89

gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -

Next use these to install tor:

sudo apt-get update && sudo apt-get upgrade

sudo apt-get install tor

Now Tor is installed on your servers, now here comes the complicated part.
In order to make tor run as a relay, you need to edit the torrc file.

In order to do this run this command:

sudo nano /etc/tor/torrc

Now you will find a big file, you will have to locate multiple lines in order to properly set up your Relay.
Or you could add all of these to the bottom of the page so you don't have to look around the whole file

Add these or find them and uncomment them:

Nickname YourRelaysName
RelayBandwidthRate 100 KBytes
RelayBandwidthBurst 200 KBytes

Now let my just talk about the last 2 lines here RelayBandwidthRate and RelayBandwidthBurst
They are here to limit the relayed traffic so if you have a limit on your server you can make sure not to go over it
In the Torrc itself if you can find this

Define these to limit how much relayed traffic you will allow. Your own traffic is still unthrottled. Note that RelayBandwidthRate must be at least 75 KiloBytes per second. Note that units for these config options are bytes (per second), not bits (per second). and that prefixed are binary prefixes, i.e. 2^10. 2^20, etc.

Continuing on, you will also need to add these:

AccountingMax 40 GBytes
AccountingStart day 00:00
AccountingStart month 3 15:00
ContactInfo Random Person <nobody At example dot com>
DirPort 9030

Next you will need to chose an Exit Policy, this will decide wether or not your relay is an
Exit node or not and if it is an Exit then it will determine what kind of connections you will allow,

Your Choices are these :

ExitPolicy accept *:6660-6667,reject *:* # allow irc ports on IPv4 and IPv6 but no more

ExitPolicy accept *:119 # accept nntp ports on IPv4 and IPv6 as well as default exit policy

ExitPolicy accept *4:119 # accept nntp ports on IPv4 only as well as default exit policy

ExitPolicy accept6 *6:119 # accept nntp ports on IPv6 only as well as default exit policy

ExitPolicy reject *:* # no exits allowed

Chose one of them and add them to the end of your file, then save it.
Next you will have to restart to, in order to do that run this command:

sudo service tor reload

Now you should have a running Tor Relay, to check this run this command:

sudo service tor status

If you dont see anything that really sticks out as an error then you should be good
Allow up to 12 hours and constently check and type in the name you gave
your relay.

If you have any questions please ask I would be happy to help

  10-21-2018, 06:47 AM
Nice one dude!
What do you think will happen to you network if they use your server? are you able to record the activity that was sent to your server?

« Next Oldest | Next Newest »

Possibly Related Threads…
Thread Author Replies Views Last Post
Setting Force HTTPS Menggunakan .htaccess wownime 0 107 10-06-2020, 01:55 PM
Last Post: wownime

1 Guest(s)