mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-21 14:34:49 +01:00
Merge #20587: [doc] Tidy up Tor doc (more stringent)
32045bbfd5
[doc] Tidy up Tor doc (more stringent) (wodry) Pull request description: This is a follow up to https://github.com/bitcoin/bitcoin/pull/19638 that left two deprecated "hidden service/server" naming occurences. It also shall make the chapter titles regarding creation of onion services stringent and easy to read and distinguish. It removes the one and only reference to the testnet (here the testnet onion service port), as it is not explained that it references to the testnet and I do not know why it is mentioned there. It is only confusing. Also, as said, the testnet is not referenced at any other place in this document. ACKs for top commit: practicalswift: ACK32045bbfd5
laanwj: Review ACK32045bbfd5
RiccardoMasutti: ACK32045bb
Tree-SHA512: c623387b76d68845c0fa47f67a6f8ef70c9c560e3f8f8754e45a4f51e43198c2092be789588acd4ada607f42fbe62d51a4b1888d81b225df19b6557a081835c0
This commit is contained in:
commit
b76abae387
1 changed files with 3 additions and 4 deletions
|
@ -37,7 +37,7 @@ In a typical situation, this suffices to run behind a Tor proxy:
|
|||
./bitcoind -proxy=127.0.0.1:9050
|
||||
|
||||
|
||||
## 2. Run a Bitcoin Core hidden server
|
||||
## 2. Manually create a Bitcoin Core onion service
|
||||
|
||||
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
|
||||
|
@ -46,7 +46,6 @@ versions of Tor see [Section 3](#3-automatically-listen-on-tor).*
|
|||
|
||||
HiddenServiceDir /var/lib/tor/bitcoin-service/
|
||||
HiddenServicePort 8333 127.0.0.1:8334
|
||||
HiddenServicePort 18333 127.0.0.1:18334
|
||||
|
||||
The directory can be different of course, but virtual port numbers should be equal to
|
||||
your bitcoind's P2P listen port (8333 by default), and target addresses and ports
|
||||
|
@ -92,7 +91,7 @@ for normal IPv4/IPv6 communication, use:
|
|||
|
||||
./bitcoind -onion=127.0.0.1:9050 -externalip=57qr3yd1nyntf5k.onion -discover
|
||||
|
||||
## 3. Automatically listen on Tor
|
||||
## 3. Automatically create a Bitcoin Core onion service
|
||||
|
||||
Starting with Tor version 0.2.7.1 it is possible, through Tor's control socket
|
||||
API, to create and destroy 'ephemeral' onion services programmatically.
|
||||
|
@ -130,6 +129,6 @@ in the tor configuration file. The hashed password can be obtained with the comm
|
|||
|
||||
- Do not add anything but Bitcoin Core ports to the onion service created in section 2.
|
||||
If you run a web service too, create a new onion service for that.
|
||||
Otherwise it is trivial to link them, which may reduce privacy. Hidden
|
||||
Otherwise it is trivial to link them, which may reduce privacy. Onion
|
||||
services created automatically (as in section 3) always have only one port
|
||||
open.
|
||||
|
|
Loading…
Add table
Reference in a new issue