Hi, I would like to share with the community some tests I've made for setting up a "swarm" of Tor relays.
I setted up 3 exit relays and 3 middle relays on the same IPv4 address, to make some testing, and the entire swarm works like a charm.
Due to Tor limitation, I have decided to build a template for preparing the cluster, and upload it to GitHub.
You can find the example mini-cluster here: https://github.com/randomtable/ChimeraOS/tree/master/TorSwarm
I have tested the exit capabilities on another network with different public IP address.
All the relays have published their own descriptors, I have prepared the containers as a single, separated machines.
The process is different from preparing a single relay, because of Docker build process.
I have disabled caching during the cluster process, so i have been able to modify torrc without issues.
Because its very interesting, attached to this e-mail there is the console Logs from the 6 relays.
All containers are read-only, so the entire relay will destroy at the end of session.
I hope this can be useful.
Alessandro Fiori
Il giorno sab 30 mar 2019 alle ore 13:00 < tor-dev-request@lists.torproject.org> ha scritto:
Send tor-dev mailing list submissions to tor-dev@lists.torproject.org
To subscribe or unsubscribe via the World Wide Web, visit https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev or, via email, send a message with subject or body 'help' to tor-dev-request@lists.torproject.org
You can reach the person managing the list at tor-dev-owner@lists.torproject.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of tor-dev digest..."
Today's Topics:
- Re: Docker images for help people to run Tor (teor)
Message: 1 Date: Sat, 30 Mar 2019 13:08:53 +1000 From: teor teor@riseup.net To: tor-dev@lists.torproject.org Subject: Re: [tor-dev] Docker images for help people to run Tor Message-ID: 3D4905AF-1C10-47BF-8823-EB3228FF990F@riseup.net Content-Type: text/plain; charset="utf-8"
Hi,
(Please try to reply to the thread, not the digest!)
On 30 Mar 2019, at 11:51, Alessandro Fiori alefiori3@gmail.com wrote:
Because the images are built separately, and Containers doesn't have
persistent data by default, i'm testing the launch of a "relay swarm", which isn't the "Docker Swarm".
The concept of a "Relay swarm" is to have multiple running relay
containers on the same user machine, without any conflict.
The idea (i will testing it very soon) is possible, by pulling an image
and running it multiple times, creating intermetiate containers.
A function like the "relay swarm" can be very useful, i don't know if
this approach can be risky, so i'm preparing a script for launching only one type of relay swarm (middle or exit relays).
If there is no security concerns, this function will be a very key
function for grow up the Network, because a user can run multiple relays at a time.
Tor only allows 2 relays per IPv4 address.
T
Hi,
On 1 Apr 2019, at 07:55, Alessandro Fiori alefiori3@gmail.com wrote:
Hi, I would like to share with the community some tests I've made for setting up a "swarm" of Tor relays.
I setted up 3 exit relays and 3 middle relays on the same IPv4 address, to make some testing, and the entire swarm works like a charm.
Due to Tor limitation, I have decided to build a template for preparing the cluster, and upload it to GitHub.
You can find the example mini-cluster here: https://github.com/randomtable/ChimeraOS/tree/master/TorSwarm
I have tested the exit capabilities on another network with different public IP address.
All the relays have published their own descriptors, I have prepared the containers as a single, separated machines.
The process is different from preparing a single relay, because of Docker build process.
I have disabled caching during the cluster process, so i have been able to modify torrc without issues.
Because its very interesting, attached to this e-mail there is the console Logs from the 6 relays.
All containers are read-only, so the entire relay will destroy at the end of session.
I hope this can be useful.
Tor clients will only see 2 of your 6 relays, because the Tor directory authorities only publish 2 relays per IPv4 address.
Also, please use the deb.torproject.org repositories to get the latest version of tor: Mar 31 19:57:08.000 [warn] Please upgrade! This version of Tor (0.3.3.9) is not recommended, according to the directory authorities. Recommended versions are: 0.2.9.15,0.2.9.16,0.2.9.17,0.3.4.10,0.3.4.11,0.3.5.7,0.3.5.8,0.4.0.1-alpha,0.4.0.2-alpha,0.4.0.3-alpha
https://trac.torproject.org/projects/tor/wiki/TorRelayGuide/DebianUbuntu
T