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.
Fortinet provides documentation for their SD-WAN product, including FortiManager and cloud connections, at Fortinet SD-WAN Documentation Library.
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).
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
Log in to your registration account at Fortinet Support.
Choose Register Product and enter the provided registration code.
Follow the registration process.
Fortinet generates the serial number and displays it on the Registration Completion page.
Choose Manage > View Products and click the serial number.
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)
- Open PuTTYGen.
- In the Key section, choose RSA 2048 bit and click Generate.
- Move your mouse randomly in the small screen to generate the key pairs.
- Enter a key comment, which will identify the key.
This is convenient when you use several SSH keys.
- 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.
- Click Save private key, choose a location, and click Save.
- 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
- In the Megaport ONE Portal, choose Networking > Services.
Click Create and select MVE.
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.
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.
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.
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.
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.
Partner and partner managed accounts cannot view or change MVE contract terms.
For details on contract terms, see MVE Pricing and Contract Terms.
Click Deploy MVE.
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.
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
- Select the transit VXC to Megaport Internet.
- 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.
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
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 email@example.com
Once in the FortiOS CLI, you can view system status and allow access to the device using CLI commands.
The FortiOS CLI differs from the standard NOS CLI or Linux shell.
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
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 #
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.
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
Log in to the FortiGate GUI: https://162.43.xx.x
Select Device Manager.
From the Device Dashboard, choose Security Fabric > Fabric Connectors.
Select FortiManager and click Edit.
Select the following settings:
- Status - Enabled
- Type - FortiManager Cloud
- Mode - Normal
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
Log in to your FortiManager Cloud instance at Fortinet Support.
Choose Services > FortiManager.
You’ll see an unauthorized device awaiting approval.
Click Unauthorized Devices, and then select the device to authorize.
(Optional) You can change the device name, apply a preconfigured policy package, or apply a preconfigured provisioning template to the device.
Click OK when you are satisfied with the configuration.
A green check mark indicates the FortiGate was authorized by FortiManager.
The device is now managed via FortiManager Cloud and you can view it in the list of managed devices.
The IP address for the FortiGate displayed on the dashboard is an internal, private IP that is specifically used for the SD-WAN overlay.
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.