Technical Tip: Procedure to apply FortiGate firewall license to offline units
Description
This article describes the procedure to apply the FortiGate firewall licenses offline or in an air-gapped environment.Â
Scope
FortiGate VM or FortiGate Hardware.
Solution
FortiOS v7.0 and below:
Licenses are downloaded from public FortiGuard servers to the FortiGate, which means the FortiGate must have an internet connection.
If the FortiGate does not have an internet connection, FortiManager can act as a FortiGuard proxy to validate licenses.
FortiManager itself still requires an internet connection and the FortiGates will need a connection to the FortiManager.
To operate FortiGate and FortiManager in a closed network with no internet connection for either unit, follow the instructions in Operating as an FDS in a closed network - FortiManager administration guide.
FortiOS v7.2:
FortiGate operating in transparent mode may be licensed manually (hardware models only). Follow the process in Technical Tip: How to update the license for FortiGate in Transparent mode without internet (offline) for guidance.
FortiOS v7.4:
In FortiOS v7.2, manual offline license upload was limited to hardware appliances, but starting with FortiOS v7.4, it is also possible for VM licenses. See the FortiGate Private Cloud Xen Administration Guide – Uploading the VM License for more details.
To determine the current FortiOS framework, run the 'get system status' command:
FGT # get system status
Version: FortiGate-VM64-AZURE v7.4.9,build2829,250924 (GA.M)
First GA patch build date: 230509
Current Security Level: High
Firmware Signature: certified
Virus-DB: 1.00000(2018-04-09 18:07)
Extended DB: 1.00000(2018-04-09 18:07)
Extreme DB: 1.00000(2018-04-09 18:07)
To use FortiManager as a FortiGuard proxy, follow the steps below.
From the FortiGate CLI:
Â
Configure central management settings:
config system central-management
  set type fortimanager
    config server-list
      edit 1
        set server-type update rating
        set server-address <fortimanager_ip>
      next
    end
  set include-default-servers disable
endÂ
Upload the license using TFTP (not applicable if a hardware bundle is present):
execute restore vmlicense tftp <filename>.lic <tftp_ip>Â
Important: This procedure should be performed during a maintenance window, as a firewall reboot may be required to synchronize the license file.
Â
Complete the central management configuration:
config system central-management
 set fmg <fortimanager_ip>
endÂ
From the FortiManager CLI:
Â
Open up the necessary port for FortiManager to service FortiGate:
config system interface
  edit <mgmt.port>
    set serviceaccess fgtupdates
next
endÂ
From the FortiManager GUI:
Â
Add units to the FortiManager unit using the Discover wizard.
As a result of the CLI commands entered on the FortiGate, the unit is displayed on the FortiManager GUI in the Unregistered units list located in the Device Manager window for the root ADOM.
Warning:
Do not authorize the FortiGates from the Unregistered Devices list, as the connection process will stall. If this has already been done, wait for the authorization process to timeout and continue with the process below.
When ADOMs are enabled, the following process must be carried out from within the ADOM for the unit to be assigned.
To add a device with Discover mode:
Go to Device Manager -> Device & Groups.
In the toolbar, select 'Add Device'. The Add Device window will open.
Select Discover and follow the prompts to configure the device settings.
The units will then be added and receive their updates from FortiManager.
For information about adding devices, go to the FortiManager Document Library -> FortiManager Administration Guide -> Firewall Devices -> Adding Devices.
To manually upload FortiGate licenses in the GUI:
Â
Register the FortiGuard license on FortiCloud. See FortiGate Administration Guide – Registration for more information.
Download the product entitlement file in FortiCloud:
Go to Products -> Product List.
Select the serial number of the FortiGate. The product page opens.
In the License & Key section, select Get The License File. The file will download to the device in the following format: FG201E*********ProductEntitlement.lic  Â
   Â

Â
In FortiOS, go to System -> FortiGuard. The status for all services will be Pending.
Select Upload License File. The file explorer will open.    Â
                                                   Â

Â
Navigate to the product entitlement file and select Open. The license file will be uploaded to the FortiGate. Once the upload is complete, the FortiGate will show that it is registered and licensed.
Select Apply.
Â
Note: Manual licensing for air-gap environments is supported only on FortiGate hardware appliances, for both rugged and non-rugged models running FortiOS v7.2.0 or later. Manual licensing is currently not supported on FortiGate virtual machine (VM) appliances (the license can be applied, but is not valid until validated by FDN or FortiManager), as described in the FortiGate Private Cloud KVM Administration Guide.
Â
Note: If the file upload fails or additional assistance is required, submit a support ticket to the TAC through the Fortinet Support.
Related articles:
