Guide - ZeroTier on RaspiBlitz

Guide - ZeroTier on RaspiBlitz

Tired of waiting for your wallet to connect over tor? This guide shows you how to use ZeroTier to connect your bitcoin wallet to your RaspiBlitz bitcoin node.

ZeroTier

ZeroTier connects your online devices together using end to end encryption. It can be used to connect your phone running a bitcoin wallet to your RaspiBlitz bitcoin node.

You will make a my.zerotier.com account, install ZeroTier on your RaspiBlitz and Phone, authorise the devices and connect your wallet.

⚠️
Warning: This guide uses the ZeroTier webUI at my.zerotier.com/ with a network controller run by ZeroTier Inc. If this controller gets compromised it could edit your access control list. This would allow new devices to be added to your private network which would have access to your devices. It is technically possible to manually configure your own network controller, but this is not yet easy to set a managed IP address. This guide will be updated if an easy option is available.

ZeroTier Account

Use simplelogin to create a new email address, make a new GitHub account with this email, set up 2FA and use it to sign up to ZeroTier.

💡
You can sign up for to ZeroTier using a strong password, but the the GitHub account is useful if you want to try TailScale (a ZeroTier alternative) in the future.

View your network management page https://my.zerotier.com/network and copy your ZeroTier Network ID

This string (a0cbf4b62a79567f) is your ZeroTier NetworkID

ZeroTier Service on RaspiBlitz

SSH into your RaspiBlitz node and in node settings / options enable ZeroTier and follow the setup. You will be prompted to enter your ZeroTier Network ID.

Install ZeroTier from the Options Menu

ZeroTier on Mobile

You can only run one system managed VPN at a time, so check that there is no other VPN running on your phone. If you are using the CalyxOS Android operating system you can create a work profile to isolate your bitcoin wallets in a separate profile which has ZeroTier installed.

Download the ZeroTier app from your app store and follow the setup. You are prompted to enter your ZeroTier Network ID. In settings enable Use Cellular Data. Toggle the VPN on (1) and wait until the status indicator at the bottom of the screen reads ONLINE (2).

Device Authorisation

In your ZeroTier admin panel (my.zerotier.com/network/) click the check boxes to authorise these devices into your private ZeroTier network.

Click the checkboxes to add devices to your private network

Your devices will be automatically assigned Managed IPs.

Arrow pointing to Managed IP for my RaspiBlitz
💡
If you you don't know which device is your RaspiBlitz turn off ZeroTier on your phone. The remaining online device is your Raspiblitz. 

Connecting to Zeus

In the RaspiBlitz menu select the CONNECT option then select MOBILE then ZEUS_CLREST.

Wait until the QR code is shown then press enter to show the second QR code (the string to connect over LAN).

In Zeus Node configuration

  1. Change LND to c-ligtning-REST
  2. Press the SCAN C-LIGHTNING-REST QR button and scan the QR code shown in your RaspiBlitz terminal.
  3. Name your configuration RaspiBlitz ZeroTier
  4. Change the Host to the ZeroTier RaspiBlitz managed IP address (see commend in green box above). It should start with https://

Press save node config.

Steps for setting your node configuration in Zeus

Complete

Your Zeus wallet is now connected to your RaspiBliz

Privacy

The ZeroTier server (my.zerotier.com) knows your IP addresses but the packets are end to end encrypted. The private keys to decrypt the packets never leave your devices.

Alternative Methods

There are other ways to connect your mobile wallet to your home node.

Tor

Tor can connect your bitcoin wallet to your node, even if they are on different networks, using an onion service. There is no signup requirement and no central party coordinating the connections. When it works, it is hard to beat. Unfortunately tor is vulnerable to denial of service attacks which have reduced network reliability. This can cause long delays when loading a bitcoin wallet to make a payment or check a balance. It is useful to have an alternate connection option ready to use if tor is unavailable.

Manual Configuration

A technical person could set a static IP address, configure their network firewall and open public-facing ports. For a non technical person this can be hard, and opens your home network to attack from the outside.

Lightning Node Connect

A new system called Lightning Node Connect is under development which simplifies the connection between a node and a web or mobile application. It will be for LND users only and will also require LITD/Lightning terminal.

Tailscale

Similar in practice to Zerotier, easy to install on an Umbrel. Guide


Thank you to Selfbankt, BitcoinQnA and Evan Kaloudis for their feedback and suggestions.


Thank you for reading. If you enjoyed this post please share it.  
Donate
To make a one time anonymous donation send me an email or twitter message and I will reply with an address. If you expect to make repeat donations (thank you!) add my bip47 payment code by copying the text or scanning the QR code below. PM8TJgEjpM3FFqMWXHFmXx12n3n6qVe3Ps3iCQJwYFzf5pyeZgKxD5AdzSzFV…
If you got value from this post and wish to reciprocate you can donate here.