Cloud Router Installation Guide

The software requires Debian GNU/Linux 7.0 or higher. Use the 64 bit version which is called amd64 under Linux. You can check your version by typing dpkg --print-architecture (which should return amd64) or uname -m (which should return x86_64).

Automatic Installation

For automatic installation type in a root terminal

wget -q -O - | bash

This will install the depenencies and also the Cloud Router software.

After the package installation, the cloud router’s control panel is available on http://localhost. You will have to define the administrator’s password, the interface for Internet access, and some more things. Please follow the wizard.

See the Cloud Router Manual for further information.

Installation Script

For further information here is the installation script.


The Cloud Router core depends on apache2, libapache2-mod-php5, openssl, strongswan, openvpn, php5, php5-sqlite, sqlite3, sudo, unzip, xl2tpd and zip.
Home Agent depends on libgcc1, libc6, libstdc++6 and libevent-2.0-5.
# usage
# wget -q -O - | bash
installPackage() {
    packageName=$(dpkg -I $package | grep Package | cut -d: -f2 | sed 's/ //')
    packageDescription=$(dpkg -I $package | grep Description: | cut -d: -f2 | sed 's/ //')
    dependencies=($(dpkg -I $package | grep Depends | cut -d: -f2 | sed 's/,//g' | sed 's/ //'))
    for dependency in "${dependencies[@]}"
       if [ $(dpkg-query -W -f='${Status}\n' $dependency 2>/dev/null | grep -c "ok installed") -eq 0 ]; then
          apt-get -y -qq install $dependency
          if [ $? -eq 0 ]; then
              echo "Installed dependency $dependency for $packageDescription"
              echo "Could not install dependency $dependency for $packageDescription, aborting installation"
              exit 1
    echo "Going to install $packageDescription"
    dpkg -i $package > $package.install.log
    if [ $(dpkg-query -W -f='${Status}\n' $packageName 2>/dev/null | grep -c "ok installed") -ne 0 ]; then
        echo "Successfully installed $packageDescription ($packageName)"
        echo "$packageDescription ($packageName) could not be installed"
        exit 1
arch=$(dpkg --print-architecture)
# install home agent first so vpnportal can detect it
packages=(home-agent_${version}_$arch.deb vpnportal_${version}_$arch.deb)
echo "====== Installation ======"
echo "Updating APT packet sources ..."
apt-get -qq update
for package in "${packages[@]}"
    echo "Downloading $package from $server ..."
    wget -q $server$package -O $package
    if [ -e $package -a -s $package ]; then
      installPackage $package
      echo "could not download and install $package, skipping"
sleep 3
echo "====== Service Status ======"
services=(apache2 openvpn@vpnportal openvpn@vpnportal_autosetup ipsec xl2tpd home-agent vpnportal)
for service in "${services[@]}"; do service $service status; done | grep -e '.service\|Active' | grep -v CGroup
echo "====== Getting Started ======"
myIp=$(ip route get | head -1 | cut -d' ' -f8)
echo "Browse to http://$myIp"

Uninstall Cloud Router

# check what is installed: dpkg -l | grep NetModule
dpkg -r vpnportal
dpkg -r home-agent