Skip to content

Creating an MVE Integrated with Fortinet

This topic describes how to create and configure a Megaport Virtual Edge (MVE) with Fortinet Secure SD-WAN. Before you begin, you need user accounts with ordering permissions that provide access to the Megaport ONE Portal and to Fortinet.

For details on setting up a Megaport ONE account, see Creating an Account.

Tip

Fortinet provides documentation for their SD-WAN product, including FortiManager and cloud connections, at Fortinet SD-WAN Documentation Library.

Basic steps

This section provides an overview of the configuration steps in FortiManager and the Megaport ONE Portal. Details follow.

The basic steps are:

  • Obtain a license from Fortinet.
  • Generate an SSH key pair for authentication.
  • Create the Fortinet MVE in the Megaport ONE Portal.
  • View the MVE public IP address assignment in the Megaport ONE Portal.
  • Set an admin password for the FortiGate.
  • Allow secure console access to the FortiGate.
  • Add the FortiGate to FortiManager Cloud (optional).

Licensing

Before you create an MVE in the Megaport ONE Portal, you need a valid license from Fortinet. After purchasing a license from Fortinet, you’ll receive a registration code in a PDF. You’ll use this registration code to generate a license file.

To obtain a license file from Fortinet

  1. Log in to your registration account at Fortinet Support.

  2. Choose Register Product and enter the provided registration code.

  3. Follow the registration process.

    Fortinet generates the serial number and displays it on the Registration Completion page.

  4. Choose Manage > View Products and click the serial number.

  5. Click the download link and save the license file. You’ll upload the license file later in the Megaport ONE Portal.

Once the product is registered, it appears in the FortiCloud Asset Management product list.

The next step is to generate an SSH key pair for authentication.

Administrative access to MVE

MVE and the FortiGate connect through a public/private SSH key pair to establish secure connections. The public SSH key allows you to SSH into the FortiGate and set the administrative password, enable HTTPS access, and optionally register the FortiGate to your FortiManager Cloud.

Megaport ONE supports the 2048-bit RSA key type.

To generate an SSH key pair (Linux/Mac OSX)

  • Run the SSH keygen command:
     ssh-keygen -f ~/.ssh/megaport-mve-instance-1-2048 -t rsa -b 2048
    

The key generator command creates an SSH key pair and adds two files to your ~/.ssh directory:

  • megaport-mve-instance-1-2048 - contains the private key.
  • megaport-mve-instance-1-2048.pub - contains the public key that is authorized to log in to the Fortinet account.

To generate an SSH key pair (Windows, using PuTTYgen)

  1. Open PuTTYGen.
  2. In the Key section, choose RSA 2048 bit and click Generate.
  3. Move your mouse randomly in the small screen to generate the key pairs.
  4. Enter a key comment, which will identify the key.
    This is convenient when you use several SSH keys.
  5. Enter a Key passphrase, and re-enter to confirm.
    The passphrase is used to protect your key. You will be asked for it when you connect via SSH.
  6. Click Save private key, choose a location, and click Save.
  7. Click Save public key, choose a location, and click Save.

You’ll copy and paste the contents of the public key file in the Megaport ONE Portal later to distribute the public key to the FortiGate. Your private key will match the public key to grant access. Only a single private key has access to the FortiGate for SSH access.

Creating an MVE in the Megaport ONE Portal

Before you create an MVE, you need to determine the best location - one that supports MVE and one that is in the most compatible metro area. You can connect multiple locations to an individual MVE. For location details, see Planning Your Deployment.

You can deploy multiple MVEs within the same metropolitan area for redundancy or capacity reasons.

To create an MVE

  1. In the Megaport ONE Portal, choose Networking > Services.
  2. Click Create and select MVE.
    Create MVE button

  3. Select an MVE location geographically close to your target branch and/or on-premises locations.
    You can search for your preferred location using the Country drop-down list, or enter a search term to filter results as you type. Click Clear Filters to reset the filters. Note that the country you choose must be a market in which you have already registered. If you haven’t registered a billing market in the location where you will deploy the MVE, see Enabling Billing Markets.
    Select MVE location

  4. Specify the MVE Configuration details:

    • MVE Name – Specify a name for the MVE that is easily identifiable, particularly if you plan on provisioning more than one. This name appears in the Megaport ONE Portal.
    • Vendor – Select Fortinet FortiGate-VM and the software version. The MVE will be configured to be compatible with this software version from Fortinet.
    • Service – Displays the vendor name and software version, and any important information such as upgrade requirements.
    • MVE Size – Select a size from the drop-down list. The list displays all sizes that match the CPU capacity at the selected location. The sizes support varying numbers of concurrent connections, and individual partner product metrics vary slightly. For details, see Planning your Fortinet Deployment. MVE configuration details
  5. Specify the FortiGate-VM Configuration details:

    • Appliance License – (Optional) Click Choose File and select the appliance license generated earlier from Fortinet.
    • SSH Key – Copy and paste the contents of your public SSH key here. You can find the public key in the megaport-mve-instance-1-2048.pub file generated earlier.
  6. Specify the Billing Details:

    • Service Level Reference (optional) – Specify a unique identifying number for the MVE to be used for billing purposes, such as a cost center number or a unique customer ID. The service level reference number appears for each service under the Product section of the invoice. You can also edit this field for an existing service.

      Note

      The transit VXC associated with the MVE is automatically updated with the MVE service level reference number.

    • Minimum Term – Select No Minimum Term to pay-as-you-go, or select a term of 12, 24, or 36 months. Longer terms result in a lower monthly rate. By default, a 12-month term is selected.

      Note

      Partner and partner managed accounts cannot view or change MVE contract terms.

      For details on contract terms, see MVE Pricing and Contract Terms.

  7. Click Deploy MVE.

  8. Review the new configuration and pricing and click Confirm.
    To add more MVEs in other locations, choose Networking > Services and click Create and select MVE.

