Running a tor middle relay
In this tutorial I will show you how to run a tor middle relay inside a VPS.
Get a VPS from any service providers.
Launch a Linux machine.
Get
tor
from the default package manager
# Ubuntu
$ apt-get install tor
# Arch
$ pacman -S tor
Or you can compile tor from source.
Edit the
/etc/tor/torrc
file using$EDITOR
.Add the following lines to that file.
Nickname myNiceRelay # Change "myNiceRelay" to something you like
ContactInfo mail@example.com # Write your e-mail and be aware it will be published
ORPort 443 # You might use a different port, should you want to
ExitRelay 0
SocksPort 0
RelayBandwidthRate 100 KBytes # Throttle traffic to 100KB/s (800Kbps)
RelayBandwidthBurst 200 KBytes # But allow bursts up to 200KB (1600Kb)
- Restart the tor service by running
systemctl restart tor@default
Now you are all set as a relay operator! :)
You can monitor the live traffic using nyx
command line tool.
# On Ubuntu
$ apt-get install nyx
# On Arch
$ pacman -S nyx
More info