mirror of
https://github.com/openoms/bitcoin-tutorials.git
synced 2025-12-20 13:24:19 +01:00
add ZAP connection through Tor
This commit is contained in:
75
Zap_to_RaspiBlitz_through_Tor.md
Normal file
75
Zap_to_RaspiBlitz_through_Tor.md
Normal file
@@ -0,0 +1,75 @@
|
||||
## Connect the Zap Lightning Wallet on iOS TestFlight to the RaspiBlitz over Tor
|
||||
|
||||
### Create the Hidden Service:
|
||||
* In the RaspiBlitz terminal:
|
||||
`sudo nano /etc/tor/torrc`
|
||||
|
||||
* paste on the end of the file
|
||||
```
|
||||
HiddenServiceDir /mnt/hdd/tor/lnd_REST/
|
||||
HiddenServiceVersion 3
|
||||
HiddenServicePort 8080 127.0.0.1:8080
|
||||
```
|
||||
If you want to you a different port:
|
||||
```
|
||||
HiddenServicePort THIS_CAN_BE_ANY_PORT 127.0.0.1:8080
|
||||
```
|
||||
* Take note of the .onion address
|
||||
`sudo cat /mnt/hdd/tor/lnd_REST/hostname`
|
||||
|
||||
### Install lndconnect
|
||||
|
||||
* Can install from the RaspiBlitz MOBILE menu by attempting to connect Zap in the traditional way.
|
||||
|
||||
* Add Go to the PATH by pasting this to the RaspiBlitz terminal:
|
||||
```
|
||||
export GOROOT=/usr/local/go
|
||||
export PATH=$PATH:$GOROOT/bin
|
||||
export GOPATH=/usr/local/gocode
|
||||
export PATH=$PATH:$GOPATH/bin
|
||||
sudo bash -c "echo 'PATH=\$PATH:/usr/local/gocode/bin/' >> /etc/profile"
|
||||
```
|
||||
|
||||
* Alternatively install go and lndconnect manually:
|
||||
```
|
||||
# check if Go is installed (should be v1.11 or higher):
|
||||
go version
|
||||
# If need to install Go, run these:
|
||||
wget https://storage.googleapis.com/golang/go1.13.linux-armv6l.tar.gz
|
||||
sudo tar -C /usr/local -xzf go1.11.linux-armv6l.tar.gz
|
||||
sudo rm *.gz
|
||||
sudo mkdir /usr/local/gocode
|
||||
sudo chmod 777 /usr/local/gocode
|
||||
export GOROOT=/usr/local/go
|
||||
export PATH=$PATH:$GOROOT/bin
|
||||
export GOPATH=/usr/local/gocode
|
||||
export PATH=$PATH:$GOPATH/bin
|
||||
|
||||
# Install lndconnect:
|
||||
cd /tmp
|
||||
wget https://github.com/LN-Zap/lndconnect/releases/download/v0.1.0/lndconnect-linux-armv7-v0.1.0.tar.gz
|
||||
sudo tar -xvf lndconnect-linux-armv7-v0.1.0.tar.gz --strip=1 -C /usr/local/bin
|
||||
```
|
||||
|
||||
### Generate the lndconnect string
|
||||
* Run lndconnect with the -j option to display the text string:
|
||||
`lndconnect -j`
|
||||
|
||||
* Edit the string:
|
||||
Change the IP address to the .onion address noted previously.
|
||||
Change the port to 8080 (or your custom port set in the torrc)
|
||||
delete the `cert=` until the `macaroon=` entry.
|
||||
|
||||
Ends up in the format:
|
||||
|
||||
```
|
||||
lndconnect://YOUR_HIDDEN_SERVICE_ADDRESS.onion:8080?macaroon=<base64adminmacaroon>
|
||||
```
|
||||
|
||||
### Connect Zap through Tor
|
||||
* Share the string to your phone in an encrypted chat message to yourself (for example).
|
||||
|
||||
* Paste the string into the Tor enabled Zap
|
||||
* Enjoy your private and encrypted remote connection!
|
||||
|
||||
<img src="images/zap_on_tor.jpg" alt="drawing" width="400"/>
|
||||
@@ -58,7 +58,7 @@ $ go version
|
||||
If need to install Go, run these:
|
||||
|
||||
```
|
||||
$ wget https://storage.googleapis.com/golang/go1.11.linux-armv6l.tar.gz
|
||||
$ wget https://storage.googleapis.com/golang/go1.13.linux-armv6l.tar.gz
|
||||
$ sudo tar -C /usr/local -xzf go1.11.linux-armv6l.tar.gz
|
||||
$ sudo rm *.gz
|
||||
$ sudo mkdir /usr/local/gocode
|
||||
|
||||
BIN
images/zap_on_tor.jpg
Normal file
BIN
images/zap_on_tor.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 52 KiB |
Reference in New Issue
Block a user