cisco — Example: Complete Configuration with TACACS

Example: Complete Configuration with TACACS This example shows TACACS+ authorization profile configurations both for the remote host (used in the first stage of double authentication) and for specific users (used in the second stage of double authentication). This sample configuration shows authentication/authorization profiles on the TACACS+ server for the remote host “hostx” and for three users, with the usernames “user_default,” “user_merge,” and “user_replace.” The configurations for these three usernames illustrate different configurations that correspond to the three different forms of the access-profile command.

The three user configurations also illustrate setting up the autocommand for each form of the access-profile command. The figure below shows the topology. The example that follows the figure shows a TACACS+ configuration file. Figure 3: Topology Example for Double Authentication This figure shows the topology of double authentication.

This sample configuration shows authentication/authorization profiles on the TACACS+ server for the remote host “hostx” and for three users, with the usernames “user_default,” “user_merge,” and “user_replace.” key = “mytacacskey” default authorization = permit #-----------------------------Remote Host (BRI)------------------------- # # This allows the remote host to be authenticated by the local host # during fist-stage authentication, and provides the remote host # authorization profile.

# #----------------------------------------------------------------------- user = hostx { login = cleartext “welcome” chap = cleartext “welcome” service = ppp protocol = lcp { interface-config=”ip unnumbered fastethernet 0" } service = ppp protocol = ip { # It is important to have the hash sign and some string after # it. This indicates to the NAS that you have a per-user # config.

inacl#3=”permit tcp any 172.21.114.0 0.0.0.255 eq telnet” inacl#4=”deny icmp any any” route#5=”10.0.0.0 255.0.0.0" route#6=”10.10.0.0 255.0.0.0" } service = ppp protocol = ipx { # see previous comment about the hash sign and string, in protocol = ip inacl#3=”deny any” } } #------------------- “access-profile” default user “only acls” ------------------ Configuring Authentication Example: Complete Configuration with TACACS Configuring Authentication 43