cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7952
Views
21
Helpful
5
Replies

Cisco ASA block an IP after unsuccessful login attempts

MohammadKayed
Level 1
Level 1

Hello,

 

I would like to ask if we have an option from the ASA to block an IP address automatically after unsuccessful login attempts  through SSH or ASDM.

 

Do we have such option or we can only block the user ?

 

I am using Radius server as authentication method.

 

Thank you.

1 Accepted Solution

Accepted Solutions

chesterr
Level 1
Level 1

Hello,

 

You can check command on the asa:

 

1.    enable

2.    configure terminal

3.    login block-for seconds attempts tries within seconds

4.    login quiet-mode access-class {acl-name | acl-number}

5.    login delay seconds

 

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/sec_usr_cfg/configuration/xe-16/sec-usr-cfg-xe-16-book/sec-login-enhance.html

 

or you can do it from the Radius server.

View solution in original post

5 Replies 5

Seb Rupik
VIP Alumni
VIP Alumni

HI there,

If you are using freeradius take a look at the lockout feature:

 

https://wiki.freeradius.org/guide/lockout

 

...there may be equivalent features in other implementations.

 

cheers,

Seb.

 

chesterr
Level 1
Level 1

Hello,

 

You can check command on the asa:

 

1.    enable

2.    configure terminal

3.    login block-for seconds attempts tries within seconds

4.    login quiet-mode access-class {acl-name | acl-number}

5.    login delay seconds

 

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/sec_usr_cfg/configuration/xe-16/sec-usr-cfg-xe-16-book/sec-login-enhance.html

 

or you can do it from the Radius server.

These are not ASA commands, they are IOS commands

These are not ASA config commands, they are IOS config commands

I apologize for the ignorant question, but does this only block logins from internal sources (i.e. within the network) or is this also for any external login attempts, as well? Also, would this block attempts via VPN if the VPN is configured through the RADIUS server?

Review Cisco Networking for a $25 gift card