zerotier: update and formatting

This commit is contained in:
openoms
2020-01-06 14:18:25 +00:00
parent f8afb21e68
commit 14973e31cc

View File

@@ -2,7 +2,7 @@
ZeroTier is a VPN service which is an easy option to connect remotely when neither port forwarding nor using Tor is possible (e.g. iOS on a remote network) ZeroTier is a VPN service which is an easy option to connect remotely when neither port forwarding nor using Tor is possible (e.g. iOS on a remote network)
The drawback is that it requires installing a trusted package which gives access to your private network. The drawback is that it requires installing a trusted (open-source) package which gives access to your private network.
Steps to install: Steps to install:
@@ -13,10 +13,10 @@ Use a STRONG PASSWORD as anyone with your credentials will have access to your p
* Click `Create a network` then record your `Network ID`. * Click `Create a network` then record your `Network ID`.
* Install ZeroTier on the RaspiBlitz (more details on https://www.zerotier.com/download.shtml): * Install ZeroTier on the RaspiBlitz (more details on https://www.zerotier.com/download.shtml):
``` ```
$ curl -s 'https://raw.githubusercontent.com/zerotier/ZeroTierOne/master/doc/contact%40zerotier.com.gpg' | gpg --import && \ $ curl -s 'https://raw.githubusercontent.com/zerotier/ZeroTierOne/master/doc/contact%40zerotier.com.gpg' | gpg --import && \
if z=$(curl -s 'https://install.zerotier.com/' | gpg); then echo "$z" | sudo bash; fi if z=$(curl -s 'https://install.zerotier.com/' | gpg); then echo "$z" | sudo bash; fi
``` ```
* Then run: * Then run:
@@ -26,13 +26,20 @@ if z=$(curl -s 'https://install.zerotier.com/' | gpg); then echo "$z" | sudo bas
* Open https://my.zerotier.com `Networks` menu and accept the new devices pending approval. * Open https://my.zerotier.com `Networks` menu and accept the new devices pending approval.
* On the Raspiblitz modify the lnd.conf manually: * On the Raspiblitz modify the lnd.conf manually:
`$ nano /home/admin/.lnd/lnd.conf` `$ sudo nano /mnt/hdd/lnd/lnd.conf`
add the line:
`tlsextraip=172.X` add the line:
CTRL+O and ENTER to save, CTRL+X to exit ```
tlsextraip=172.X
```
CTRL+O and ENTER to save, CTRL+X to exit
Restart LND and unlock:
`$ sudo systemctl restart lnd`
`$ lncli unlock`
* Renew the TLS certificates either from the EXPORT menu or run: * Renew the TLS certificates either from the EXPORT menu or run:
`./config.scripts/lnd.newtlscert.sh` `$ ./config.scripts/lnd.newtlscert.sh`
After setting up and activating ZeroTier on my Android phone successfully tested: After setting up and activating ZeroTier on my Android phone successfully tested:
* ZeusLN using the IP 172.x.x.x and port 8080 * ZeusLN using the IP 172.x.x.x and port 8080
@@ -40,16 +47,14 @@ After setting up and activating ZeroTier on my Android phone successfully tested
* Termius to connect with ssh to admin@172.x.x.x * Termius to connect with ssh to admin@172.x.x.x
--- ---
* To uninstall run: * To uninstall run:
``` ```bash
sudo systemctl stop zerotier-one $ sudo systemctl stop zerotier-one
sudo apt remove zerotier-one $ sudo apt remove zerotier-one
sudo rm -r /var/lib/zerotier-one $ sudo rm -r /var/lib/zerotier-one
``` ```
--- ---
This guide is based on: https://medium.com/@ketominer/using-nodl-remotely-with-zerotier-a9a17cbb48cf This guide is based on: https://medium.com/@ketominer/using-nodl-remotely-with-zerotier-a9a17cbb48cf
Discussion: https://github.com/rootzoll/raspiblitz/issues/601 Discussion: https://github.com/rootzoll/raspiblitz/issues/601