Changeset View
Changeset View
Standalone View
Standalone View
doc/tor.md
Show All 39 Lines | |||||
## 2. Run a Bitcoin ABC hidden server | ## 2. Run a Bitcoin ABC 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).* | ||||
HiddenServiceDir /var/lib/tor/bitcoin-service/ | HiddenServiceDir /var/lib/tor/bitcoin-service/ | ||||
HiddenServicePort 8333 127.0.0.1:8333 | HiddenServicePort 8333 127.0.0.1:8334 | ||||
HiddenServicePort 18333 127.0.0.1:18333 | HiddenServicePort 18333 127.0.0.1:18334 | ||||
The directory can be different of course, but (both) port numbers should be equal to | The directory can be different of course, but virtual port numbers should be equal to | ||||
your bitcoind's P2P listen port (8333 by default). | your bitcoind's P2P listen port (8333 by default), and target addresses and ports | ||||
should be equal to binding address and port for inbound Tor connections (127.0.0.1:8334 by default). | |||||
-externalip=X You can tell bitcoin about its publicly reachable address using | -externalip=X You can tell bitcoin about its publicly reachable address using | ||||
this option, and this can be a .onion address. Given the above | this option, and this can be a .onion address. Given the above | ||||
configuration, you can find your .onion address in | configuration, you can find your .onion address in | ||||
/var/lib/tor/bitcoin-service/hostname. For connections | /var/lib/tor/bitcoin-service/hostname. For connections | ||||
coming from unroutable addresses (such as 127.0.0.1, where the | coming from unroutable addresses (such as 127.0.0.1, where the | ||||
Tor proxy typically runs), .onion addresses are given | Tor proxy typically runs), .onion addresses are given | ||||
preference for your node to advertise itself with. | preference for your node to advertise itself with. | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |