Expectations for relay operators
Expectations for Relay Operators¶
The Expectations for Relay Operators document strives to be a clear and comprehensive guide for the relay operator community. This is an effort to keep the Tor community and the network safe, healthy, and sustainable.
Version 1.0\ Last updated: 2023-12-03
1. Keep users safe¶
- Don't look at, or modify, network traffic.
- Don't reveal user or destination IP addresses, or the timing or volume of connections. For instance, don't create a publicly available webpage showing bandwidth history or any statistics about the machine (e.g. CPU/RAM usage) as these can be used in surprising ways to attack users.
- By default (e.g. unless you are debugging a specific thing), log at loglevel "notice", and leave SafeLogging on.
- Running a bridge and a public relay using the same IP address is discouraged as censored users won't be able to connect to the network.
- If you run more than one relay, set the MyFamily option for each of them, to instruct clients to avoid using more than one in a circuit, and to help the Network Health team know which relays are really yours.
- Don't modify your Tor process to examine internal state. In particular, don't record onion addresses.
- Don't proxy your relay exit traffic through a VPN or other proxies. It can introduce more surface area (more places get a chance to see the traffic). Second, it seems to be correlated with people trying to do shady things with their traffic, and third, having that extra hop can impact the network performance.
- If you want to measure or study the Tor network, do it safely: write up your plan first and get feedback from the Tor Research Safety Board.
2. Maintain good system operational security (opsec)¶
- Run a version of Tor that is supported. You can see supported versions on the Network Team wiki page. Relays and bridges running Tor versions that are end-of-life (EOL), unsupported versions, or with known security vulnerabilities we will follow the Relay EOL Policy and remove from the network.
- Watch your Tor logs for warnings and try to address them.
- Make sure to keep the rest of your system software up to date too.
- Try not to let adversaries get your relay secret keys, but if they do, make sure to contact the bad relays team, so we can block those keys from the network.
3. Make sure your relay isn't broken¶
- Tor relays need 10000+ file descriptors, so be sure your Tor package or startup script is raising your
- Don't firewall outgoing connections. Tor relays need to be able to reach all other Tor relays, including new ones that are self-testing their reachability.
- Exit relays need a working DNS resolver. Also, don't use a DNS resolver that censors its answers.
- If there's a port or address block that your exit relay can't reach, be sure to reject it in your ExitPolicy, so clients can know to use a different exit.
- Don't try to run an exit relay at a place where you plan to just discard it and move on if the ISP complains to you. Running an exit relay involves advocacy to your ISP, to help them understand how Tor works and why it's important.
- If somebody tries to get you to backdoor or tap your relay, don't do it. Find a lawyer and fight it, and if you can't fight it, shut the relay down instead.
5. Be a part of our community¶
- Remember that running a relay is an act of transparency (even though being a Tor user is an act of privacy), because the way to strengthen trust in relays is by having a stronger community.
- Make an effort to meet other relay operators and developers in your area and at conferences and meetups.
- Be sure to set your
ContactInfoto a working email address in case we need to reach you.
- Running a relay is great because it helps to make Tor users safer. Please make sure you're not undermining Tor or Tor user safety in your other activities. For example, if your other hobby is developing surveillance tools for a shady company, or making people fear or hate privacy tools, please do not also run a Tor relay.
- Read our social contract and the other community documents.
If there is a question about whether you or your relay are following the expectations laid out here, these are the documents we will be using to guide our choices.
Contributing to this document¶
If you have feedback for improving this document, you can open a new ticket on the Community Policies repository. The repository is also available on Anon-Ticket, which does not require a GitLab account.