Device registration is the process of connecting a FortiGate firewall to FortiManager so that it can be centrally managed, monitored, and configured.
Before a FortiGate firewall can be managed by FortiManager, it must go through the registration process, which involves four key steps:
Before registering the device, you need to make sure that FortiGate can communicate with FortiManager.
On the FortiGate device, run the following command to ping FortiManager:
execute ping <FortiManager_IP>
If the ping is successful, the network connection is working. If it fails, check:
To check the current FortiManager settings on FortiGate, run:
show system central-management
If the output shows FortiManager settings, the device is already configured for central management.
To ensure that FortiGate can communicate with FortiManager, you may need to allow the following ports:
Use the following CLI command to allow FortiManager access:
config system interface
edit "port1"
set allowaccess ping https ssh fgfm
next
end
This command ensures that ping, HTTPS, SSH, and FortiGate-FortiManager (fgfm) connections are enabled on the management interface.
There are four primary methods for registering FortiGate devices with FortiManager. Let’s go through them step by step.
This method requires an administrator to manually enter the FortiGate device’s details into FortiManager.
Try registering a FortiGate manually and verify its status under Device Manager.
This method is useful for large-scale deployments where devices are pre-configured to contact FortiManager.
On the FortiGate device, run the following CLI commands:
config system central-management
set type fortimanager
set fmg 192.168.1.100 # Replace with your FortiManager IP
end
Once this is set, the FortiGate device automatically appears in FortiManager for approval.
Try setting up automatic registration and see if FortiManager detects the device automatically.
Best for large enterprises deploying multiple devices at once.
If you have access to FortiDeploy, try setting up Zero-Touch Provisioning.
If you prefer using the CLI, you can manually register a FortiGate device using the following commands.
config system central-management
set type fortimanager
set fmg 192.168.1.100 # Replace with FortiManager’s IP
set fmg-source-ip 192.168.1.1 # Optional: Specify source IP
end
After a device is registered, FortiManager displays its status to indicate whether it is properly connected.
| Status | Meaning |
|---|---|
| Pending Approval | The device has requested registration but is waiting for administrator approval. |
| Authorized | The device is registered and managed by FortiManager. |
| Unauthorized | The device was rejected by an administrator. |
| Disconnected | The device is offline and not communicating with FortiManager. |
To check FortiGate’s connection status, use the following command:
diagnose sys central-management status
This command provides real-time information about whether FortiGate is properly registered and communicating with FortiManager.
Run the above command and verify whether:
Even after configuring a FortiGate device to register with FortiManager, you may encounter registration failures or connection issues. Below are the common problems and how to fix them.
show system central-management
Ensure that the FortiManager IP is correct.
execute ping <FortiManager_IP>
If ping fails, check the routing and firewall policies.
execute telnet <FortiManager_IP> 541
execute telnet <FortiManager_IP> 443
If the connection fails, make sure that TCP/541 and TCP/443 are open.
diagnose sys central-management status
This command shows whether FortiGate is communicating with FortiManager.
config system central-management
set type fortimanager
set fmg <FortiManager_IP>
end
Once a FortiGate device is successfully registered in FortiManager, you can perform various management tasks.
After registering a device, FortiManager retrieves its existing configuration.
Alternatively, you can synchronize via CLI:
diagnose sys central-management sync-status
When a device is first registered, FortiManager does not automatically apply new policies. The administrator must push the policy packages to FortiGate.
On FortiGate, you can check if the latest policies are applied:
diagnose sys cmdb status
These exercises will help you practice the concepts we covered.
Branch-Firewall192.168.1.10Open FortiGate CLI.
Run:
config system central-management
set type fortimanager
set fmg 192.168.1.100 # Replace with your FortiManager IP
end
diagnose sys central-management status
If FortiGate is disconnected, try re-registering it.
Run:
execute ping <FortiManager_IP>
If ping fails, check network connectivity.
What must occur before a FortiGate can be managed by FortiManager?
The FortiGate must be authorized in FortiManager.
After a FortiGate connects to FortiManager, it appears in the device manager as an unauthorized device. The administrator must approve the device to establish trust. Authorization ensures that only approved devices are managed centrally. Once authorized, the FortiGate is assigned to an ADOM and its configuration can be synchronized with the FortiManager database.
Demand Score: 82
Exam Relevance Score: 90
Why might a FortiGate fail to register with FortiManager?
The FortiGate may not be configured with the correct FortiManager IP or may have connectivity issues.
For registration to occur, the FortiGate must know the FortiManager address using the set fmg configuration command. If the IP address is incorrect or the firewall cannot reach FortiManager due to routing or firewall policies, the device cannot establish a management connection. Additionally, mismatched firmware compatibility or disabled FortiManager features can prevent registration.
Demand Score: 86
Exam Relevance Score: 88
What happens after a FortiGate is successfully registered in an ADOM?
Its configuration is imported into the FortiManager device database.
Once authorized and assigned to an ADOM, FortiManager retrieves the current device configuration and stores it in its management database. This allows centralized policy control and configuration management. From that point forward, changes should be made through FortiManager to maintain synchronization between the device and the management database.
Demand Score: 74
Exam Relevance Score: 86
Why might a FortiGate appear as unregistered even after configuration?
The FortiGate has not yet been authorized by the FortiManager administrator.
FortiManager requires manual authorization for security reasons. Even if the FortiGate is configured to connect to FortiManager, it will remain in a pending state until the administrator approves it. This prevents unauthorized devices from automatically joining the management infrastructure.
Demand Score: 78
Exam Relevance Score: 85
Why would an administrator assign devices to different ADOMs during registration?
To isolate policy databases and administrative control.
Each ADOM maintains its own policy packages and object databases. Assigning devices to different ADOMs allows administrators to manage separate networks independently. This is especially important for MSSP environments managing multiple customers.
Demand Score: 69
Exam Relevance Score: 80