Changeset View
Changeset View
Standalone View
Standalone View
doc/tor.md
Show All 23 Lines | outgoing connections be anonymized, but more is possible. | ||||
-connect=X When behind a Tor proxy, you can specify .onion addresses instead | -connect=X When behind a Tor proxy, you can specify .onion addresses instead | ||||
-addnode=X of IP addresses or hostnames in these parameters. It requires | -addnode=X of IP addresses or hostnames in these parameters. It requires | ||||
-seednode=X SOCKS5. In Tor mode, such addresses can also be exchanged with | -seednode=X SOCKS5. In Tor mode, such addresses can also be exchanged with | ||||
other P2P nodes. | other P2P nodes. | ||||
In a typical situation, this suffices to run behind a Tor proxy: | In a typical situation, this suffices to run behind a Tor proxy: | ||||
./bitcoin -proxy=127.0.0.1:9050 | ./bitcoind -proxy=127.0.0.1:9050 | ||||
## 2. Run a bitcoin hidden server | ## 2. Run a bitcoin hidden server | ||||
If you configure your Tor system accordingly, it is possible to make your node also | If you configure your Tor system accordingly, it is possible to make your node also | ||||
reachable from the Tor network. Add these lines to your /etc/tor/torrc (or equivalent | reachable from the Tor network. Add these lines to your /etc/tor/torrc (or equivalent | ||||
config file): *Needed for Tor version 0.2.7.0 and older versions of Tor only. For newer | config file): *Needed for Tor version 0.2.7.0 and older versions of Tor only. For newer | ||||
versions of Tor see [Section 3](#3-automatically-listen-on-tor).* | versions of Tor see [Section 3](#3-automatically-listen-on-tor).* | ||||
Show All 38 Lines | as well, use `discover` instead: | ||||
./bitcoind ... -discover | ./bitcoind ... -discover | ||||
and open port 8333 on your firewall (or use -upnp). | and open port 8333 on your firewall (or use -upnp). | ||||
If you only want to use Tor to reach onion addresses, but not use it as a proxy | If you only want to use Tor to reach onion addresses, but not use it as a proxy | ||||
for normal IPv4/IPv6 communication, use: | for normal IPv4/IPv6 communication, use: | ||||
./bitcoin -onion=127.0.0.1:9050 -externalip=57qr3yd1nyntf5k.onion -discover | ./bitcoind -onion=127.0.0.1:9050 -externalip=57qr3yd1nyntf5k.onion -discover | ||||
## 3. Automatically listen on Tor | ## 3. Automatically listen on Tor | ||||
Starting with Tor version 0.2.7.1 it is possible, through Tor's control socket | Starting with Tor version 0.2.7.1 it is possible, through Tor's control socket | ||||
API, to create and destroy 'ephemeral' hidden services programmatically. | API, to create and destroy 'ephemeral' hidden services programmatically. | ||||
Bitcoin Core has been updated to make use of this. | Bitcoin Core has been updated to make use of this. | ||||
This means that if Tor is running (and proper authentication has been configured), | This means that if Tor is running (and proper authentication has been configured), | ||||
Show All 26 Lines |