After installing and setting up Node-RED with IOT device, most of us want to
access from Internet. There is two main solution:
1. Open port, setting dynamic dns, so we can access from internet
freely. However, this is not secured and our system can be inject, attack,
exploit in many ways. And if you connect some important electric device to
Node-RED, your security is in danger
2. Using VPN. But we need a VPN server, most of them charging fee.
ZeroTier (https://www.zerotier.com/)
is the best I can find, it is free (up to 50), easy setup within 5 minutes,
having app on all mobile device. App provide quick access to ZeroTier so you
can turn on when using Node-RED. A quick setup guide:
- Download ZeroTier on PC, install on your Node-RED server. Join your
network ID
- Install ZeroTier on mobile, join your network ID
- Login zerotier website, check on Auth column of device to give
access to your private network
- Now, whenever you want to access your Node-RED server, enter it IP.
Voila, you have successfully setup a VPN for Node-RED in five second
with a good free service
Disclaimer: I have no connection with ZeroTier, just find it is handy to
be used so decide to support.