CCNA Security - Chapter 3 - Authentication, Authorization, and Accounting
CCNA Security - Chapter 3 - Authentication, Authorization, and Accounting
and Accounting
CCNA Security
Objectives
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
AAA Overview
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
AAA Overview
Refer to 3.1.1.2
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Authentication – Local Database
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Local Versus Remote Access
R1 R1 Firewall R2
LAN 1 Internet Internet
LAN 3
Console Port
Administrator
Management
Requires a direct connection to a console LAN
port using a computer running terminal
emulation software
Administration Logging
Host Host
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
AAA Authentication
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Local AAA Authentication
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Server – Based AAA Authentication
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
AAA Authorization
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
AAA Accounting
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
AAA Accounting Functions
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Configuring Local AAA Authentication with CLI
• R1# conf t
• R1(config)# username JR-ADMIN secret Str0ngPa55w0rd
• R1(config)# username ADMIN secret Str0ng5rPa55w0rd
• R1(config)# aaa new-model
• R1(config)# aaa authentication login default local-case
• R1(config)# aaa local authentication attempts max-fail 10
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Authentication Configuration
• router(config)#
Command Description
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Login Method Types
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Additional Security
• router(config)#
aaa local authentication attempts max-fail [number-of-
unsuccessful-attempts]
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Sample Configuration
R1# conf t
R1(config)# username JR-ADMIN secret Str0ngPa55w0rd
R1(config)# username ADMIN secret Str0ng5rPa55w0rd
R1(config)# aaa new-model
R1(config)# aaa authentication login default local-case
enable
R1(config)# aaa authentication login TELNET-LOGIN local-case
R1(config)# line vty 0 4
R1(config-line)# login authentication TELNET-LOGIN
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
R1
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Configuring Local AAA Authentication with CCP
• The first task when using CCP to configure AAA services for local authentication is to
create users:
• Step 1. Choose Configure > Router > Router Access > User Accounts/View.
• Step 3. In the Add an Account window, enter the username and password in the
appropriate fields to define the user account.
• Step 4. From the Privilege Level drop-down list, choose 15, unless there are lesser
privilege levels defined.
• Step 5. If views have been defined, check the Associate a View with the user check
box and choose a view from the View Name list that is associated with a user.
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Configure Login Authentication
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Configure Login Authentication
• Configure the default method list for login authentication using the local
database:
• Step 1. Choose Configure > Router > AAA > Authentication Policies >
Login. Any defined method lists will be displayed.
• Step 2. To view the options for a method list, select the list name and click Edit.
• Step 3. From the Edit a Method List for Authentication Login window, click Add.
• Step 4. From the Select Method List(s) for Authentication Login window,
choose local from the method list if it is not already selected.
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Troubleshooting Local AAA Authentication
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Troubleshooting Local AAA Authentication
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Server-Based AAA Characteristics
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
TACACS+ and RADIUS protocols
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
TACACS+/RADIUS Comparison
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
TACACS+ Authentication Process
JR-ADMIN JR-ADMIN
Password prompt?
Accept/Reject
• Refer to 3.3.2.2
• Provides separate AAA services
• Utilizes TCP port 49
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
RADIUS Authentication Process
Access-Request
Username? (JR_ADMIN, “Str0ngPa55w0rd”)
JR-ADMIN Access-Accept
Password?
Str0ngPa55w0rd
• Refer to 3.3.2.3
• Works in both local and roaming situations
• RADIUS combines authentication and authorization as one
process.
• Uses UDP ports 1645 or 1812 for authentication
• and UDP ports 1646 or 1813 for accounting
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Cisco Secure ACS Benefits
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Advanced Features
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Scalability features
• Ease of use
• Scalability
• Extensibility
• Management
• Administration
• Product flexibility
• Integration
• Third-party support
• Control
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Installation Options
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Configuring Cisco Secure ACS
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Cisco Secure ACS Homepage
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Network Configuration
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
External User Database
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Windows User Database Configuration
4. Click configure
5. Configure options
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Configuring the Unknown User Policy
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
User Setup
4. Click Submit
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Configuring Server-Based AAA Authentication with CLI
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Group Method List
• R1(config)# aaa authentication type { default | list-name } method1 …
[method4]
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
• aaa new-model
• !
• aaa authentication login default group tacacs+ local
• !
• tacacs-server host 192.168.1.3 key cisco123
• !
• Username admin privilege 15 secret admin123
Configuring Server-Based AAA Authentication with SDM
• 1. Choose Configure > Additional Tasks > AAA > AAA Servers and
Groups > AAA Servers
2. Click Add
3. Choose TACACS+
4. Enter the IP address
(or hostname) of the
AAA server
5. Check the Single
Connection check box to
maintain a single
connection
2. Click Add
3. Choose User Defined
5. Click Add
8. Click Add to add a backup method 9. Choose enable from the list
Click OK twice
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Apply Authentication Policy
2. Click Edit
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Troubleshooting Server-Based AAA Authentication
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Debug RADIUS, TACACS
• R1# debug radius ?
• accounting RADIUS accounting packets only
• authentication RADIUS authentication packets only
• brief Only I/O transactions are recorded
• elog RADIUS event logging
• failover Packets sent upon fail-over
• local-server Local RADIUS server
• retransmit Retransmission of packets
• verbose Include non essential RADIUS debugs
• <cr>
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Debug RADIUS, TACACS
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Configuring Server-Based AAA Authorization
Display “show
version” output Accept
Refer: 3.5.1.1
.The TACACS+ protocol allows the separation of authentication from
authorization.
.Can be configured to restrict the user to performing only certain functions
after successful authentication.
.Authorization can be configured for
- character mode (exec authorization)
- packet mode (network authorization)
.RADIUS does not separate the authentication from the authorization
process
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Configuring Server-Based AAA Authorization
R1# conf t
R1(config)# username JR-ADMIN secret Str0ngPa55w0rd
R1(config)# username ADMIN secret Str0ng5rPa55w0rd
R1(config)# aaa new-model
R1(config)# aaa authentication login default group
tacacs+
R1(config)# aaa authentication login TELNET-LOGIN
local-case
R1(config)# aaa authorization exec default group
tacacs+
R1(config)# aaa authorization network default group
tacacs+
R1(config)# line vty 0 4
R1(config-line)# login authentication TELNET-LOGIN
R1(config-line)# ^Z
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Using SDM to Configure Authorization Character Mode
2. Click Add
3. Choose Default
4. Click Add
6. Click OK
2. Click Add
3. Choose Default
4. Click Add
• Requirement:
– Assign the privilege level=5 for remote users, using the
Telnet service
– The users can use the show, router and interface with
all sub-option commands
– Do not authenticate for console access
Example: Configure Authorization
• Provides the ability to track usage, such as dial-in access; the ability to
log the data gathered to a database; and the ability to produce reports
on the data gathered
• To configure AAA accounting using named method lists:
aaa accounting {system | network | exec | connection | commands
level} {default | list-name} {start-stop | wait-start | stop-only | none}
[method1 [method2]]
• Supports 6 different types of accounting: network, connection, exec,
system, commands level, and resource.
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Configuring Server-Based AAA Accounting
R1# conf t
R1(config)# username JR-ADMIN secret Str0ngPa55w0rd
R1(config)# username ADMIN secret Str0ng5rPa55w0rd
R1(config)# aaa new-model
R1(config)# aaa authentication login default group tacacs+
R1(config)# aaa authentication login TELNET-LOGIN local-
case
R1(config)# aaa authorization exec group tacacs+
R1(config)# aaa authorization network group tacacs+
R1(config)# aaa accounting exec start-stop group tacacs+
R1(config)# aaa accounting network start-stop group tacacs+
R1(config)# line vty 0 4
R1(config-line)# login authentication TELNET-LOGIN
R1(config-line)# ^Z
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Example: Configure Accounting
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Chapter Summary
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com
Học viện công nghệ thông tin Bach Khoa - Website: www.bkacad.com