Fortinet Document Library

Version:

Version:


Table of Contents

Cookbook

Download PDF
Copy Link

Configuring maximum login attempts and blackout period

A failed login attempt could indicate a hacker attempting to gain access to your network. To prevent this security risk, you can limit the number of failed login attempts. After the configured maximum number of failed login attempts is reached, FortiOS blocks access to the account for the configured blackout period.

To configure number of maximum login attempts:

This example sets the maximum number of login attempts to five.

config user setting

set auth-invalid-max 5

end

To configure the blackout period in seconds:

This example sets the blackout period to five minutes (300 seconds).

config user setting

set auth-blackout-time 300

end

Configuring maximum login attempts and blackout period

A failed login attempt could indicate a hacker attempting to gain access to your network. To prevent this security risk, you can limit the number of failed login attempts. After the configured maximum number of failed login attempts is reached, FortiOS blocks access to the account for the configured blackout period.

To configure number of maximum login attempts:

This example sets the maximum number of login attempts to five.

config user setting

set auth-invalid-max 5

end

To configure the blackout period in seconds:

This example sets the blackout period to five minutes (300 seconds).

config user setting

set auth-blackout-time 300

end