TOR Running a Relay
Running a Tor Relay (non-exit / exit)
This guide covers recommended configuration and operational notes for running a relay. Non-exit relays help the network without carrying exit traffic; exit relays require extra legal and abuse-handling considerations.
Minimal non-exit relay torrc
# network listener
ORPort 9001
# don't exit
ExitPolicy reject *:*
Nickname my-relay
ContactInfo ops@example.com
RelayBandwidthRate 5 MB
RelayBandwidthBurst 10 MB
Log notice file /var/log/tor/notices.log
Minimal exit relay torrc (example — adjust to your legal counsel)
ORPort 9001
# example: allow HTTP/HTTPS only
ExitPolicy accept *:80, accept *:443, reject *:*
Nickname my-exit
ContactInfo ops@example.com
Running as a service
- Create a system user
torand placetorrcunder/etc/tor/torrc. - Start with
sudo systemctl enable --now torand monitorjournalctl -u tor.
Monitoring and courtesy
- Monitor bandwidth and CPU; tune
RelayBandwidthRateto match your link. - Subscribe to
tor-relays@lists.torproject.organd check the Tor Metrics/Atlas pages. - Consider posting an abuse contact and setting up an automated abuse response process.