IOS Setup for AAA TACACS+

Overview

IOS AAA config to force all login authentication, enable authentication, command authorization and log all  level 15 commands via TACACS.  A back door account is added to allow access only if the TACACS server is unreachable.

  1. Only tested in LAB environment, use at your own risk.
  2. Using Cisco ACS 5.1 TACAS+ Server
  3. Authenticate using TACACS Server or local if TACACS server is unreachable.
  4. Authorize Commands using TACACS server or none if TACACS server is unreachable.
  5. Log all privilege level 15 commands to TACACS server
IOS Config
Setup Backup Accounts

! CONFIG AN ENABLE PASSWORD LOCALLY FOR BACKUP
enable secret 5 $1$TvWE$xzTLJBX/FVKeRrAgkgW7E/

! ADD BACKUP ACCOUNT, USED WHEN TACACS SERVER IS UNREACHABLE
username BackDoorAcc privilgae 15 secret MyPass

Setup AAA Options

! ENABLE AAA
aaa new-model

! LOGIN AUTHENTICATE TO TACACS SERVER, THEN LOCAL
aaa authentication login default group tacacs+ local
aaa authentication enable default group tacacs+ enable

! AUTHORIZE ALL COMMANDS LEVEL 0,1 ,15 BY TACACS SERVER
aaa authorization config-commands
aaa authorization commands 0 default group tacacs+ none
aaa authorization commands 1 default group tacacs+ none
aaa authorization commands 15 default group tacacs+ none

! LOG ALL LEVEL 15 COMMANDS TO TACACS SERVER
aaa accounting exec default start-stop group tacacs+
aaa accounting commands 15 default start-stop group tacacs+

Setup TACACS Server Details

! ADD TACACS SERVER
tacacs-server host 172.16.4.50 key ciscokey

One Response to “IOS Setup for AAA TACACS+”

  1. Ra says:

    hi, do you have any idea about adding vendor specific attributes in tacacs server?

Leave a Reply