Table Of Contents
NAS Configuration Examples
Configuring Your Cisco NAS for RADIUS
Configuring Your Cisco NAS for Lock and Key
Configuring the NAS for Remote Node IP and IPX Dial-Up
Configuring Your NAS for ISDN Dial-Up to a Cisco AS5200
Configuring the NAS for Remote Node IP Dial-Up
NAS Configuration Examples
This chapter provides examples you can apply directly to your own CiscoSecure Access Control Server (ACS). Use the information here to help you configure your CiscoSecure ACS and Cisco network access server (NAS) for the following:
•
RADIUS
•
Lock and Key
•
Remote node IP and IPX dial-up
•
ISDN dial-up to a Cisco AS5200
•
Remote node IP dial-up
Configuring Your Cisco NAS for RADIUS
Because the CiscoSecure ACS supports the RADIUS protocol, you can configure your NAS for RADIUS and achieve the same, or equivalent, security services as with the TACACS+ protocol.
The following example illustrates a typical configuration for an ISP with an existing RADIUS installation. In this sample configuration, the Cisco AS5200 can use the same authentication and accounting servers as other vendors' equipment. The result is uniform authentication, authorization, and accounting services, which in turn provides centralized user management and accounting records necessary for billing.
You can enter the following sample configuration directly into your NAS to immediately enable the CiscoSecure ACS for RADIUS-based security services:
service udp-small-servers
service tcp-small-servers
aaa authentication login default none
aaa authentication login console line
aaa authentication login secure radius local
aaa authentication login vty line
aaa authentication ppp default none
aaa authentication ppp secure if-needed radius local
aaa authorization exec radius
aaa authorization network radius
aaa accounting exec start-stop radius
aaa accounting network start-stop radius
username backup password radiusISdown
ip radius source-interface Ethernet0
rlogin trusted-remoteuser-source local
rlogin trusted-localuser-source radius
isdn switch-type primary-5ess
clock source line primary
clock source line secondary
ip address 171.68.187.254 255.255.255.0
ip address 172.16.25.15 255.255.255.224
isdn incoming-voice modem
peer default ip address pool default
isdn incoming-voice modem
peer default ip address pool default
ip tcp header-compression passive
peer default ip address pool default
ppp authentication chap pap secure
peer default ip address pool default
ppp authentication chap pap secure
ip local pool default 171.68.187.1 171.68.187.48
ip name-server 171.68.10.70
async-bootp dns-server 171.68.10.70
radius-server host 172.16.72.41
radius-server host 172.16.72.42
radius-server key MYSECRET
dialer-list 1 protocol ip permit
login authentication console
session-timeout 15 output
login authentication secure
Configuring Your Cisco NAS for Lock and Key
The Lock and Key Security feature, starting with Cisco IOS Release 11.1 software, offers an improved security solution: the Key Security feature (see Figure 18-1). Lock and Key security defines dynamic access control lists (ACL) that grant access per user, on a specific source/destination host basis through a user authentication process.
In essence, you can dynamically allow user access through a firewall without compromising security.
Figure 18-1 Lock and Key with CiscoSecure ACS
In a typical environment, Lock and Key security puts in place a fixed access control list (ACL) that filters all traffic except for Telnet traffic until a remote user has been authenticated with the security mechanism.
When a user logs in and successfully authenticates with the CiscoSecure ACS, the ACS issues the access-enable command to the NAS, which confirms that the user is on an ACL and activates a configuration template that alters the ACL for the incoming interface to enable the privileges allowed to the authenticated user.
After authentication, a specific ACL is put in place, for the Telnet port only, that allows the authenticating of user/network access beyond the firewall.
Caution 
Lock and Key security allows an external event to place an opening in the firewall. After this opening is placed, the router is susceptible to source address spoofing. To prevent this, you need to provide encryption support using IP authentication or encryption.
You can enter the following sample configuration to immediately enable Lock and Key with the CiscoSecure ACS. This configuration enables Lock and Key functionality on a Cisco 2511. Depending on your NAS and network topology, you might have to modify the configuration slightly to meet your exact needs.
NAS "delta" configuration
=========================
! simple tacacs+ configuration. You need EXEC authorization to execute
! the autocommand configured for the user
aaa authentication login default tacacs+
aaa authorization exec tacacs+
tacacs-server host 10.10.1.200
! Now configure the access-list. The fixed access list should deny
! traffic except for telnet to the router itself and deny everything
! else. The dynamic part of the access-list determines what access
! the user will have after they have authenticated themselves. In
! this case, the user will have full IP access after authentication.
access-list 101 permit tcp any host 10.10.1.254 eq telnet
access-list 101 dynamic temp permit ip any any
! Now apply the access-list inbound to the dial-up interfaces
# match keys with the NAS
# definition of the lock&key user
# define user's EXEC authorization profile
# this will unlock the access-list for
# the user for 15 minutes
set autocmd = "access-enable 15"
Building configuration...
service udp-small-servers
service tcp-small-servers
aaa authentication login default tacacs+
aaa authorization exec tacacs+
ip address 10.10.1.254 255.255.255.0
ip address 10.10.2.254 255.255.255.0
dialer map ip 10.10.2.1 name cisco-1004 broadcast
access-list 101 permit tcp any host 10.10.2.254 eq telnet
access-list 101 dynamic temp permit ip any any
tacacs-server host 10.10.1.200
Configuring the NAS for Remote Node IP and IPX Dial-Up
In this next example (see Figure 18-2), a remote node dials in to a NAS, authenticates by means of the CiscoSecure ACS, and is authorized on a protected IPX network.
Figure 18-2 Address Scheme for Routers Dialing in to the Cisco AS5200
You can enter the following sample configuration directly into your NAS to immediately enable the CiscoSecure ACS for remote node IP and IPX dial-up. Depending on your NAS and network topology, you might have to adapt this sample configuration slightly to meet your system's needs.
Remote Node IP and IPX Dial-Up Configuration:
service udp-small-servers
service tcp-small-servers
aaa authentication login default tacacs+ enable
aaa authentication ppp default if-needed tacacs+
aaa authorization network
aaa accounting exec start-stop tacacs+
aaa accounting network start-stop tacacs+
isdn switch-type primary-5ess
clock source line primary
clock source line secondary
ip address 10.10.2.254 255.255.255.0
ip address 10.10.1.254 255.255.255.0
isdn incoming-voice modem
peer default ip address pool default
isdn incoming-voice modem
peer default ip address pool default
ip tcp header-compression passive
peer default ip address pool default
ppp authentication chap pap
peer default ip address pool default
ppp authentication chap pap
tacacs-server host 10.10.1.200
ip local pool default 10.10.2.1 10.10.2.48
dialer-list 1 protocol ip permit
dialer-list 1 protocol ipx permit
modem autoconfigure type microcom_hdms
Configuring Your NAS for ISDN Dial-Up to a Cisco AS5200
You can enter the following sample configuration directly into your NAS to immediately enable CiscoSecure ACS for ISDN dial-up to a Cisco AS5200. (See Figure 18-3.)
Figure 18-3
ISDN Dial-Up to a Cisco AS5200
Depending on your NAS and network topology, you might have to adapt this sample configuration slightly to meet your system's needs.
service udp-small-servers
service tcp-small-servers
aaa authentication login default tacacs+ enable
aaa authentication ppp default if-needed tacacs+
aaa authorization network
aaa accounting exec start-stop tacacs+
aaa accounting network start-stop tacacs+
isdn switch-type primary-5ess
clock source line primary
clock source line secondary
ip address 10.10.2.254 255.255.255.0
ip address 10.10.1.254 255.255.255.0
isdn incoming-voice modem
peer default ip address pool default
isdn incoming-voice modem
peer default ip address pool default
ip tcp header-compression passive
peer default ip address pool default
ppp authentication chap pap
peer default ip address pool default
ppp authentication chap pap
tacacs-server host 10.10.1.200
ip local pool default 10.10.2.1 10.10.2.48
dialer-list 1 protocol ip permit
dialer-list 1 protocol ipx permit
modem autoconfigure type microcom_hdms
Configuring the NAS for Remote Node IP Dial-Up
You can enter the following sample configuration directly into your NAS to immediately enable the CiscoSecure ACS for remote node IP dial-up. (See Figure 18-4.)
Figure 18-4 Remote Node IP Dial-Up
Depending on your NAS and network topology, you might have to adapt this sample configuration slightly to meet your system's needs.
service udp-small-servers
service tcp-small-servers
aaa authentication login default tacacs+ enable
aaa authentication ppp default if-needed tacacs+
aaa authorization network
aaa accounting exec start-stop tacacs+
aaa accounting network start-stop tacacs+
isdn switch-type primary-5ess
clock source line primary
clock source line secondary
ip address 10.10.1.254 255.255.255.0
isdn incoming-voice modem
peer default ip address pool default
isdn incoming-voice modem
peer default ip address pool default
ip tcp header-compression passive
peer default ip address pool default
ppp authentication chap pap
peer default ip address pool default
ppp authentication chap pap
tacacs-server host 10.10.1.200
ip local pool default 10.10.1.1 10.10.1.48
dialer-list 1 protocol ip permit
modem autoconfigure type microcom_hdms