PiTunnel

Mass Deployment

PiTunnel includes a number of built in features that make it simple to deploy to a large number of devices.


Cloning

A common approach to mass deployment is to set up a single Raspberry Pi with all the software and settings required for an application, and then to use a cloning tool like rpi-clone to clone the microSD card for each new device.


Registering New Cloned Devices

Each new device needs to be registered with the PiTunnel.com website, inorder to be recognized when creating tunnels. Usually this is performed during the execution of the installation script. However if running from a cloned installation, you need to run the following command on each device to register it as new:
pitunnel --renew

After registering the new device, you need to either reboot the deivce or restart the pitunnel service with the command:
sudo systemctl restart pitunnel


Mass Installation

An alternative to cloning is to run a setup script on each new device, that installs all prerequisite software for your application. In this case you just need to execute the PiTunnel installation script curl -s pitunnel.com/get/None | sudo bash once per new installation. Note: Do not execute this more than once per device, unless you are wanting to do a re-install, or to update a device to a newer version of PiTunnel.

For help with specific mass deployment scenarios, please contact our support team.



Next: Restrictive Firewalls