With a successful authentication, the user’s authorization
profile stored on the AAA server is downloaded to the firewall to create dynamic
access control entries (ACEs). These temporary ACEs are added to the inbound ACL
for an input interface and to the outbound ACL of an output interface, if an
output ACL exists at the interface. These temporary ACEs configure the firewall
to allow only the authenticated users access to the network that was
specifically permitted by the authorization profile. For example, the user could
only initiate a Telnet session through the firewall if either Telnet or all of
TCP is specifically permitted in that user’s profile. The following example is a
TACACS+ user profile stored on a Windows AAA server.
default authorization = permit
key = test
user = newuser1 {
login = cleartext test
service = auth-proxy
{
priv-lvl=15
proxyacl#1="permit tcp any any eq 69"
proxyacl#2="permit icmp any host 192.168.7.2"
proxyacl#3="permit tcp any any eq ftp"
proxyacl#4="permit tcp any any eq ftp-data"
proxyacl#5="permit tcp any any eq telnet"
proxyacl#6="permit tcp any any eq smtp"
}
}
The various proxyacl#n lines will be
downloaded as ACEs in the firewall router to allow the defined protocol or
activity. Notice no deny statements exist because all traffic should have
already been denied by a standard ACL. These entries are creating the
exceptions. All source addresses are set to any because they’ll be replaced by
the IP address of the authenticating user.
The following output shows input ACL (160) following the user on
host 192.168.1.10 successfully authenticating. The first six permit statements
represent the downloaded user profile enabling the specified features for the
authenticated user. The last four lines are the “real” ACL entries.
Rtr1#show ip access-lists
Extended IP access list 160
permit tcp host 192.168.1.10 any eq 69
permit icmp host 192.168.1.10 host 192.168.4.2
permit tcp host 192.168.1.10 any eq telnet
permit tcp host 192.168.1.10 any eq ftp
permit tcp host 192.168.1.10 any eq ftp-data
permit tcp host 192.168.1.10 any eq smtp
deny tcp any any eq telnet
deny udp any any
permit tcp any any (76 matches)
permit ip any any