Ordering MVE provisions the instance and assigns IP addresses from the Megaport SDN. The MVE provisioning takes only a few minutes to complete. The provisioning process spins up a FortiGate.

Viewing the MVE public IP address assignment in the Megaport ONE Portal

After creating the MVE, you can view it in the Megaport ONE Portal.

To view an MVE in the Megaport ONE Portal

  • Go to the Networking > Services page.

MVE and transit VXC in the Megaport ONE Portal

As part of the MVE provisioning, Megaport ONE creates a transit Virtual Cross Connect (VXC) to provide internet connectivity and to allow MVE to register and communicate with the Fortinet SD-WAN overlay network. The overlay network is created and maintained by Fortinet to provide secure tunnels from the branch locations. The transit VXC is a fixed size, based on the size of the MVE. You cannot modify or delete the transit VXC.

To view the public IP addresses assigned to the MVE

  1. Select the transit VXC to Megaport Internet.
  2. Locate the public IP address (IPv4 or IPv6) in the Details tab. These are the public IP addresses assigned to the MVE. Make a note of these addresses for use later.
    Transit VXC details

Allow console access to the FortiGate

Console access to the FortiGate is delivered through a secure HTTPS session. The MVE blocks all access to the public IP addresses assigned to the device until you SSH into it and grant HTTPS access.

To set an admin Web UI password and allow HTTPS access

  1. SSH to the Fortinet MVE instance using the SSH private key generated earlier. The default username is admin, followed by the public IP address assigned to the device by Megaport ONE.

    ssh -i ~/.ssh/megaport-mve-instance-1-2048 admin@162.43.xx.x

    Once in the FortiOS CLI, you can view system status and allow access to the device using CLI commands.

    Note

    The FortiOS CLI differs from the standard NOS CLI or Linux shell.

  2. Configure a password for the user admin account.

      FGVM08TM21001375 # config system admin
      FGVM08TM21001375 (admin) # edit admin
      FGVM08TM21001375 (admin) # set password xxxxxxxx
      FGVM08TM21001375 (admin) # next
      FGVM08TM21001375 (admin) # end
    
  3. Allow HTTPS access to the public interface GUI on port 1.

      FGVM08TM21001375 # config system interface
      FGVM08TM21001375 (interface) # edit port1
      FGVM08TM21001375 (port1) # append allowaccess https
      FGVM08TM21001375 (port1) # next
      FGVM08TM21001375 (interface) # end
    
      FGVM08TM21001375 #
    
  4. Verify that HTTPS access is allowed.

      FGVM08TM21001375 # show system interface
    

With HTTPS access allowed, you can log in to the FortiGate through its Web UI using the user admin credentials.

Add the FortiGate to FortiManager Cloud

The next step is to add the FortiGate to FortiManager Cloud, Fortinet’s SD-WAN centralized management platform.

Note

This step is optional. You can manage a FortiGate as a standalone device without using FortiManager Cloud as its central manager.

To add the FortiGate to FortiManager Cloud

  1. Log in to the FortiGate GUI: https://162.43.xx.x

  2. Select Device Manager.

  3. From the Device Dashboard, Choose Security Fabric > Fabric Connectors.

  4. Select FortiManager and click Edit.

    Add FortiGate to FortiManager

  5. Select the following settings:

    • Status - Enabled
    • Type - FortiManager Cloud
    • Mode - Normal
  6. Click OK.

    The FortiCloud contacts your registered FortiManager Cloud for approval. The registration process does not require an IP address but instead uses backend authentication through prior registration and licensing.

Authorize the FortiGate in FortiManager

Before FortiManager adds the FortiGate to its list of managed devices, you need to manually authorize it.

To authorize the FortiGate

  1. Log in to your FortiManager Cloud instance at Fortinet Support.

  2. Choose Services > FortiManager.

    Authorize device

    You’ll see an unauthorized device awaiting approval.

    FortiGate awaiting authorization

  3. Click Unauthorized Devices, and then select the device to authorize.

  4. Click Authorize.

  5. You can optionally change the device name, apply a preconfigured policy package, or apply a preconfigured provisioning template to the device.

  6. Click OK when you are satisfied with the configuration.
    A green check mark indicates the FortiGate was authorized by FortiManager.

    FortiGate successful authorization

  7. Click Close.

The device is now managed via FortiManager Cloud and you can view it in the list of managed devices.

FortiCloud managed through FortiManager

Note

The IP address for the FortiGate displayed on the dashboard is an internal, private IP that is specifically used for the SD-WAN overlay.

Next steps

Once the MVE is provisioned with an Active status, the next step is to create VXCs to connect the Megaport backbone to other MVEs or cloud service providers. You can optionally connect a physical Port to the MVE through a private VXC.

For details, see Creating a VXC.


Last update: 2023-01-21