Enable automatic clock synchronization
Maintain the clock in the device synchronized with the rest of the devices in the network. This facilitates auditing and consistency between expiry dates used in expiration of certificates and security protocols.
In Global configuration mode (Config Global), execute:
config system ntp config ntpserver
edit 1
set server “192.0.2.1” next
end
set ntpsync enable set syncinterval 60
end
Enable Password Policy
Brute force password software can launch more than just dictionary attacks. It can discover common passwords where a letter is replaced by a number. For example, if “p4ssw0rd” is used as a password, it can be cracked.
Password policies, available by going to System > Settings > Enable Password Policy, enable you to create a password policy that any administrator who updates their passwords, must follow. Using the available options you can define the required length of the password, what it must contain (numbers, upper and lower case, and so on) and an expiry time frame. The FortiGate unit will warn of any password that is added and does not meet the criteria.
Modify administrator account Lockout Duration and Threshold values
Account lockout policies control how and when accounts are locked out of the FortiGate unit. These policies are described and implemented as follows:
Administrator account Lockout Duration
If someone violates the lockout controls by entering an incorrect user name and/or password, account lockout duration sets the length of time the account is locked. the lockout duration can be set to a specific length of time using a value between 1 and 4294967295 seconds. The default value is 60 seconds.
When it’s required use the CLI to modify the lockout duration as follow:
config system global
set admin-lockout-duration <integer>
end
Administrator account Lockout Threshold
The lockout threshold sets the number of invalid logon attempts that are allowed before an account is locked out. You may set a value that balances the need to prevent account cracking against the needs of an administrator who may have difficulty accessing their account.
Its normal for an administrator to sometimes take a few attempts to logon with the right password.
The lockout threshold can be set to any value from 1 to 10. The Default value is 3, which is normally a good setting. However, to improve security you could reduce it to 1 or 2 as long as administrators know to take extra care when entering their passwords.
Use the following CLI command to modify the lockout threshold:
config system global
set admin-lockout-threshold <integer>
end
Keep in mind that the higher the lockout value, the higher the risk that someone may be able to break into the FortiGate unit.