Module tor_stream::setup [−][src]
Expand description
Instructions on setting up a local Tor proxy
First, install Tor locally.
On Linux, you can just install the tor
package in most cases.
Visit the Tor installation guide for more specific instructions.
When Tor is installed, open Tor’s configuration torrc
(/etc/tor/torrc
) file in an editor,
and make sure the line SocksPort 9050
is uncommented.
You can then start Tor by running the Tor executable (/usr/bin/tor
).
To check whether everything is working correctly, run cargo run
.
If you want to use a special Tor address, you can pass it as first argument
or set the TOR_PROXY
environment variable:
cargo run -- 127.0.0.1:9050
TOR_PROXY=127.0.0.1:9050 cargo run