@@ -5,67 +5,73 @@ This guide shows how to prepare a RaspiBlitz to accept this connection.
55
66## LAN connection
77
8- ### In the node terminal - allow remote RPC connections to Bitcoin Core
9- This can be skipped if you [ connect through Tor] ( #tor-connection ) )
8+ In the terminal of the node - allow remote RPC connections to Bitcoin Core
9+ This can be skipped if you [ connect through Tor] ( #tor-connection )
1010
11- 1 ) #### Edit the bitcoin.conf:
11+ 1 ) Edit the bitcoin.conf
1212 ` $ sudo nano /mnt/hdd/bitcoin/bitcoin.conf `
1313
1414 Add the values:
15- (edit to your local subnet - the first 3 numbes of the LAN IP address, example here: 192.168.1)
15+ (edit to your local subnet - the first 3 numbes of the LAN IP address, the example used here is : 192.168.1)
1616 (can keep the other ` rpcallowip ` and ` rpcbind ` entires especially for the localhost: 127.0.0.1)
1717 ```
1818 rpcallowip=192.168.1.0/24
1919 rpcbind=0.0.0.0
2020 ```
21- 2) #### Restart Bitcoin Core:
21+ 2) Restart Bitcoin Core
22+
2223 `$ sudo systemctl restart bitcoind`
2324
24- 3) #### The firewall needs to be opened to allow the RPC connection from LAN
25+ 3) Open the firewall to allow the RPC connection from LAN
26+
2527 (edit to your local subnet):
2628 `sudo ufw allow from 192.168.1.0/24 to any port 8332`
2729 `ufw enable`
2830
29- ### Take note of the `LAN_ADDRESS` of the remote node and fill it in to the `rpc_host` in `joinmarket.cfg`
31+ 4) Take note of the `LAN_ADDRESS` of the remote node and fill it in to the `rpc_host` in `joinmarket.cfg`
3032
3133## Tor connection
3234
33- ### On the node - activate Tor and create a Hidden Service
35+ On the node - activate Tor and create a Hidden Service
3436
35- Make sure that Tor is active in the SERVICES menu.
37+ Make sure that Tor is installed or active in the SERVICES menu
3638
3739#### Create a Hidden Service to forward the bitcoin RPC port
3840
39- On the RaspiBlitz since v1.4 there is a script to create a hidden service:
41+ 1) On the RaspiBlitz since v1.4 there is a script to create a hidden service:
4042 `./config.scripts/internet.hiddenservice.sh bitcoinrpc 8332 8332`
4143
44+ 2) Take note of the `Tor_Hidden_Service.onion` and fill in to the `rpc_host` in the `joinmarket.cfg`
45+
4246Alternatively proceed manually:
4347
44- 1) #### Open the Tor configuration file:
48+ 1) Open the Tor configuration file
4549 `$ sudo nano /etc/tor/torrc`
4650
47- 2) #### Insert the lines:
51+ 2) Insert the lines
4852 ```bash
4953 # Hidden Service v3 for bitcoinrpc
5054 HiddenServiceDir /mnt/hdd/tor/bitcoinrpc
5155 HiddenServiceVersion 3
5256 HiddenServicePort 8332 127.0.0.1:8332
5357 ```
54- 3) #### Restart Tor:
58+ 3) Restart Tor
59+
5560 `$ sudo systemctl restart tor`
5661
57- 4) #### Take note of the `Tor_Hidden_Service.onion`:
62+ 4) Take note of the `Tor_Hidden_Service.onion`
63+
5864 `$ sudo cat /mnt/hdd/tor/bitcoinrpc/hostname`
5965
60- 5) #### Fill in the `Tor_Hidden_Service.onion` to the `rpc_host` in the `joinmarket.cfg`
66+ 5) Fill in the `Tor_Hidden_Service.onion` to the `rpc_host` in the `joinmarket.cfg`
67+
6168
62- ### Take note of the `Tor_Hidden_Service.onion` and fill in to the `rpc_host` in the `joinmarket.cfg`
69+ Remember to use `torify` with the python scripts when connecting remotely through Tor - applied automatically in the JoininBox
6370
64- ### Remember to use `torify` with the python scripts when connecting remotely through Tor.
65- (Applied automatically in the JoininBox)
66- Example:
67- `torify wallet-tool.py wallet.jmdat`
71+ Example:
72+ `torify wallet-tool.py wallet.jmdat`
6873
74+ also need to [allow Tor to connect to localhost](FAQ.md#allow-tor-to-connect-to-localhost)
6975## Resources:
7076
7177* [JoinMarket on the RaspiBlitz guide](https://github.com/openoms/bitcoin-tutorials/blob/master/joinmarket/README.md)
0 commit comments