Docker container for Tor Exit Relay
"Tor is free software and an open network that helps you defend against traffic analysis, a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, and state security."
To install docker in Ubuntu 16.04 use the commands:
$ sudo apt-get update $ wget -qO- https://get.docker.com/ | sh
To install docker in other operating systems check docker online documentation
To run container use the command below:
$ docker run -d -p 22 -p 9050:9050 -p 9001:9001 quantumobject/docker-tor-exit-relay
This container will generate dsa key for ssh the first time it is run , you need to add the private key to your ~/.ssh/id_dsa to be able to ssh this container. You be able to check this dsa key with command :
$ docker logs container-id
To access it and configured and used the container :
$ docker exec -it container-id /bin/bash
Them you can use it by torify command
$ torify ssh destination
To check if tor working correctly :
$ torify lynx https://check.torproject.org/
To use ssh anonymous please read about limitation and security at www.torproject.org
You can create a new container everytime you need to use it and remove it when done with it but this is bad idea if you want to keep a stable exit relay.
I added the Reduced Exit Policy to the configuration to make sure to drastically reduces the odds that a bittorrent user will select your node and it will reduce the risk of getting DMCA takedowns.
Note: because you use it don't mean you are complete anonymous , please read about Tor at www.torproject.org before using it. This suppose to work like relay and it will use 80k/100k of your network bandwidth.
About Tor : www.torproject.org
To help improve this container docker-tor-exit-relay
For additional info about us and our projects check our site www.quantumobject.org
Be careful this is a exit relay : maybe will allow you to be anonymous (check note) but will appear other traffic no relate to you in your server/computer for that reason the limitation of 80k/100K of your bandwidth and maybe it will put you in problem because that external traffic will appear like yours ..I try to reduce it by adding the Reduce Exit Policy but I can't warranty to be clear of legal problem ... use at your own risk ... please learn more about tor before you begin using it and legal implication ...