In this November, we finally get to run a new AS (autonomous system): AS63806 (MENHERA), and a new Tor relay on it!
In Japan I live, Tor relays are very rare. I wanted to run a fast Tor relay when it became possible.
We founded a new nonprofit incorporated in Japan in January 2023, which as one of its goals promotes online privacy. Doing research, education, advocation or any independent activities, are done best with a self-controlled independent network. And so with running Tor relays.
So we applied for a new ASN at JPNIC, and as soon as we got one, we set up BGP with a few trustworthy transit providers.
Our transit providers do not bother with what we use our network for, as long as it is lawful and non-profit—mainly because the IP ranges used are ours.
Now we have a new independent network where consuming as much as 100Mbits/s worth of bandwidth 24/7, at multiple locations, is OK.
And now with a running Tor relay, I would like to know how to run a fast Tor relay best. We are running a relay on Ubuntu with the tor repository.
We did the following:
-
Ensure IPv6 connectivity
-
Use a fast VM dedicated to Tor (64GB of memory, 12 CPUs, 12th gen Intel)
-
Assign more ports for Tor
net.ipv4.ip_local_port_range=15000 64000
- Disable UFW/stateful firewalls and just block outbound port 25 at the edge router
We also want to increase our backbone bandwidth.
Is there anything I did not mention, that helps us run a fast relay?
Open question: Does running an exit relay make our other IP addresses less usable for other activities, like sending emails?