Currently, we support FortiOS version 5.2 and higher. In this article, you will find our recommendations regarding setup of administrator profiles and accounts. It’s very important, especially if you use Virtual Domains, since part of a required configuration can be done only from CLI.
If you plan to use a user with full read/write permissions or even with super_admin profile assigned (which is not recommended, except a LAB testing), you can skip the rest of this article.
Create an Admin Profile
First, you need to create an admin profile with read-only permissions.
Follow these steps:
- Login to your FortiGate. In case you have VDOMs enabled, ensure you have switched to the global scope (relevant drop-down menu is in the top left corner)
- Navigate to System → Admin Profiles and click on + Create New
- Fill in a name and set all permissions to Read (you can do it by clicking on Set All dropdown menu). The only exception is System → Maintenance permission, which has to be set to Read/Write (especially if VDOMs are enabled). See the picture below from FortiOS versions 6.0 and 7.0
FortiOS version 7.0 and higher - “permit usage of CLI diagnostic commands” have to be enabled.
Make The Created Admin Profile Global (VDOMs Only)
If you have Virtual Domains (VDOMs) enabled, you have to follow this procedure to make the created admin profile global. It means that administrators having this profile will be able to work with all VDOMs. By default, only the default prof_admin profile is set as global.
- Connect to the FortiGate via SSH or Telnet or use the console in the top right corner (version 5.6 and above) or at the dashboard (version 5.4 and below)
- Run the following commands to change the profile:
config global config system accprofile edit read_only set scope global end end
Change the name of the previously created profile in the 3rd line accordingly.
Create An Administrator Account
- Navigate to System → Administrators and click on + Create New and select Administrator
- Fill in its name, select a type of authentication, and finally select the previously created Administrator profile. If you have VDOMs enabled, the Virtual Domains section below should disappear (if not, the selected profile is not global)
- Apply other restrictions if needed and click OK.
Ensure, that there is at least one interface with SSH or Telnet allowed, and this interface is accessible from IP Fabric VM. To do so, navigate to Network → Interfaces and check the Access column.
Now it’s time to create a new snapshot or add your FortiGate to an existing one. All VDOMs should be discovered as separate devices named as
<hostname>/<VDOM_name>. If not, check the connectivity report in IP Fabric web interface and search for an IP address of your FortiGate.