HELLO, THIS IS

DAN

I ARCHITECT PRAGMATIC AND BEAUTIFUL SOFTWARE.

Setting up a TOR Relay on your VPS


If your hosting company allows it, running a TOR relay is an excellent way to contribute to the Onion network which among other things, provides anonymous internet access for:

  • International Reporters and Whistleblowers
  • Individuals living under governments that restrict internet access
  • Individuals whom wish to protect their privacy online

Install and configure the TOR Relay

Note: Make sure you follow the instructions here to add TOR’s repositories before installing using apt-get!

First, make sure your apt repos are up to date:

sudo apt-get update

Then, install the TOR bundle:

sudo apt-get install tor

Edit the torrc file to prevent exit traffic:

sudo vim  /etc/tor/torrc

and change the following lines:

ORPort 443
Exitpolicy reject *:* # most important line: disallows exit traffic!
Nickname $SOME_NICK
ContactInfo $YOUR_EMAIL_ADDRESS

Lastly, restart the tor service!

sudo service tor restart

Monitoring your TOR relay

Theres an excellent project called tor-arm that allows you keep tabs on your relay. You can install it using apt:

apt-get install tor-arm

Then, just run:

sudo -u debian-tor arm

I like to keep mine going in a screen.

Conclusion

There you have it! You’re helping individuals around the world communicate anonymously and safely over the internet. You should consider registering your node with Tor Weather as you can win a free shirt if you keep your node up long enough!

Was this helpful?   BTC: 19yX3KZ7bMPdxChtefZ4RhVCzmvpXnYZYj    LTC: LZ1DxLdZEnwpoQvNRtJsifMe28Kt7ijV9n