Skip to main content

Tutorial: Configure a Ubiquiti (EdgeMAX) Router To Connect to CloudConnexa

Abstract

This tutorial contains instructions on how to use a Ubiquiti (EdgeMAX) router and configure it to use a Connector profile to connect to CloudConnexa and make the network part of your WPC.

Introduction

You can configure a Ubiquiti compatible router for Network Connector deployment. You must use specific sections from the OpenVPN Connector Profile and apply them to the associated router settings.

Note

You must ensure that your router OS is EdgeRouter X v2.0 or newer.

Downloading the Connector profile

Sign in to the CloudConnexa Administration portal at https://cloud.openvpn.com.

  1. Navigate to Networks and open your router Network.

  2. Click the name of the router Network.

  3. Click the Connectors tab.

  4. Click the Deploy drop-down menu of the Connector you wish to modify.

  5. Select Deploy Connector.

  6. Click Connector Type drop-down menu.

  7. Select Ubiquiti.

  8. Click Download OVPN Profile and save it on your local computer.

Alternatively, you may download the profile by clicking the Network name, and the edit icon for the Network.

Or from the Connectors menu.

Configuring the Ubiquiti (EdgeMAX) router

  1. Copy the .ovpn Profile to the router using secure copy protocol (SCP) between your local computer and the router.

    Access terminal and execute this command:

    scp <path to Profile/Profile_name.ovpn> <username>@<Router_external_IP_Address>:/config/auth,where <path to Profile/Profile_name.ovpn> is the absolute path for the .ovpn Profile, and the username is the to login on your router using SSH and RouterexternalIPAddress as the IP address of the router.

  2. Connect to the router via SSH.

  3. Enter config mode and create a new interface, and commit and save your changes. Use these commands:

    configure

    set interfaces openvpn vtun0 config-file   /config/auth/Profile.ovpn

    Note

    OpenVPN tunnel interface must be name vtun<num>

    commit

    save

    exit

  4. Connect to the router through HTTPS.

  5. Navigate to the Dashboard tab.

  6. Check that your newly created interface <interface_name> exists with an interface type of openvpn, a Connected status, and an assigned IP address.

    edgemax_router.png