Skip to content

Commit 5116ff8

Browse files
committed
minor/final edits for v3
1 parent 0c71873 commit 5116ff8

4 files changed

Lines changed: 34 additions & 27 deletions

‎docs/20_0_Using_Tor.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ Standup](https://github.com/BlockchainCommons/Bitcoin-Standup-Scripts). It
55
will help to keep your server secure, which is critically important
66
when you're dealing with cryptocurrency. This is the first of a few
77
chapters that expands beyond Bitcoin to talk about the larger world of
8-
privacy—which is critical for maintaining the security of your Bitcoin
9-
server.
8+
privacy.
109

1110
## Objectives for This Chapter
1211

‎docs/20_1_Verifying_Your_Tor_Setup.md‎

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
If you did a standard installation with [Bitcoin
44
Standup](https://github.com/BlockchainCommons/Bitcoin-Standup) then
5-
you should have Tor set up as part of your Bitcoin node: Tor is
6-
installed and has created hidden services for the Bitcoin RPC ports;
7-
while an onion address has also been created for `bitcoind`. This
8-
section talks about what all of that is and what to do with it.
5+
you Tor is installed and has created hidden services for the Bitcoin
6+
RPC ports; while an onion address has also been created for
7+
`bitcoind`. This section talks about what all of that is and what to
8+
do with it.
99

1010
> 📖 ***What is Tor?*** Tor is a low-latency anonymity and overlay
1111
network based on onion routing and path-building design for enabling
@@ -17,7 +17,7 @@ name derived from the acronym for the original software project name:
1717
peer-to-peer network that listens for transactions and propagates them
1818
using a public IP address. When connecting to the network not using
1919
Tor, you would share your IP address, which could expose your
20-
location, your uptime, and others details to third parties — which is
20+
location, your uptime, and others details to third parties, which is
2121
an undesirable privacy practice. To protect yourself online you should
2222
use tools like Tor to hide your connection details. Tor allows you to
2323
improve your privacy online as your data is cryptographically encoded
@@ -71,22 +71,23 @@ metadata to compromise anonymity and potentially identify users.
7171

7272
There are also studies that suggest that possible exploits of
7373
Bitcoin's anti-DoS protection could allow an attacker to force other
74-
users who use Tor to connect exclusively through his Tor Exit nodes or
75-
to his Bitcoin peers, isolating the client from the rest of the
76-
Bitcoin network and exposing them to censorship, correlation, and
77-
other attacks.
74+
users who use Tor to connect exclusively through the attacker's Tor
75+
Exit nodes or to their Bitcoin peers, isolating the client from the
76+
rest of the Bitcoin network and exposing them to censorship,
77+
correlation, and other attacks.
7878

7979
Similarly, Bitcoin Tor users could be fingerprint-attacked by setting
8080
an address cookie on their nodes. This would also allow correlation
81-
and thus deanonymization.
81+
and so deanonymization.
8282

8383
Meanwhile, even over Tor, Bitcoin is only a pseudoanonymous service
8484
due to the many dangers of correlation that stem from the permanent
8585
ledger itself. This means that Bitcoin usage over Tor is actually more
8686
likely to be _deanonymized_ than other services (and could lead to the
8787
deanonymization of other activities).
8888

89-
With that said, Tor is generally considered safer than the alternative, which is non-anonymous browsing.
89+
With that said, Tor is generally considered safer than the
90+
alternative, which is non-anonymous browsing.
9091

9192
## Verify Your Tor Setup
9293

@@ -95,16 +96,17 @@ Bitcoin Standup, the following will verify that Tor is running on your
9596
system.
9697

9798
```
98-
$ sudo -u debian-tor tor --verify-config
99+
sudo -u debian-tor tor --verify-config
99100
```
100101

101102
If Tor is installed correctly you should output like this:
102103
```
103-
Oct 29 12:10:58.346 [notice] Tor 0.4.9.14 running on Linux with Libevent 2.1.13-stable, OpenSSL 3.5.7, Zlib 1.3.1, Liblzma 5.8.1, Libzstd 1.5.7 and Glibc 2.41 as libc.
104-
Oct 29 12:10:58.346 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://support.torproject.org/faq/staying-anonymous/
105-
Oct 29 12:10:58.346 [notice] Read configuration file "/etc/tor/torrc".
104+
| Oct 29 12:10:58.346 [notice] Tor 0.4.9.14 running on Linux with Libevent 2.1.13-stable, OpenSSL 3.5.7, Zlib 1.3.1, Liblzma 5.8.1, Libzstd 1.5.7 and Glibc 2.41 as libc.
105+
| Oct 29 12:10:58.346 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://support.torproject.org/faq/staying-anonymous/
106+
| Oct 29 12:10:58.346 [notice] Read configuration file "/etc/tor/torrc".
106107
Configuration was valid
107108
```
109+
108110
> ⚠️ **Verification is Limited:** This just means that Tor is running, not that its being used for all (or any) connections.
109111
110112
At this point you should be able to use Tor in two ways. First, you
@@ -134,10 +136,11 @@ HiddenServicePort 18332 127.0.0.1:18332
134136
HiddenServicePort 18443 127.0.0.1:18443
135137
HiddenServicePort 8332 127.0.0.1:8332
136138
```
139+
137140
> 🔗 **SIGNET vs MAINNET:** Mainnet RPC is run on port 8332, testnet on port 18332, regtest on port 18443, signet on port 38332.
138141
139142
> ℹ️ **Note the Directory:** The `HiddenServiceDir` is where all the
140-
files are kept for this particular service. If you need to lookup your
143+
files are kept for this particular service. If you need to look up your
141144
onion address, access keys, or add authorized clients, this is where
142145
to do so! (It will require root/sudo access on the default Standup
143146
setup.)
@@ -147,8 +150,7 @@ The easy way to test your RPC Hidden Service is to use the
147150
API](https://github.com/BlockchainCommons/Bitcoin-Standup/blob/master/Docs/Quick-Connect-API.md)
148151
built into Bitcoin Standup. Just download the QR code found at
149152
`/qrcode.png` and scan it using a wallet or node that support
150-
QuickConnect, such as [The Gordian
151-
Wallet](https://github.com/BlockchainCommons/FullyNoded-2). When you
153+
QuickConnect, such as [Fully Noded](https://fullynoded.app/) When you
152154
scan the QR, you should see the wallet sync up with your node; it's
153155
doing so using the RPC hidden services.
154156

@@ -158,7 +160,7 @@ normal UNIX command to a Tor-protected command. It's difficult because
158160
you need to grab three pieces of information.
159161

160162
1. **Your Hidden Service Port.** This comes from `/etc/tor/torrc/`. By default, all of the Tor ports are set to mirror the regular TCP/IP ports, so the Signet server is at 38332.
161-
2. **Your Tor Address.** This is in the `hostname` file in the `HiddenServiceDir` directory defined in `/etc/tor/torrc`. By default the file is thus `/var/lib/tor/standup/hostname`. It's protected, so you'll need to `sudo` to access it:
163+
2. **Your Tor Address.** This is in the `hostname` file in the `HiddenServiceDir` directory defined in `/etc/tor/torrc`. By default the file is therefore `/var/lib/tor/standup/hostname`. It's protected, so you'll need to `sudo` to access it:
162164
```
163165
sudo more /var/lib/tor/standup/hostname
164166
@@ -185,12 +187,12 @@ torify bitcoin-cli -rpcconnect=w3ibwqdeshamshemws242opykpjo2a7wduk6xrmsp6vuovgpj
185187

186188
> ⚠️ **ISPs May Block You:** Unfortunately, ISPs and cloud providers
187189
increasingly are blocking ports. Wallets and `bitcoin-cli` may both be
188-
unable to connect to the torified RPC ports that you have set up.
190+
unable to connect to the torified RPC ports that you have set up.
189191

190192
### Verify Your Tor Setup for Bitcoind
191193

192194
Bitcoin Standup also ensures that your `bitcoind` is set up to
193-
optionally communicate on an onion address.
195+
optionally communicate with other Bitcoin servers on an onion address.
194196

195197
You can verify the initial setup of Tor for `bitcoind` by grepping for "tor" in the `debug.log` in your data directory:
196198

@@ -396,8 +398,8 @@ discussed in the next section.
396398
Tor is a software package installed at part of Bitcoin Standup that
397399
allows you to exchange communications anonymously. It will protect
398400
both your RPC ports (8332, 18332, 38332) and your `bitcoind` ports
399-
(8333, 18333, 3833) — but you have to actively connect to the onion
400-
address to use them! Tor is a building stone of privacy and security
401+
(8333, 18333, 38333) — but you have to actively connect to the onion
402+
address to use them! Tor is a building block of privacy and security
401403
for your Bitcoin setup, and you can verify it's available and linked
402404
to Bitcoin with a few simple commands.
403405

‎docs/20_2_Changing_Your_Bitcoin_Hidden_Services.md‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,13 @@ See [Bitcoin Onion Nodes](https://github.com/emmanuelrosa/bitcoin-onion-nodes) f
7171

7272
Afterward, restart `tor` and `bitcoind`.
7373

74-
You should now be communicating exclusively on Tor. But, unless you are in a hostile state, this level of anonymity is probably not required. It also is not particularly recommended: you might greatly decrease your number of potential peers, inviting problems of censorship or even correlation. You may also see lag. And, this setup may give you a false sense of anonymity that really doesn't exist on the Bitcoin network.
74+
You should now be communicating exclusively on Tor. But, unless you
75+
are in a hostile state, this level of anonymity is probably not
76+
required. It also is not particularly recommended: you might greatly
77+
decrease your number of potential peers, inviting problems of
78+
censorship or even correlation. You may also see lag. And, this setup
79+
may give you a false sense of anonymity that really doesn't exist on
80+
the Bitcoin network.
7581

7682
> ⚠️ **Bleeding Edge Setup:** This setup is untested! Use at your own risk!
7783

‎docs/20_3_Adding_SSH_Hidden_Services.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ security and privacy. This section demonstrates how by introducing an
99

1010
New services are created by adding them to the `/etc/tor/torrc` file.
1111

12-
The following must be done as root:
12+
The following, done as root, will add a hidden SSH service:
1313
```
1414
sudo cat >> /etc/tor/torrc << EOF
1515
HiddenServiceDir /var/lib/tor/hidden-service-ssh/

0 commit comments

Comments
 (0)