Oracle Cloud Infrastructure

flexiWAN supports deployment on Oracle Cloud Infrastructure (OCI). Follow this guide to sucessfully and quickly deploy flexiWAN on OCI.

Prerequisites

Before following this guide make sure to have the following ready:

  • an account with flexiWAN, see here for details.

  • an account with Oracle Cloud. Open a new account here.

Configuring a VM instance

Login Oracle Cloud console and navigate to dashboard. Click on Create a VM instance

step 1

Create compute instance wizard will start. Name your instance and pick the placement domain (optional).

step 2

In this step, set the Image and Shape to match flexiWAN requirements. First click on Change image.

step 3

From image browser pick Canonical Ubuntu and 18.04 for OS version. Confirm with Select image.

step 4

Next step, select Intel from shapes browser and pick Shape name VM.Standard2.2. For testing purpuses VM.Standard2.1 may work but for production 2 CPU cores are required.

step 5

In the networking section make sure Create new virtual cloud network is selected and name it WAN for both cloud network and subnet. Keep the default CIDR block or add your own. Also confirm Public IP address is set to assign.

step 6

For final step, add SSH keys in order to access this instances remotely. OCI offers generating a new key pair or uploading your own public keys. Do not select No SSH keys as SSH is required in order to install flexiWAN. Finally click on Create to start instance creation.

step 7

After instance is created it will show as running and provide access information.

step 9

Before connecting to the newly created instance, navigate to Networking > Virtual Cloud Networks in order to create LAN network.

step 10

From this screen WAN VCN is already available, now click Create VCN to add LAN network.

step 11

In the next screen name the network LAN and add a different IPv4 CIDR block from WAN, for example 10.10.0.0/24. Click Create VCN to continue.

step 12

Upon creating LAN VCN, click to Create Subnet.

step 13

In the next screen add name to the Subnet, confirm CIDR block is 10.10.0.0/24 and mark it as Private Subnet. Click Create Subnet to continue.

step 14

That’s it, now the LAN network and subnet are ready to be attached to previously created VM instance.

step 15

Navigate back to the instance previously created and scroll to the bottom of the page. Click on Attached VNICs and then on Create VNIC.

step 16

At the next screen name the VNIC LAN and select the previously created LAN VCN and LAN Subnet. Make sure to not assign public IPv4 network. Click Save changes.

step 17

Confirm Attached VNICs show WAN and LAN. That’s it, now your instance has both virtual networks and is time to install flexiWAN.

step 18

Installing flexiWAN

Now that the OCI VM instance is ready, it is time to install flexiWAN. SSH to the instance and authenticate using public key. Add the flexiWAN repository as described in our flexiWAN installation guide here.

sudo curl -sL https://deb.flexiwan.com/setup | bash -

After adding the repository, enter the second command to install flexiWAN.

sudo apt-get install -y flexiwan-router

Wait for flexiWAN installation to complete and run the System Checker by following this here. Lastly, after completing all system checker steps, simply add the token from your flexiManage account. Use nano or vi to create the following file and insert your organization token:

/etc/flexiwan/agent/token.txt

token

That’s it, in a few moments your flexiWAN VPS will show up waiting for approval. From there, please follow the steps mentioned in our Device Management section.