Secure Access Control Flashcards
Types of password protection
1) Enable secret password
2) Line password
3) Username password
Password Hash Types
1) MD5 (default, weak, Type-5)
2) SHA-256 (Type-8)
3) Scrypt (strongest available, Type-9)
4) Vigenère cipher (line passworrd default, very weak, Type-7)
Command to configure enable secret password
Router(config)# enable algorithm-type scrypt secret BLAHBLAH
- default algorithm-type is md5
- global config mode
- verify with show run | i enable
Line Password Only Configuration
Router(config)# line con 0
Router(config-line)# password BLAHBLAH
Router(config-line)# login
Router(config-line)# exec-timeout 5 0
Router(config)# service password-encryption
Line Username/Password Configuration
Router(config)# username BLAHUSER password BLAHPASS
Router(config)# line con 0
Router(config-line)# login local
ip http authentication local
- command to use the local creds for HTTP/S access
security password min-length BLAHLENGTH
- (Global configuration) Ensure that all configured passwords are at least a specified length
transport input ssh
- (vty lines) Allows only inbound SSH connections instead of Telnet
login block-for BLAHSECONDS attempts BLAHTRIES within BLAHSECONDS
- (Global configuration) Disables logins after a specific number of failed login attempts within a specific time
login quiet-mode access-class BLAHACL
- (Global configuration) Named or numbered ACL identifies permitted hosts to ensure that authorized devices can always connect
login delay BLAHSECONDS
- (Global configuration) Specifies a number of seconds the user must wait between unsuccessful login attempts
service password-encryption
- enables Type-7 encryption of cleartext passwords
AAA Framework
1) Authentication - Who are you?
2) Authorization - What are you allowed to do?
3) Accounting - What did you do?
Authetication Methods
1) Something you know - credentials
2) Something you have - certificates
3) Something you are - biometrics
Command to configure authentication
Router(config)# aaa authentication BLAHSERVICE { default | BLAHLIST } BLAHMETHOD1 [ BLAHMETHOD2 …]
- service is either login, ppp, or dot1x
- method can be local, enable, none or group for tacacs/radius servers
- method2 is the fallback for method1, etc
- none method means access is allowed without creds