The FortiGate device must be factory reset and licensed before it is provisioned.
The FortiGate model in this example has DHCP enabled on port1 by default, to figure out the management IP on that port it is possible to execute the following command:
diagnose ip address list
With the previous information access the web interface via HTTP port 80 and install the license file, and the system will reboot.
- Refer to this document for the requirements and configuring DHCP:
FortiGate-VM licensing
- Back on FortiZTP, Provision FortiGate-VM to FortiManager Cloud, Select the device to be provisioned and select the Provision button, select FortiManager Cloud as Target Location:
- Select the 'Provision Now' button.
- On the FortiZTP summary confirm if the FortiGate is provisioned:
- Go to the FortiManager Cloud (https://fortimanager.forticloud.com/), on the Device Manager. 'Right-click' the FortiGate device and select Edit or select the device and select the edit button.
- Enable Automatically Link to Real Device, then select OK.
- On the admin user/password section fill in FortiGate’s admin user and password.
- Select the OK button.
- If needed, change the Name to file for a custom name.
- Create a new Policy Package, from Policy & Objects -> Policy Packages -> Select the Default Policy Package -> 'Right Click' on New -> Create New Policy Package.
Name: Branch1.
Leave the rest of the fields as default and select OK.
- Go to Policy & Objects -> Policy Packages -> Branch1 -> Firewall Policy -> + Create new, fill in the following fields as follows, and select OK:
Name: Internet_Access_from_DMZ.
Incoming Interface: Port2.
Outgoing interface: Port1.
Source: All.
Destination: All.
Service: All.
Action: Accept.
Inspection Mode: Flow-based.
NAT: enable.
Change note: Firewall policy to enable DMZ network access to the internet.
- Go to Policy & Objects -> Policy Packages -> Branch1 -> Installation Targets -> Edit -> Edit Installation Targets.
Select the Branch1 device and select OK.
- Select the install Wizard -> Install Policy Package & Device Settings.
Confirm the installation of the policy package and proceed.
- Confirm if the installation was applied on the FortiGate, from Device Manager -> Select Branch1 -> Dashboard -> Summary -> System Information -> Operation -> Select connect to CLI via SSH.
- Login as admin user and password.