Created on
08-12-2019
12:13 AM
Edited on
06-29-2025
12:42 PM
By
Jean-Philippe_P
Description
This article describes how to connect to the FortiToken server to be able to download FortiToken Mobile. This issue occurs if the source IP used by the FortiGate is not allowed to be routed, as illustrated below:
Scope
FortiGate.
Solution
diagnose debug app forticldd -1
diagnose debug app alert -1
diagnose fortitoken debug enable
diagnose debug enable
To stop the debug:
diagnose debug disable
diagnose debug reset
Examine the output of the debug:
2023-03-09 10:30:52 ftm_cfg_import_license[324]:import license 0000-0000-0000-0000-0000
2023-03-09 10:30:52 is_trial_tokens_available[55]:No trial tokens are available.
2023-03-09 10:30:52 ftm_fc_comm_connect[38]:ftm cannot resolve DNS
2023-03-09 10:30:52 ftm_fc_command[539]:forticare [ftm2.fortinet.net:443] unreachable
Based on the output above, it is possible to see that the FortiToken Mobile server is unreachable. This can be caused by a FortiGuard connectivity issue. It is possible to change the following settings to ensure connectivity to the server. In case of a multi-VDOM environment, run from the global VDOM:
config system fortiguard
set fortiguard-anycast disable
set port 8888
set protocol udp
set source-ip 0.0.0.0
set sdns-server-ip 208.91.112.220 173.243.140.53 210.7.96.53
end
After making these changes, run the following commands to make the changes in effect under FortiGuard settings and let the update be successful.
diagnose debug reset
diagnose debug enable
diagnose debug app update -1
execute update-now
To stop the debug:
diagnose debug disable
diagnose debug reset
The default protocol and port, alongside with disabled fortiguard-anycast service, must be reachable. Default values can be found in the config system fortiguard.
FortiOS's Anycast FortiToken Mobile server domain for AWS has been changed to 'globalftm2.fortinet.net', and settings have been adjusted starting from v7.4.1. For the branches below v7.4.1, it is still ftm2.fortinet.net.
Therefore, if the FortiGate is running below v7.4.1 Anycast with AWS, it will fail to add new FortiToken Mobiles. To be able to activate FortiToken Mobile, Anycast should be disabled or adjusted to the value 'fortinet'.
For physical devices running OS version below v7.4.1, when trying to import the mobile tokens, sometimes the following error is observed from the 'diagnose debug application update -1': 'Error: 19 (Self-signed certificate in certificate chain)'. The following changes can be done on the FortiGate:
config system fortiguard
set fortiguard-anycast enable
set port 443
set protocol https
end
After that, try to import the tokens again. If the issue persists, contact Fortinet technical support for more assistance.
Related articles:
Technical Note: How to control/change the FortiGate source IP for self-generated traffic.
Troubleshooting Tip: import FortiToken license Internal server.
Troubleshooting Tip: FortiGate FortiToken configuration and troubleshooting resource list
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.