ZeroTier configuration

It is possible to use IOTA CM in combination with ZeroTier in order to reach remote IOTA devices. It is recommended to install the ZeroTier client on a Docker container that is separate from the IOTA CM container, or on the host system itself. In the following example, we will use an nginx Docker container.

1. Deploy an nginx container.

docker run --network host --rm --name zerotier --cap-add=NET_ADMIN --cap-add=SYS_ADMIN --device=/dev/net/tun -d nginx

2. Log in to the container and install the ZeroTier client.

docker exec -it zerotier /bin/bash
curl https://install.zerotier.com/ | bash

3. Start the control plane. This command is not usually needed, as the previous command should already start the control plane.

/usr/sbin/zerotier-one -d

4. Connect to one or more ZeroTier networks, where ZEROTIER_NETWORK_ID is the ZeroTier Network ID.

/usr/sbin/zerotier-cli join ZEROTIER_NETWORK_ID

5. Deploy the iota-cm container.

sudo docker run -v /home/user/iota-cm-data:/data:Z --rm --name iota-cm -d -p 7777:443 profitap-iota-cm:v0.1.1

6. Add IOTA devices to IOTA CM (see Device management) using their ZeroTier IP addresses.

The ZeroTier IP address(es) of an IOTA device on which ZeroTier was set up can be found on this device's IOTA Settings > Network Configuration page:

  • Last modified: August 19, 2024