Troubleshooting and diagnosis
This section contains some common scenarios for FortiTokens troubleshooting and diagnosis:
FortiToken Statuses
When troubleshooting FortiToken issues, it is important to understand different FortiToken statuses. FortiToken status may be retrieved either from the CLI or the GUI, with a slightly different naming convention.
Before you begin, verify that the FortiProxy has Internet connectivity and is also connected to both the FortiGuard and registration servers:
# execute ping fds1.fortinet.com
# execute ping directregistration.fortinet.com
# execute ping globalftm.fortinet.net
If there are connectivity issues, retrieving FortiToken statuses or performing FortiToken activation could fail. Therefore, troubleshoot connectivity issues before continuing.
To retrieve FortiToken statuses:
- In the CLI:
# diagnose fortitoken info
- In the GUI:
Go to User & Authentication > FortiTokens.
The FortiToken can be in the following statuses:
CLI |
GUI |
Description |
---|---|---|
|
Available |
Newly added, not pending, not activated, not yet assigned. |
|
Assigned |
Assigned to a user, hardware token. |
|
Pending |
Assigned to a user and waiting for activation on the FortiToken Mobile app. |
|
Assigned |
Assigned to user and activated on the FortiToken Mobile app. |
|
|
Token provided to user but not activated on the FortiToken Mobile app. To fix, the token needs to be re-provisioned and activated in time. |
|
Error |
Token is locked by FortiGuard FDS. The hardware token was already activated on another device and locked by FDS. |
|
|
Either manually locked by an Administrator ( |
Recovering lost Administrator FortiTokens
If an Administrator loses their FortiToken or the FortiToken is not working, they will not be able to log into the admin console through the GUI or the CLI. If there is another Administrator that can log into the device, they may be able to reset the two-factor settings configured for the first Administrator, or create a new Admin user for them. Note that a super_admin user will be able to edit other admin user settings, but a prof_admin user will not be able to edit super_admin settings.
In the case where there are no other administrators configured, the only option is to flash format the device and reload a backup config file. You must have console access to the device in order to format and flash the device. It is recommended to be physically on site to perform this operation.
Before formatting the device, verify that you have a backup config file. You may or may not have the latest config file backed up, though you should consider using a backed up config file, and reconfigure the rest of the recent changes manually. Otherwise, you may need to configure your device starting from the default factory settings.
To recover lost Administrator FortiTokens:
- If you have a backed up config file:
- Open the config file and search for the specific admin user. For representational purposes we will use
Test
in our example.# edit "Test"
set accprofile "super_admin"
set vdom "root"
set two-factor fortitoken
set fortitoken "FTKXXXXXXXXXX"
set email-to "admin@email.com"
set password *********
next
end
- Once you find the settings for the
Test
user, delete thefortitoken
-related settings:# edit "Test"
set accprofile "super_admin"
set vdom "root"
set password *********
next
end
- Open the config file and search for the specific admin user. For representational purposes we will use
- Format the boot device during a maintenance window and reload the firmware image using instructions in Formatting and loading FortiProxy firmware image using TFTP.
- Once the reload is complete, log into the admin console from the GUI using the default admin user credentials, and go to Configuration > Restore from the top right corner to reload your config file created in Step 1 above.
- Once the FortiProxy reboots and your configuration is restored, you can log in with your admin user credentials.