Table Of Contents
Shell-Based Authentication of VPDN Users
Supported Standards, MIBs, and RFCs
Configuring the Network Access Server to Support Exec-VPDN
Configuring PPP to Skip User Authentication
Configuring DNIS for Locating a AAA Server
Configuring the Home Gateway Server
Verifying Shell-Based Authentication
Configuration for a Cisco 3640 HGW
aaa dnis map authentication group
Shell-Based Authentication of VPDN Users
Feature History
This document describes the Shell-Based Authentication of VPDN Users feature and includes the following sections:
•
Supported Standards, MIBs, and RFCs
Feature Overview
The Shell-Based Authentication of VPDN Users feature provides terminal services for VPDN users to support rollout of wholesale dial networks. Terminal services (shell login or exec login) on the network access server (NAS) provide the following capabilities:
•
Enabling a dial-in user session to be terminated at the access server.
•
Authenticating the user with a character-mode login dialog such as username/password or username/challenge/password, Secure ID, Safeword, and so on.
•
Initiating PPP and tunneling it to a home gateway (HGW).
With the terminal services, user authentication methods other than PAP and CHAP can be applied to PPP users. With the Shell-Based Authentication of VPDN Users feature, PPP authentication data is preconfigured or entered before PPP starts. Authentication is completed without any further input from the user.
Terminal services provided by Exec-VPDN add the following functionality:
•
An enhancement to an existing AAA configuration command which enables a user to be authenticated at a remote network determined by the DNIS number. This enhancement supports login in addition to ppp:
aaa dnis map dnis-number authentication { ppp | login } group nameIf a proxy AAA server is used by the NAS to authenticate an exec login, this command is not needed. Shell-based authentication then uses the DNIS or domain name to decide which AAA server should authenticate the user.
•
The new feature supports L2F and L2TP without PPP user authentication.
Figure 1 Typical Network Setup for Shell-Based Exec-VPDN
Benefits
With this feature, clients dial in, are authenticated in character mode, start PPP, and are tunneled based on either DNIS or domain—this feature allows dial-up users to be authenticated in a character-mode connection and then be switched to PPP and tunneled to a remote home gateway.
A character-mode login dialog is provided before PPP starts, and the login dialog supports schemes such as token-card synchronization and initialization, challenge-based password, and so on. After a user is authenticated in this way, the connection changes from character mode to PPP mode to connect the user to the desired destination. The AAA server that authenticates the login user can be selected based on the dialed DNIS or the domain-name part of the user name.
VPDN profiles can be kept by a Resource Pool Manager Server (RPMS), RADIUS-based AAA server, or on the NAS.
Restrictions
•
Per-user virtual profile on a HGW is not supported.
•
Call back is not supported.
•
Only those login schemes supported by the NAS exec-login features are supported.
•
If VPDN fails to get established (for example, RPMS denies the session), the dial-up call is terminated. An exec-PPP session is not terminated locally on the NAS if the desired VPDN session fails to get established because the user was presumed authenticated by an AAA server at the remote enterprise.
•
While an exec-VPDN HGW accepts a tunneled PPP session without authenticating the PPP clients, the tunnel itself must be mutually authenticated by both the NAS and the HGW. To further reduce security risks, a separate VPDN group with a distinct local name should be created on the HGW so that only the exec-VPDN sessions are accepted without authentication.
Order of Precedence
AAA is extremely flexible; each of the three definitions of AAA services can be configured on the same network access server simultaneously. Because all three definitions of AAA services can be configured simultaneously, Cisco has established an order of precedence to determine which server or groups of servers provide AAA services. The precedence is in the following order:
•
Per DNIS—If you have configured the network access server to use DNIS to identify or determine which server group provides AAA services, then this method has the highest priority and takes precedence over any additional AAA selection method configured.
•
Per interface—If you have configured the network access server per interface to use access lists to determine how a server provides AAA services, this method takes precedence over any global configuration AAA access lists you might have configured.
•
Globally—If you have configured the network access server by using global AAA access lists to determine how the security server provides AAA services, this method has the lowest priority.
Figure 2 Event Sequence Illustration for Shell-Based Exec-VPDN
Table 1 Event Sequence Description Table for Shell-Based Exec-VPDN
Related Documents
•
Cisco IOS Security Configuration Guide ; Cisco IOS Release 12.1
•
Cisco IOS Security Command Reference ; Cisco IOS Release 12.1
•
Cisco IOS Dial Services Configuration Guide: Network Services, Cisco IOS Release 12.1
•
Cisco IOS Dial Services Command Reference, Cisco IOS Release 12.1
•
Selecting AAA Servers Using DNIS Numbers Cisco IOS Release 12.0(2)T feature module
•
AAA Server Groups Cisco IOS Release 12.0(5)T feature module
•
Cisco AAA Implementation Case Study
Supported Platforms
•
Cisco 806
•
Cisco 828
•
Cisco SOHO 78
•
Cisco 1710
•
Cisco 2600 series
•
Cisco 3600 series
•
Cisco 3631
•
Cisco 3725
•
Cisco 3745
•
Cisco AS5300
•
Cisco AS5800
•
Cisco 7200
•
Cisco URM for IGX8400
Determining Platform Support Through Cisco Feature Navigator
Cisco IOS software is packaged in feature sets that support specific platforms. To get updated information regarding platform support for this feature, access Cisco Feature Navigator. Cisco Feature Navigator dynamically updates the list of supported platforms as new platform support is added for the feature.
Cisco Feature Navigator is a web-based tool that enables you to quickly determine which Cisco IOS software images support a specific set of features and which features are supported in a specific Cisco IOS image. You can search by feature or release. Under the release section, you can compare releases side by side to display both the features unique to each software release and the features in common.
Cisco Feature Navigator is updated regularly when major Cisco IOS software releases and technology releases occur. For the most current information, go to the Cisco Feature Navigator home page at the following URL:
Availability of Cisco IOS Software Images
Platform support for particular Cisco IOS software releases is dependent on the availability of the software images for those platforms. Software images for some platforms may be deferred, delayed, or changed without prior notice. For updated information about platform support and availability of software images for each Cisco IOS software release, refer to the online release notes or, if supported, Cisco Feature Navigator.
Supported Standards, MIBs, and RFCs
Standards
No new or modified standards are supported by this feature.
MIBs
No new or modified MIBs are supported by this feature.
To obtain lists of MIBs supported by platform and Cisco IOS release and to download MIB modules, go to the Cisco MIB web site on Cisco Connection Online (CCO) at http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml.
RFCs
No new or modified RFCs are supported by this feature.
Prerequisites
This feature requires virtual private dialup network (VPDN), wide area networking (WAN), and authentication, authorization, and accounting (AAA) configurations to be set up before it is implemented. Resource Pool Manager Server (RPMS) configuration can also be used, if needed. Before you configure your NAS or HGW for AAA, you must configure the remote security servers associated with each AAA server group. Refer to the applicable documentation listed in the "Related Documents" section for these other configuration requirements.
If you are not familiar with basic as well as advanced VPDN, and the difference between legacy VPDN and this feature, refer to the applicable documents in the "Related Documents" section.
The exec-VPDN configuration consists of basic configurations of existing technologies:
•
Normal user information configuration: local or AAA
•
Normal AAA server configuration for login if a AAA server is used for login
•
Normal dial-in access interface configuration (serial async, V.120)
•
Normal (non-tunnel) PPP configuration with no PPP user authentication
•
Normal AAA server configuration for PPP if AAA is used for PPP
•
Normal configuration of autocommand ppp on the dial-in access interface to start PPP
•
Normal VPDN configuration: local or in a AAA profile
•
Proxy AAA configuration (for instance, GRS)
•
aaa dnis map command (new)
Note
Verify that all of the separate components mentioned previously are operating correctly—by testing them individually—before implementing the Exec-VPDN feature.
Configuration Tasks
To use the aaa dnis map authentication group aaa-server-group configuration command, you must first enable AAA, define a AAA server group, and enable DNIS mapping.
The following sections provide the steps for configuring Exec-VPDN:
•
Configuring the Network Access Server to Support Exec-VPDN
•
Configuring the Home Gateway Server
Configuring the Network Access Server to Support Exec-VPDN
Configuring the NAS for AAA
To configure the NAS for AAA, use the following commands, starting in global configuration mode:
The following example maps DNIS number 7777 to the RADIUS server group called ExecVPDN-Login-Servers. Server group ExecVPDN-Login-Servers will use RADIUS server 172.30.0.0 for authentication requests for users dialing in with DNIS 7777.
aaa new-modelradius-server host 172.30.0.0 auth-port 1645 key cisco1aaa group server radius ExecVPDN-Login-Serversserver 172.30.0.0aaa dnis map enableaaa dnis map 7777 authentication ppp group ExecVPDN-Login-Serversaaa dnis map 7777 authentication login group ExecVPDN-Login-ServersThe AAA servers in the ExecVPDN-Login-Servers server group should reside in the home gateway network that the exec VPDN user intends to tunnel to.
server 171.69.71.85aaa authentication login ExecVPDN-Login group ExecVPDN-Login-Serversline 1 8!assuming all logins on lines 1-8 is to be authen'ed at 171.69.71.85login authentication ExceVPDN-Loginautoselect during-loginautocommand pppmodem InOuttransport input alltransport output nonestopbits 1speed 115200When a user logs in by typing client_guy@company1.com at the login prompt, the 171.69.71.85 server is consulted for the authentication. If the authentication succeeds, the autocommand starts PPP immediately without letting the user access the exec shell.
Configuring PPP to Skip User Authentication
To configure the PPP to skip user authentication, use the following command, starting in global configuration mode:
Command PurposeStep 1
Router(config)# aaa authentication ppp NAME if-needed
Configures PPP so that it skips user authentication if a user has been authenticated at the login prompt.
The following example uses the global RADIUS server definition list for PPP authentication if authentication is needed.
aaa authentication ppp ExecVPDN-ppp if-needed group radiusPPP config for line 1int async 1ip unnumbered e0encap pppasync mode interactiveppp authentication pap ExecVPDN-pppConfiguring DNIS for Locating a AAA Server
To configure DNIS for locating a AAA server, use the following commands, starting in global configuration mode:
The following example (Again, this configuration is directed to the AAA on the HGW network):
aaa group server radius eV-login-serv-dnis-1server 171.69.71.85aaa authentication login eVpdn-login-dnis-1 group eVpdn-login-serv-dnis-1aaa dnis map enableaaa dnis map 3335555 authentication login group eVpdn-login-dnis-1aaa dnis map 3335555 authentication ppp group eVpdn-login-dnis-1Enabling VPDN
To enable VPDN, use the following command, starting in global configuration mode:
Alternatively, a static vpdn-group configuration on the NAS can be defined, for instance:
vpdn-group 1request-dialinprotocol l2tpdomain company1.cominitiate-to ip 10.0.3.155local name host1_no_authenBoth Layer 2 Forwarding Protocol (L2F) and Layer 2 Tunneling Protocol (L2TP) are supported.
On the dial-up line interface, configure autoselect during-login to allow smooth login terminal services.
On the dial-up line interface, configure autocommand ppp. This denies the PPP user access to the exec shell, but allows entry to (tunneled) PPP.
The Resource Pool Manager Server (RPMS) can be optionally configured.
Multilink PPP Protocol (MLP) can be optionally configured.
Configuring the Home Gateway Server
The HGW must be configured to accept a tunneled PPP session without authenticating the PPP client (this requirement conforms to the L2TP and L2F RFCs). To do this, use the following commands, starting in global configuration mode:
The following example shows no PPP authentication configured:
vpdn-group 1accept-dialinprotocol l2tpvirtual-template 1terminate-from hostname host1_no_authenl2tp tunnel authenticationl2tp password no_authen_secretlocal name host2_no_authen!interface Virtual-Template1ip unnumbered Ethernet0/0no keepaliveppp authorization no_author!The following example shows PPP authentication enabled:
vpdn-group 2accept-dialinprotocol l2tpvirtual-template 2terminate-from hostname authen_onl2tp tunnel authenticationl2tp password no_authen_secretlocal name host2_autne_on!interface Virtual-Template1ip unnumbered Ethernet0/0no keepaliveppp authentication pap!Verifying Shell-Based Authentication
To verify that a user can log in and get either an L2TP or L2F tunnel established and to see who is connected, use the show users command.
To see the L2F tunnels and to verify that the number of L2X tunnels and sessions are correctly used, the show vpdn command.
NAS Configuration
st-5300-c2#sh runBuilding configuration...Current configuration:!version 12.1no service padservice timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname st-5300-c2!no logging bufferedaaa new-modelaaa group server radius Exec-VPDN-Login-Serversserver 171.69.69.72 auth-port 1645 acct-port 1646!aaa authentication login Exec-VPDN-login group Exec-VPDN-Login-Serversaaa authentication ppp Exec-VPDN-ppp if-needed group Exec-VPDN-Login-Serversaaa authorization network default group Exec-VPDN-Login-Serversaaa authorization network no_author noneenable password lab!!<snip>!spe 1/0 1/7firmware location system:/ucode/mica_port_firmware!resource-pool disable!ip subnet-zeroip ftp source-interface Ethernet0ip ftp username rootip ftp password labno ip domain-lookup!vpdn enableno vpdn loggingvpdn search-order domain!isdn switch-type primary-5esscns event-service servermta receive maximum-recipients 0!controller T1 0framing esfclock source line primarylinecode b8zspri-group timeslots 1-24!controller T1 1framing esfclock source line secondary 1linecode b8zspri-group timeslots 1-24!controller T1 2framing esfclock source line secondary 2linecode b8zspri-group timeslots 1-24!controller T1 3framing esfclock source line secondary 3linecode b8zspri-group timeslots 1-24!controller T1 4framing esfclock source line secondary 4linecode b8zspri-group timeslots 1-24!controller T1 5framing esfclock source line secondary 5linecode b8zspri-group timeslots 1-24!controller T1 6framing esfclock source line secondary 6linecode b8zspri-group timeslots 1-24!controller T1 7framing esfclock source line secondary 7linecode b8zspri-group timeslots 1-24!interface Loopback0ip address 1.1.1.1 255.255.255.0!interface Ethernet0ip address 1.1.2.1 255.255.255.0no ip route-cacheno ip mroute-cacheno cdp enable!interface Virtual-Template1no ip address!interface Virtual-Template5no ip address!interface Serial0no ip addressshutdownno fair-queueclockrate 2015232no cdp enable!interface Serial1no ip addressshutdownno fair-queueclockrate 2015232no cdp enable!interface Serial2no ip addressshutdownno fair-queueclockrate 2015232no cdp enable!interface Serial3no ip addressshutdownno fair-queueclockrate 2015232no cdp enable!interface Serial0:23ip unnumbered Ethernet0encapsulation pppip mroute-cacheisdn switch-type primary-5essisdn incoming-voice modemno peer default ip addressno fair-queueno cdp enableppp authentication pap Exec-VPDN-pppppp authorization no_authorppp multilink!interface Serial1:23no ip addressencapsulation pppip mroute-cacheisdn switch-type primary-5essisdn incoming-voice modemno peer default ip addressno fair-queueno cdp enable!interface Serial2:23no ip addressencapsulation pppip mroute-cacheisdn switch-type primary-5essisdn incoming-voice modemno peer default ip addressno fair-queueno cdp enable!interface Serial3:23no ip addressencapsulation pppip mroute-cacheisdn switch-type primary-5essisdn incoming-voice modemno peer default ip addressno fair-queueno cdp enable!interface Serial4:23no ip addressencapsulation pppip mroute-cachedialer-group 1isdn switch-type primary-5essisdn incoming-voice modemno peer default ip addressno fair-queueno cdp enable!interface Serial5:23no ip addressencapsulation pppip mroute-cachedialer-group 1isdn switch-type primary-5essisdn incoming-voice modemno peer default ip addressno fair-queueno cdp enable!interface Serial6:23no ip addressencapsulation pppip mroute-cachedialer-group 1isdn switch-type primary-5essisdn incoming-voice modemno peer default ip addressno fair-queueno cdp enable!interface Serial7:23no ip addressencapsulation pppip mroute-cachedialer-group 1isdn switch-type primary-5essisdn incoming-voice modemno peer default ip addressno fair-queueno cdp enable!interface FastEthernet0no ip addressno ip route-cacheno ip mroute-cacheno keepaliveshutdownduplex autospeed autono cdp enable!interface Group-Async1ip unnumbered Ethernet0encapsulation pppasync mode interactiveno peer default ip addressno fair-queueppp authentication pap Exec-VPDN-pppppp authorization no_authorppp multilinkgroup-range 1 48!interface Dialer1ip unnumbered Loopback0encapsulation pppno ip route-cacheno ip mroute-cachedialer in-banddialer idle-timeout 2147483dialer-group 1peer default ip address pool defaultno fair-queueno cdp enableppp authentication pap Exec-VPDN-pppppp authorization no_authorppp multilink!interface Dialer13ip address 8.8.10.8 255.255.255.0encapsulation pppno ip route-cacheno ip mroute-cachedialer remote-name useless_remote13dialer pool 2dialer idle-timeout 2147483dialer string 4085211002dialer load-threshold 1 eitherdialer max-call 4096dialer-group 2pulse-time 0no cdp enableppp chap hostname user1@hoki10.comppp chap password 7 09404F0Bppp multilinkppp timeout multilink link add 3!interface Dialer25ip address 8.8.11.8 255.255.255.0encapsulation pppno ip route-cacheno ip mroute-cachedialer remote-name useless_remote25dialer pool 3dialer idle-timeout 2147483dialer string 4085211003dialer load-threshold 1 eitherdialer max-call 4096dialer-group 2pulse-time 0no cdp enableppp chap hostname user1@hoki11.comppp chap password 7 020A0559ppp multilinkppp timeout multilink link add 3!interface Dialer37ip address 8.8.12.8 255.255.255.0encapsulation pppno ip route-cacheno ip mroute-cachedialer remote-name useless_remote37dialer pool 4dialer idle-timeout 2147483dialer string 4085211004dialer load-threshold 1 eitherdialer max-call 4096dialer-group 2no cdp enableppp chap hostname user1@hoki12.comppp chap password 7 03085A09ppp multilinkppp timeout multilink link add 3!interface Dialer49ip address 8.8.13.8 255.255.255.0encapsulation pppno ip route-cacheno ip mroute-cachedialer remote-name useless_remote49dialer pool 5dialer idle-timeout 2147483dialer string 4085211101dialer load-threshold 1 eitherdialer max-call 4096dialer-group 2no cdp enableppp chap hostname user1@hoki13.comppp chap password 7 0703204Eppp multilinkppp timeout multilink link add 3!interface Dialer61ip address 8.8.14.8 255.255.255.0encapsulation pppno ip route-cacheno ip mroute-cachedialer remote-name useless_remote61dialer pool 6dialer idle-timeout 2147483dialer string 4085211102dialer load-threshold 1 eitherdialer max-call 4096dialer-group 2no cdp enableppp chap hostname user1@hoki14.comppp chap password 7 11051807ppp multilinkppp timeout multilink link add 3!interface Dialer73ip address 8.8.15.8 255.255.255.0encapsulation pppno ip route-cacheno ip mroute-cachedialer remote-name useless_remote73dialer pool 7dialer idle-timeout 2147483dialer string 4085211103dialer load-threshold 1 eitherdialer max-call 4096dialer-group 2no cdp enableppp chap hostname user1@hoki15.comppp chap password 7 00081204ppp multilinkppp timeout multilink link add 3!interface Dialer85ip address 8.8.16.8 255.255.255.0encapsulation pppno ip route-cacheno ip mroute-cachedialer remote-name useless_remote85dialer pool 8dialer idle-timeout 2147483dialer string 4085211104dialer load-threshold 1 eitherdialer max-call 4096dialer-group 2no cdp enableppp chap hostname user1@hoki16.comppp chap password 7 03085A09ppp multilinkppp timeout multilink link add 3!ip local pool default 50.0.0.1 50.0.0.10ip default-gateway 1.1.2.254ip classlessip route 0.0.0.0 0.0.0.0 1.1.2.254ip route 171.69.0.0 255.255.0.0 1.1.2.254ip route 172.21.0.0 255.255.0.0 1.1.2.254no ip http server!dialer-list 1 protocol ip permitdialer-list 2 protocol ip permitno cdp run!radius-server host 171.69.69.72 auth-port 1645 acct-port 1646radius-server retransmit 3radius-server key cisco!line con 0exec-timeout 0 0transport input noneline 1 48exec-timeout 0 0autoselect during-loginlogin authentication Exec-VPDN-loginmodem InOutautocommand ppptransport input alltransport output lat pad mop telnet rlogin udptn v120 lapb-ta nasiline aux 0line vty 0 4exec-timeout 0 0password ciscologin authentication Exec-VPDN-login!scheduler interval 1000endConfiguration for a Cisco 3640 HGW
st-3640-n3#show runningBuilding configuration...Current configuration:!version 12.1service timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname st-3640-n3!no logging bufferedenable password <snip>!<snip>!ip subnet-zeroip ftp source-interface FastEthernet3/0ip ftp username rootip ftp password labip domain-list nlab.cisco.comip domain-list cisco.comip domain-list .ip domain-name cisco.comip name-server 172.21.200.3ip name-server 171.69.2.133ip name-server 198.92.30.32!vpdn enableno vpdn logging!vpdn-group 1accept-dialinprotocol l2tpvirtual-template 1terminate-from hostname naslocal name hgwl2tp tunnel password 7 14191D340D113E2321260C262710151317!vpdn-group 2accept-dialinprotocol l2tpvirtual-template 2terminate-from hostname nas1local name hgwl2tp tunnel password 7 151C0433053F3F2C2D3D0A311604040615!vpdn-group 3accept-dialinprotocol l2tpvirtual-template 3terminate-from hostname nas2local name hgwl2tp tunnel password 7 045504390E3458460C173A0417081E013E!isdn switch-type primary-5esscns event-service server!controller T1 1/0framing esflinecode b8zspri-group timeslots 1-24!controller T1 1/1framing esflinecode b8zspri-group timeslots 1-24!interface Loopback0ip address 2.2.2.2 255.255.255.0!interface Ethernet0/0no ip addressshutdown!interface Ethernet0/1no ip addressshutdown!interface Ethernet0/2no ip addressshutdown!interface Ethernet0/3no ip addressshutdown!interface Serial1/0:23no ip addressip mroute-cacheisdn switch-type primary-5essfair-queue 64 256 0no cdp enable!interface Serial1/1:23no ip addressip mroute-cacheisdn switch-type primary-5essfair-queue 64 256 0no cdp enable!interface BRI2/0ip address 10.1.1.1 255.255.255.0dialer string 4085210801dialer-group 1isdn switch-type basic-5ess!interface BRI2/1ip address 100.1.1.1 255.255.255.0dialer string 4085210801dialer-group 1isdn switch-type basic-ni!interface BRI2/2no ip addressshutdownisdn switch-type basic-ni!interface BRI2/3no ip addressshutdownisdn switch-type basic-ni!interface BRI2/4no ip addressshutdownisdn switch-type basic-ni!interface BRI2/5no ip addressshutdownisdn switch-type basic-ni!interface BRI2/6no ip addressshutdownisdn switch-type basic-ni!interface BRI2/7no ip addressshutdownisdn switch-type basic-ni!interface FastEthernet3/0ip address 1.1.2.2 255.255.255.0no keepaliveduplex autospeed auto!interface Virtual-Template1ip unnumbered FastEthernet3/0ip mroute-cacheno keepalivepeer default ip address pool defaultppp authorization no_authorppp multilink!interface Virtual-Template2ip unnumbered FastEthernet3/0ip mroute-cacheno keepalivepeer default ip address pool defaultppp authorization no_authorppp multilink!interface Virtual-Template3ip unnumbered FastEthernet3/0ip mroute-cacheno keepalivepeer default ip address pool defaultppp authorization no_authorppp multilink!interface Virtual-Template5ip unnumbered Ethernet0/0ip mroute-cacheno keepalivepeer default ip address pool defaultppp authentication chap!interface Group-Async1physical-layer asyncno ip address!interface Dialer1no ip addressdialer in-banddialer idle-timeout 5dialer wait-for-carrier-time 5dialer hold-queue 5dialer-group 1no cdp enable!interface Dialer2no ip addressencapsulation pppdialer remote-name routerdialer pool 2dialer idle-timeout 5dialer wait-for-carrier-time 5dialer string 5551212dialer hold-queue 5



