You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a34eceb doc: update -externalip documentation in tor.md (Jon Atack)
dc8a591 doc: add tor.md section on how to get tor info via bitcoind (Jon Atack)
e1765d8 doc: update tor.md address examples from onion v2 to v3 (Jon Atack)
Pull request description:
It looks like `doc/tor.md` could use some updates and improvements, not only for Tor v3, but also for setting multiple addresses with `-externalip` (see the conversation from http://www.erisian.com.au/bitcoin-core-dev/log-2020-09-16.html#l-39), how to see information about your Tor config via Bitcoin Core, and other improvements.
Closes #19924.
ACKs for top commit:
laanwj:
ACK a34eceb
Tree-SHA512: 3197cdca1188dbd645c8f9e6ed7c023da5ad9bcf246a6bcbfbe6078f40c01c563032b4906736cde253a2daf71aaed28a659121628891a5d0bf6e89f821a17a28
Copy file name to clipboardExpand all lines: doc/tor.md
+21-6Lines changed: 21 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,16 @@ It is possible to run Bitcoin Core as a Tor onion service, and connect to such s
5
5
The following directions assume you have a Tor proxy running on port 9050. Many distributions default to having a SOCKS proxy listening on port 9050, but others may not. In particular, the Tor Browser Bundle defaults to listening on port 9150. See [Tor Project FAQ:TBBSocksPort](https://www.torproject.org/docs/faq.html.en#TBBSocksPort) for how to properly
6
6
configure Tor.
7
7
8
+
## How to see information about your Tor configuration via Bitcoin Core
9
+
10
+
There are several ways to see your local onion address in Bitcoin Core:
11
+
- in the debug log (grep for "tor:" or "AddLocal")
12
+
- in the output of RPC `getnetworkinfo` in the "localaddresses" section
13
+
- in the output of the CLI `-netinfo` peer connections dashboard
14
+
15
+
You may set the `-debug=tor` config logging option to have additional
16
+
information in the debug log about your Tor configuration.
17
+
8
18
9
19
## 1. Run Bitcoin Core behind a Tor proxy
10
20
@@ -51,14 +61,19 @@ The directory can be different of course, but virtual port numbers should be equ
51
61
your bitcoind's P2P listen port (8333 by default), and target addresses and ports
52
62
should be equal to binding address and port for inbound Tor connections (127.0.0.1:8334 by default).
53
63
54
-
-externalip=X You can tell bitcoin about its publicly reachable address using
55
-
this option, and this can be a .onion address. Given the above
56
-
configuration, you can find your .onion address in
64
+
-externalip=X You can tell bitcoin about its publicly reachable addresses using
65
+
this option, and this can be an onion address. Given the above
66
+
configuration, you can find your onion address in
57
67
/var/lib/tor/bitcoin-service/hostname. For connections
58
68
coming from unroutable addresses (such as 127.0.0.1, where the
59
-
Tor proxy typically runs), .onion addresses are given
69
+
Tor proxy typically runs), onion addresses are given
60
70
preference for your node to advertise itself with.
61
71
72
+
You can set multiple local addresses with -externalip. The
73
+
one that will be rumoured to a particular peer is the most
74
+
compatible one and also using heuristics, e.g. the address
75
+
with the most incoming connections, etc.
76
+
62
77
-listen You'll need to enable listening for incoming connections, as this
63
78
is off by default behind a proxy.
64
79
@@ -71,7 +86,7 @@ should be equal to binding address and port for inbound Tor connections (127.0.0
71
86
72
87
In a typical situation, where you're only reachable via Tor, this should suffice:
0 commit comments