2.7 KiB
Prepare a remote node to accept the JoinMarket connection
JoinMarket (running in JoinInBox) needs to connect to Bitcoin Core.
A pruned node with the wallet enabled will do and txindex is not required.
This guide shows how to prepare a RaspiBlitz to accept this connection.
LAN connection
In the terminal of the node - allow remote RPC connections to Bitcoin Core
This can be skipped if you connect through Tor
-
Edit the bitcoin.conf
$ sudo nano /mnt/hdd/bitcoin/bitcoin.confAdd the values:
(edit to your local subnet - the first 3 numbes of the LAN IP address, the example used here is: 192.168.1)
(can keep the otherrpcallowipandrpcbindentires especially for the localhost: 127.0.0.1)rpcallowip=192.168.1.0/24 rpcbind=0.0.0.0 -
Restart Bitcoin Core
$ sudo systemctl restart bitcoind -
Open the firewall to allow the RPC connection from LAN
(edit to your local subnet):
sudo ufw allow from 192.168.1.0/24 to any port 8332
ufw enable -
Take note of the
LAN_ADDRESSof the remote node and fill it in to therpc_hostinjoinmarket.cfg
Tor connection
On the node - activate Tor and create a Hidden Service
Make sure that Tor is installed or active in the SERVICES menu
Create a Hidden Service to forward the bitcoin RPC port
-
On the RaspiBlitz since v1.4 there is a script to create a hidden service:
./config.scripts/internet.hiddenservice.sh bitcoinrpc 8332 8332 -
Take note of the
Tor_Hidden_Service.onionand fill in to therpc_hostin thejoinmarket.cfg
Alternatively proceed manually:
-
Open the Tor configuration file
$ sudo nano /etc/tor/torrc -
Insert the lines
# Hidden Service v3 for bitcoinrpc HiddenServiceDir /mnt/hdd/tor/bitcoinrpc HiddenServiceVersion 3 HiddenServicePort 8332 127.0.0.1:8332 -
Restart Tor
$ sudo systemctl restart tor -
Take note of the
Tor_Hidden_Service.onion$ sudo cat /mnt/hdd/tor/bitcoinrpc/hostname -
Fill in the
Tor_Hidden_Service.onionto therpc_hostin thejoinmarket.cfg
Remember to use torify with the python scripts when connecting remotely through Tor - applied automatically in the JoininBox
Example:
torify wallet-tool.py wallet.jmdat
also need to allow Tor to connect to localhost