FortiToken
FortiToken is a disconnected one-time password (OTP) generator. It is a small physical device with a button that when pressed displays a six digit authentication code. This code is entered with a user’s username and password as two-factor authentication. The code displayed changes every 60 seconds, and when not in use the LCD screen is blanked to extend the battery life.
There is also a mobile phone application, FortiToken Mobile, that performs much the same function.
FortiTokens have a small hole in one end. This is intended for a lanyard to be inserted so the device can be worn around the neck, or easily stored with other electronic devices. Do not put the FortiToken on a key ring as the metal ring and other metal objects can damage it. The FortiToken is an electronic device like a cell phone and must be treated with similar care.
Any time information about the FortiToken is transmitted, it is encrypted. When the FortiGate unit receives the code that matches the serial number for a particular FortiToken, it is delivered and stored encrypted. This is in keeping with the Fortinet’s commitment to keeping your network highly secured.
FortiTokens can be added to user accounts that are local, IPsec VPN, SSL VPN, and even Administrators. See Associating FortiTokens with accounts on page 63.
A FortiToken can be associated with only one account on one FortiGate unit.
If a user loses their FortiToken, it can be locked out using the FortiGate so it will not be used to falsely access the network. Later if found, that FortiToken can be unlocked on the FortiGate to allow access once again. See FortiToken maintenance on page 65.
There are three tasks to complete before FortiTokens can be used to authenticate accounts:
- Adding FortiTokens to the FortiGate
- Activating a FortiToken on the FortiGate
- Associating FortiTokens with accounts
- FortiToken maintenance
- FortiToken Mobile Push
The FortiToken authentication process
The steps during FortiToken two-factor authentication are as follows.
- User attempts to access a network resource.
- FortiGate unit matches the traffic to an authentication security policy, and FortiGate unit prompts the user for username and password.
- User enters their username and password.
- FortiGate unit verifies their information, and if valid prompts the user for the FortiToken code.
- User gets the current code from their FortiToken device.
- User enters current code at the prompt.
- FortiGate unit verifies the FortiToken code, and if valid allows access to the network resources such as the Internet.
The following steps are needed only if the time on the FortiToken has drifted and needs to be re-synchronized with the time on the FortiGate unit.
- If time on FortiToken has drifted, FortiGate unit will prompt user to enter a second code to confirm.
- User gets the next code from their FortiToken device
- User enters the second code at the prompt.
- FortiGate unit uses both codes to update its clock to match the FortiToken and then proceeds as in step “Users and user groups” on page 53.
The FortiToken authentication process is illustrated below:
When configured the FortiGate unit accepts the username and password, authenticates them either locally or remotely, and prompts the user for the FortiToken code. The FortiGate then authenticates the FortiToken code. When FortiToken authentication is enabled, the prompt field for entering the FortiToken code is automatically added to the authentication screens.
Even when an Administrator is logging in through a serial or Telnet connection and their account is linked to a FortiToken, that Administrator will be prompted for the token’s code at each login.
Adding FortiTokens to the FortiGate
Before one or more FortiTokens can be used to authenticate logons, they must be added to the FortiGate. The import feature is used to enter many FortiToken serial numbers at one time. The serial number file must be a text file with one FortiToken serial number per line.
Both FortiToken Mobile and physical FortiTokens store their encryption seeds on the cloud, therefore you will only be able to register them to a single FortiGate or FortiAuthenticator.
Because FortiToken-200CD seed files are stored on the CD, these tokens can be registered on multiple FortiGates and/or FortiAuthenticators, but not simultaneously.
To manually add a FortiToken to the FortiGate – web-based manager:
- Go to User & Device > FortiTokens.
- Select Create New.
- In Type, select Hard Token or Mobile Token.
- Enter one or more FortiToken serial numbers (hard token) or activation codes (mobile token).
- Select OK.
To import multiple FortiTokens to the FortiGate – web-based manager:
- Go to User & Device > FortiTokens.
- Select Create New.
- In Type, select Hard Token.
- Select Import.
- Select Serial Number File or Seed File, depending on which file you have.
- Browse to the local file location on your local computer.
- Select OK.
The file is imported.
- Select OK.
To add two FortiTokens to the FortiGate – CLI:
config user fortitoken edit <serial_number> next
edit <serial_number2> next
end
Activating a FortiToken on the FortiGate
Once one or more FortiTokens have been added to the FortiGate unit, they must be activated before being available to be associated with accounts.The process of activation involves the FortiGate querying FortiGuard servers about the validity of each FortiToken. The serial number and information is encrypted before it is sent for added security.
To activate a FortiToken on the FortiGate unit – web-based manager:
- Go to User & Device > FortiTokens.
- Select one or more FortiTokens with a status of Available.
- Right-click the FortiToken entry and select Activate.
- Select Refresh.
The status of selected FortiTokens will change to Activated.
The selected FortiTokens are now available for use with user and admin accounts.
To activate a FortiToken on the FortiGate unit – CLI:
config user fortitoken edit <token_serial_num> set status activate
next
end
Associating FortiTokens with accounts
The final step before using the FortiTokens to authenticate logons is associating a FortiToken with an account. The accounts can be local user or administrator accounts.
To add a FortiToken to a local user account – web-based manager:
- Ensure that your FortiToken serial number has been added to the FortiGate successfully, and its status is Available.
- Go to User & Device > User Definition, and edit the user account.
- Select Email Address and enter user’s email address.
- Select Enable Two-factor Authentication.
- Select the user’s FortiToken serial number from the Token
- Select OK.
For mobile token, click on Send Activation Code to be sent to the email address configured previously. The user will use this code to activate his mobile token. An Email Service has to be set under System > Advanced in order to send the activation code.
To add a FortiToken to a local user account – CLI:
config user local edit <username> set type password set passwd “myPassword” set two-factor fortitoken set fortitoken <serial_number> set email-to “username@example.com”
set status enable
next
end
To add a FortiToken to an administrator account – web-based manager:
- Ensure that your FortiToken serial number has been added to the FortiGate successfully, and its status is Available.
- Go to System > Administrators, and edit the admin account.
This account is assumed to be configured except for two-factor authentication.
- Select Email Address and enter admin’s email address.
- Select Enable Two-factor Authentication.
- Select the user’s FortiToken serial number from the Token
- Select OK.
For mobile token, click on Send Activation Code to be sent to the email address configured previously. The admin will use this code to activate his mobile token. An Email Service has to be set under System > Advanced in order to send the activation code.
To add a FortiToken to an administrator account – CLI:
config system admin edit <username> set password “myPassword” set two-factor fortitoken set fortitoken <serial_number> set email-to “username@example.com”
next
end
The fortitoken keyword will not be visible until fortitoken is selected for the two-factor option.
FortiToken maintenance
Once FortiTokens are entered into the FortiGate unit, there are only two tasks to maintain them — changing the status,
To change the status of a FortiToken between Activated and Locked – CLI:
config user fortitoken edit <token_serial_num> set status lock
next
end
Any user attempting to login using this FortiToken will not be able to authenticate.
To list the drift on all FortiTokens configured on this FortiGate unit – CLI:
# diag fortitoken info
FORTITOKEN DRIFT STATUS
FTK2000BHV1KRZCC 0 token already activated, and seed won’t be returned
FTK2001C5YCRRVEE 0 token already activated, and seed won’t be returned
FTKMOB4B94972FBA 0 provisioned
FTKMOB4BA4BE9B84 0 new
Total activated token: 0
Total global activated token: 0
Token server status: reachable
This command lists the serial number and drift for each FortiToken configured on this FortiGate unit. This command is useful to check if it is necessary to synchronize the FortiGate and any particular FortiTokens.
Hi Mike, One question: if I have LDAP Users and a remote Radius Group which will check first given an username and password? I’m not able to see If the order is defined somewhere
Thank you