cisco — Example: Complete Configuration with TACACS

# # Without arguments, access-profile removes any access-lists it can find # in the old configuration (both per-user and per-interface), and makes sure # that the new profile contains ONLY access-list definitions. # #-------------------------------------------------------------------------------- user = user_default { login = cleartext “welcome” chap = cleartext “welcome” service = exec { # This is the autocommand that executes when user_default logs in. autocmd = “access-profile” } service = ppp protocol = ip { # Put whatever access-lists, static routes, whatever # here. # If you leave this blank, the user will have NO IP # access-lists (not even the ones installed prior to # this)!

inacl#3=”permit tcp any host 10.0.0.2 eq telnet” inacl#4=”deny icmp any any” } service = ppp protocol = ipx { # Put whatever access-lists, static routes, whatever # here. # If you leave this blank, the user will have NO IPX # access-lists (not even the ones installed prior to # this)! } } #--------------------- “access-profile merge” user --------------------------- # # With the 'merge' option, first all old access-lists are removed (as before), # but then (almost) all AV pairs are uploaded and installed. This will allow # for uploading any custom static routes, sap-filters, and so on, that the user # may need in his or her profile.

This needs to be used with care, as it leaves # open the possibility of conflicting configurations. # #----------------------------------------------------------------------------- user = user_merge { login = cleartext “welcome” chap = cleartext “welcome” service = exec { # This is the autocommand that executes when user_merge logs in. autocmd = “access-profile merge” } service = ppp protocol = ip { # Put whatever access-lists, static routes, whatever # here. # If you leave this blank, the user will have NO IP # access-lists (not even the ones installed prior to # this)!

inacl#3=”permit tcp any any” route#2=”10.0.0.0 255.255.0.0" route#3=”10.1.0.0 255.255.0.0" route#4=”10.2.0.0 255.255.0.0" } service = ppp protocol = ipx { Configuring Authentication Example: Complete Configuration with TACACS Configuring Authentication 44