Tor Relay Configuration Generator
Generate secure torrc configurations for Middle/Guard, Exit, or Bridge relays. Review Tor documentation and local laws before deployment.
Want to run a Snowflake Proxy instead? Snowflake is a lightweight way to help censored users without running a full Tor relay. It doesn't require torrc configuration. Learn more about Snowflake →
Copy this into /etc/tor/torrc:
After applying your configuration, restart Tor: sudo systemctl restart tor
Understanding Tor Relay Types
Tor relays are servers that help route traffic through the Tor network. Different relay types serve different roles:
Middle relays route traffic between other relays. High-performing relays may be promoted to Guard status by Directory Authorities, becoming trusted entry points.
Risk: Low — never sees destination traffic.
Exit relays are the final hop, connecting to destination websites on behalf of Tor users. They require careful exit policy configuration.
Risk: Medium — may receive abuse complaints.
Bridges are unlisted relays that help censored users access Tor. They can use pluggable transports like obfs4 or WebTunnel to disguise traffic.
Risk: Low — helps bypass censorship.
Review these resources before deploying your relay: