Cisco Web Authentication Deployment and Configuration Guide
Cisco Web Authentication Deployment and Configuration Guide
Table of Contents
Table of Contents ........................................................................................................................................................ 1
Introduction.................................................................................................................................................................. 3
Solution Scope.......................................................................................................................................................... 3
About Web Authentication.......................................................................................................................................... 4
Benefits and Limitations............................................................................................................................................ 4
Functional Overview ................................................................................................................................................. 5
Step 1: Before Web Authentication, IEEE 802.1X Times Out or Fails ................................................................. 6
Step 2: Switch Opens Port for Limited Access..................................................................................................... 8
Step 3: User Traffic Triggers Web Authentication Session State......................................................................... 9
Step 4: User Gets Login Page ............................................................................................................................. 9
Step 5: Authentication Server Authorizes User .................................................................................................. 12
Step 6: Switch Applies New Policy and Redirects Page .................................................................................... 13
Session Termination .......................................................................................................................................... 13
Failed Authentications and Denial-of-Service Attacks ....................................................................................... 14
Feature Interaction.................................................................................................................................................. 15
MAC Authentication Bypass............................................................................................................................... 15
Guest VLAN ....................................................................................................................................................... 16
Auth-Fail VLAN .................................................................................................................................................. 16
Inaccessible-Auth Bypass .................................................................................................................................. 17
Port ACLs........................................................................................................................................................... 18
Open Access...................................................................................................................................................... 19
Host Modes ........................................................................................................................................................ 19
IP Telephony ...................................................................................................................................................... 20
Deployment Summary for Web Authentication....................................................................................................... 22
Configuring Web Authentication.............................................................................................................................. 23
Configure the Switch in Cisco Secure ACS ............................................................................................................ 23
Create a User in Cisco Secure ACS Internal User Database ................................................................................. 24
Create a Downloadable ACL in Cisco Secure ACS ................................................................................................ 25
Create an Authorization Profile in Cisco Secure ACS ............................................................................................ 26
Create a Web Authentication Access Service ........................................................................................................ 28
Create a Web Authentication Service Selection Rule............................................................................................. 31
Configure the Switch............................................................................................................................................... 32
Verify Existing IEEE 802.1X Configuration......................................................................................................... 32
Enable AAA for Web Authentication .................................................................................................................. 34
AAA must be enabled for WebAuth (Table 4). ................................................................................................... 34
Enable IP Device Tracking................................................................................................................................. 35
Enable HTTP and HTTPS .................................................................................................................................. 35
Assign the Web Authentication Fallback Profile to an Interface ........................................................................ 36
Review the Configuration ................................................................................................................................... 36
Modify Web Authentication Timers (Optional) ........................................................................................................ 37
Session (Absolute) Timeout (Optional) .............................................................................................................. 38
Configure Customized Webpages (Optional) ......................................................................................................... 38
Support External Links in Customized Pages (Optional) ................................................................................... 39
Configure Web Authentication AAA Fail Policy (Optional)...................................................................................... 39
Enable Web Authentication for IEEE 802.1X Failures (Optional) ........................................................................... 39
Configure the IP Admission Watch List (Optional).................................................................................................. 40
Monitor Web Authentication.................................................................................................................................... 40
Troubleshoot Web Authentication........................................................................................................................... 42
Conclusion ................................................................................................................................................................. 42
Appendix A: References ........................................................................................................................................... 42
Cisco Product Documentation ................................................................................................................................ 42
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 1 of 46
Application Note
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 2 of 46
Application Note
Introduction
In today’s diverse workplaces, partners, consultants, contractors and even guests require access to network
resources over the same LAN connections as regular employees. While IEEE 802.1X authentication secures the
internal network by requiring employees to present valid credentials before accessing the network, some provision
must be made for users without IEEE 802.1X supplicants.
When used as a fallback mechanism to IEEE 802.1X, web authentication (WebAuth) provides supplemental
authentication while maintaining the benefits of an IEEE 802.1X–protected network. IEEE 802.1X is a secure,
standards-based, Layer 2 authentication mechanism. Because the switch first attempts IEEE 802.1X authentication,
end hosts with IEEE 802.1X supplicants are subjected to a highly secure authentication procedure while also taking
1
advantage of IEEE 802.1X–enabled features.
When the switch determines that the end host does not possess an IEEE 802.1X supplicant or does not have valid
credentials, the switch can fall back to WebAuth. WebAuth authenticates the user at the access edge by providing
a web-based login page on which the user can enter his or her credentials. After the user is identified, the user’s
identity can be employed by mapping identities to policies that grant or deny granular network access.
This document describes the network design considerations for WebAuth and outlines a framework that allows the
network administrator to implement WebAuth.
Solution Scope
The following hardware platforms and software releases are the minimum versions required to configure all the
features described in this guide:
® ® 2
● Cisco Catalyst 2960 Series Switches with Cisco IOS Software Release 12.2(50)SE3
2
● Cisco Catalyst 3560 Series Switches with Cisco IOS Software Release 12.2(50)SE3
2
● Cisco Catalyst 3750 Series Switches with Cisco IOS Software Release 12.2(50)SE3
● Cisco Catalyst 4500 Series Switches with Cisco IOS Software Release 12.2(50)SG
● Cisco Catalyst 6500 Series Switches with Cisco IOS Software Release 12.2(33)SXI
®
● Cisco Secure Access Control System (ACS) Version 5.0 (earlier versions of Cisco Secure ACS will also
support the required functions with the appropriate configuration).
Although other platforms were not tested as part of this solution, the Cisco Catalyst 4948 Switch is expected to
perform similarly with these software releases.
1
IEEE 802.1X–enabled features include secure, standards-based authentication, dynamic VLAN assignment, Microsoft Windows
machine authentication, and user authentication that is transparent to the user
2
Two advanced, optional features, authentication, authorization, and accounting (AAA) fail policy and customized webpages,
require Cisco IOS Software Release 12.2(52)SE.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 3 of 46
Application Note
● Clientless authentication: WebAuth does not require the end use to have any special client software. Any
host with a browser can authenticate with WebAuth. The ubiquity of browsers helps ensure that most users
can use WebAuth. This aspect of WebAuth allows contractors, vendors, or others with unmanaged devices
to get access to the network without having to install new software on their PCs.
● Familiarity: Because WebAuth is widely deployed (in public hotspots, hotel rooms, etc.), end users are
familiar with the process of entering credentials in web-based login pages.
● Ubiquitous port configuration: When using WebAuth as a supplement to IEEE 802.1X, administrators
can configure every port in the network the same way without having to know in advance the type of device or
user that will be connected to that port. Employees, partners, contractors, and guests can plug into the same
wired port and dynamically acquire identity-based granular access through different authentication methods.
The ubiquity of the configuration and policy deployment allows device mobility and faster, more efficient
rollouts in heterogeneous environments.
● Visibility: WebAuth provides greater visibility into the network since the authentication process provides a
way to link the user’s name with an IP address, MAC address, switch, and port. This visibility is useful for
security audits, network forensics, network use statistics, and troubleshooting.
● Customization: The current implementation of WebAuth in Cisco Catalyst switches enables network
administrators to customize all the webpages (login, success, failure, and expired) needed for the
authentication process. Customizable webpages enable administrators to give these pages the
look and feel of their organizations.
While WebAuth is a convenient mechanism for user authentication on unmanaged devices, it has a number
of limitations that restrict its use:
● Security: IEEE 802.1X is the strongest method for authentication and should be used for managed assets
that support an IEEE 802.1X supplicant. IEEE 802.1X acts at Layer 2 in the network. WebAuth is a weaker,
password-based form of authentication that works at Layer 3.
● Transparency: WebAuth is not transparent to the end user. To access network resources, the user must first
launch a web browser.
● Lack of single sign-on: WebAuth requires that the end user enter credentials on a web login page. This
login is in addition to any other logins that the end user performs (such as Microsoft Windows login). Thus,
the end user could end up entering credentials multiple times. For temporary access (for example, guest,
partner, contractor, or new machine), the need for multiple logins is typically well understood. However, for
employees and managed assets, the capability to perform single sign-on with strong credentials is often
considered essential to productivity. In the latter case, IEEE 802.1X is more appropriate than WebAuth since
most IEEE 802.1X supplicants (clients) can be configured to reuse previously entered credentials (such as
Microsoft Windows Active Directory–based passwords and X.509 certificates).
● Device authentication: Because WebAuth requires a user to enter credentials on a webpage, it cannot be
used for machine authentication or device-specific authentication. To facilitate the authentication of non-IEEE
802.1X–capable managed devices such as printers, an alternative authentication method such as MAC
authentication bypass (MAB) should be used.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 4 of 46
Application Note
Note: MAB and WebAuth can both be configured as fallback mechanisms for IEEE 802.1X. In the event that a
port is configured for IEEE 802.1X, MAB, and fallback WebAuth, the port will first attempt to authenticate the user
through IEEE 802.1X. If IEEE 802.1X authentication times out, the switch will attempt MAB. If MAB fails, the switch
will attempt to authenticate with WebAuth. The automatic sequencing of authentication methods allows the network
administrator to apply the same configuration to every access port without having to know in advance what kind
of device (employee or guest, printer or PC, IEEE 802.1X capable or not, etc.) will be attached to it.
● Restricted network access: The switch can be configured to restrict traffic from the port before the WebAuth
process is complete. Depending on the type of restrictions that are configured and the device’s operating
system, WebAuth could interfere with the device’s startup sequence (such as Microsoft Windows bootup
and group policy download). As long as WebAuth is primarily used for temporary or guest-related access,
these types of limitations rarely affect normal operation.
● Delay: WebAuth is initiated after IEEE 802.1X times out or fails, which can contribute a significant delay in
accessing the network.
● Access control list (ACL) enforcement only: WebAuth uses ACLs to restrict access to the network.
ACLs provide a quick and well-understood way to provide granular access control, especially in networks
with summarized address space, but ACLs do have limitations, especially in the area of scalability. VLAN
assignment is not currently supported for WebAuth.
For all of these reasons, Cisco recommends that WebAuth be used only as a means to provide supplemental
access in an IEEE 802.1X–enabled network.
Functional Overview
This section describes the basic functions of WebAuth. Successful WebAuth is the result of several steps. While
most of these operations are invisible to the end user, a clear understanding of these steps is essential to deploying
and maintaining WebAuth.
1. In an IEEE 802.1X-enabled network, WebAuth can begin only after IEEE 802.1X authentication times out or
fails.
2. The Cisco Catalyst switch opens the port for configurable traffic types (for example, Dynamic Host Configuration
Protocol [DHCP] and Domain Name System [DNS]) required for WebAuth. Depending on whether the Open
Access feature is configured (see Section 2.3.6), this process can occur before or after IEEE 802.1X times
out or fails.
3. The host requests and receives an IP address, triggering the session state on the port.
4. The host opens a browser. The switch intercepts the host’s HTTP traffic and presents the host with a login page.
The user enters credentials on the login page.
5. The switch sends these credentials to the authentication, authorization, and accounting (AAA) server
(for example, Cisco Secure ACS). The authentication server validates the credentials and sends back
the user-specific policy that should be applied to the port.
6. This switch applies this new policy to the port, and the host can access the network according to the
assigned policy. The switch redirects the host to the original webpage.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 5 of 46
Application Note
Note: The following sections assume that the port has been configured for default (Closed) access control.
For additional considerations when using the open-access feature, see Section 2.3.6.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 6 of 46
Application Note
When determining the optimal IEEE 802.1X timer and retry values for your network, you should consider
several factors.
In the default configuration, all traffic that is not EAP over LAN (EAPoL) traffic (including DHCP) is dropped until
IEEE 802.1X times out. Therefore, the value of the timeout can significantly affect the DHCP client on the end host.
Long IEEE 802.1X timeouts may prevent DHCP from functioning correctly after the IEEE 802.1X timeout expires.
Without DHCP, a client cannot acquire an IP address and cannot use WebAuth. If an end user opens a browser
before IEEE 802.1X times out, the end user will experience a Server Not Found error.
To prevent DHCP clients from timing out, one solution is to use lower IEEE 802.1X timer and retry values to help
ensure that IEEE 802.1X times out before the DHCP client times out. Since DHCP timeouts can vary widely, Cisco
recommends testing the DHCP clients in your network to discover how long they take to time out and setting the
IEEE 802.1X timers accordingly.
After IEEE 802.1X has timed out and the port falls back to WebAuth, the switch will no longer initiate IEEE 802.1X
authentication by sending EAP Identity-Request messages. If a supplicant later becomes active on the port, the
switch will not initiate an IEEE 802.1X session. It will be up to the supplicant to initiate IEEE 802.1X by sending an
EAPoL-Start frame to the switch. Almost all supplicants send (or can be configured to send) EAPoL-Start frames. In
the rare instance in which a supplicant does not send an EAPoL-Start frame and the IEEE 802.1X timeout period is
so short that the host does not boot up fast enough to launch the supplicant before IEEE 802.1X times out, the IEEE
802.1X–capable client may miss the opportunity to perform IEEE 802.1X authentication and will get prompted for
WebAuth instead. Therefore, Cisco recommends always deploying a supplicant that sends EAPoL-Start frames in
accordance with the IEEE 802.1X specification.
Clearly, setting the IEEE 802.1X timer to an arbitrarily long or short value can have unintended consequences for
network operation. Each network will have a different optimal value. Therefore, as a best practice, Cisco
recommends that you test the IEEE 802.1X timer values in your own network to determine the best value.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 7 of 46
Application Note
When IEEE 802.1X fails, it usually fails quickly, particularly if the supplicant has been configured for single sign-on.
Therefore, problems associated with DHCP client timeouts and Server Not Found errors are typically not of concern
in this use case.
In most respects, WebAuth works the same way whether it was triggered by IEEE 802.1X timeout or IEEE 802.1X
failure. However, the trigger (failure or timeout) does become important if the user attempts (or reattempts) IEEE
802.1X authentication after WebAuth has started. The port “remembers” whether IEEE 802.1X timed out or failed,
even after WebAuth has been initiated. If IEEE 802.1X times out, the switch will listen for EAPoL-Start messages
3
from the client and restart IEEE 802.1X. If, however, IEEE 802.1X authentication fails, the switch will ignore any
additional EAPoL traffic from the end client during and after the WebAuth process (regardless of whether WebAuth
succeeded).
During the WebAuth process, the switch restricts access on the port through a configurable ACL. Before deploying
the ACL, however, the switch must open the port in some VLAN. Cisco Catalyst switches running Cisco IOS
Software open the port in the default data VLAN that is configured on the port. Therefore, the default data VLAN is
used for WebAuth. This is true regardless of whether IEEE 802.1X has timed out or IEEE 802.1X has failed prior to
the start of WebAuth.
Note: IEEE 802.1X and MAB endpoints that successfully authenticate but do not receive a dynamic VLAN
assignment will be assigned to the default data VLAN. Therefore, IEEE 802.1X–authenticated endpoints will be
in the same VLAN as users that cannot use IEEE 802.1X. In this case, dynamic ACL assignments can be used to
differentiate access levels for endpoints authenticated using different methods.
For the highest level of traffic isolation, dynamic VLAN assignment can be used to assign endpoints authenticated by
4
IEEE 802.1X and MAB to a different VLAN. By dynamically assigning a VLAN that is different from the default
VLAN, the switch can completely isolate traffic from authenticated IEEE 802.1X and MAB endpoints from traffic from
WebAuth endpoints. Moreover, the logical isolation provided by separate VLANs can be extended to the routed
portion of the network using the path isolation techniques of network virtualization. By creating dedicated logical
networks, network virtualization can provide end-to-end solutions for guest access and partner access scenarios.
For more information about network virtualization, see http://www.cisco.com/en/US/netsol/ns658/index.html.
Before deploying dynamic VLAN assignment for IEEE 802.1X authenticated users, you should understand the
design implications of VLAN assignment. In many deployments, most endpoints will be authenticated by IEEE
802.1X or MAB. Careful analysis will be required to determine whether the cost of dynamically assigning VLANs to
the majority of the endpoints is worth the benefit of allowing a minority of users to use WebAuth to access the
network in an isolated default data VLAN.
3
This is the default behavior. Using the Flexible Authentication feature set, the switch can be configured to ignore EAPoL
messages from the client after an 802.1X timeout by setting the priority of WebAuth to be higher than 802.1X.
4
Cisco switches do not support dynamic VLAN assignment as the result of WebAuth, but it is still possible to dynamically assign
VLANs as the result of an 802.1X or MAB authentication.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 8 of 46
Application Note
After the port has been opened, the switch enforces a preconfigured ACL. By default, the preconfigured ACL is
dynamically applied only when WebAuth is initiated. This initiation is accomplished using a WebAuth fallback profile.
The preconfigured ACL in the fallback profile will not apply to ports in the critical VLAN, the auth-fail VLAN, or the
guest VLAN.
At a minimum, the preconfigured ACL should allow the traffic required to complete the WebAuth process. In most
cases, the ACL should at least allow DHCP (so the client can acquire an address) and DNS (so the client can trigger
WebAuth when using fully qualified domain names in URLs). Additional access can be allowed as it conforms to the
organization’s security policy.
When the initial ARP or DHCP packet is received, the device is entered in the IP device tracking table. IP device
tracking maintains a table of known devices and periodically sends ARP probes to verify that they are still active.
A successful IP device tracking probe will initiate session state.
After session state has been triggered, the init-state timer is started. See Section 3.8.1 for more information about
configuring the init-state timer. The end user must enter valid credentials before the init-state timer expires or else
the session state will be cleared. After the session state is cleared, it will have to be reestablished using one of the
methods described in the preceding paragraphs.
Note: When communicating with the end user’s browser, the switch will reuse the IP address of the server that
the browser first attempted to contact.
After the user enters credentials at the login page and clicks the Submit button, the switch will authenticate the
credentials to a back-end authentication server using the RADIUS protocol.
The switch itself acts as the web server and provides the default login page. No external web server is required.
Because the switch serves the page, it must be able to switch traffic to the host. This can be accomplished in two
ways: using a switched virtual interface (SVI) or a default route. The choice of method will depend in part on your
existing network design. In either case, the connectivity requirements will most likely already exist as part of the
basic network design, but it is worthwhile to review them here.
If the switch has an SVI for the host’s data VLAN, then the switch will have a Layer 3 address on the host’s subnet
and will be able to route the login page directly to the host. If your network already supports the use of SVIs for data
5
VLANs at the access edge, then no additional configuration is required.
5
A network that follows the routed access model of campus network design would typically have SVIs at the access device.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 9 of 46
Application Note
If the switch is not configured for SVIs on the data VLANs, the switch can send the login page to the host using a
default route. When a default route is used, all traffic from the switch to the host is sent to the default router, which
may be one or more hops away. The default router then routes the traffic to the host back through the access switch.
Figure 3 shows the initial TCP traffic flow for this situation.
Figure 3. TCP Traffic Flow for Login Page When No Layer 3 SVI for Host VLAN Exists on Access Switch
Although this approach introduces additional hops in the return path from the switch to the host, it produces
negligible load on the default router and intervening infrastructure since only the WebAuth traffic from the switch to
6
the host follows this path. In campus designs that do not use SVIs on the data VLAN, a default route is typically
already configured. In this case, no additional configuration is required to support WebAuth. However, problems may
arise in the case in which traffic to the default router is bridged through a stateful firewall. The original SYN packet in
the TCP handshake is consumed by the access switch, so the first packet that the firewall sees is the SYN-ACK
packet from the access switch. Stateful firewalls typically drop SYN-ACK packets if they have not seen the original
SYN packet.
In this case, you will need to turn off stateful inspection for ports 80 and 443 on the firewall.
6
A network that follows the multi-tier campus design model would typically not have SVIs at the access edge.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 10 of 46
Application Note
When a non-crypto image is used, Cisco IOS Software will automatically redirect all HTTP packets (TCP port 80) to
itself. URLs that reference HTTPS (TCP port 443) will not trigger redirection. If HTTPS support is required, a Cisco
IOS Software crypto image will be necessary. Cisco IOS Software crypto images redirect HTTPS traffic and can be
configured to redirect HTTP traffic as well. URLs that contain a port other than 80 or 443 (for example, http://my-acs-
server:2002) will not trigger redirection.
Note: WebAuth can intercept nonstandard ports using an IP port-to-application map (PAM) entry that maps a new
port to HTTP (or HTTPS). In addition, the Cisco IOS Software HTTP server needs to be reconfigured to listen on the
nonstandard port. However, the Cisco IOS Software HTTP server can run only on a single port. Therefore, support
for port 80 and a nonstandard port are mutually exclusive. If PAM is used to remap the port used for HTTP, then
URLs that reference the default port (80) will not trigger redirection. In addition, if traffic to the default router is
bridged through a stateful firewall, that firewall will have to turn off stateful inspection for the remapped port.
If the crypto image is used and HTTPS is also configured, the switch will initiate an SSL session, even if the initial
HTTP request was to port 80. The advantage of this approach is that the user’s credentials will be sent over an
encrypted channel to the switch and cannot be snooped. The disadvantage is that the browser will prompt the end
user to accept the switch’s certificate, adding another step to the authentication process. By default, the switch
sends a self-signed certificate. Some browsers display a warning or error message when receiving a self-signed
certificate. This event can be mitigated by configuring the switch with a certificate signed by a trusted third-party
certificate authority.
● Management: Customized webpages are stored on each individual switch and must be managed
accordingly.
7
● Embedded images: On most platforms , only a single file can be specified for each of the four customizable
webpages (login, success, fail, expired), so any local images you want to display on the login page must be
embedded in the <img> tag as described in RFC 2397. Be aware that not all browsers support embedded
images.
● External links: External links (including links to images) are allowed as long as the preconfigured ACL allows
access to the external server. Be aware, however, that the switch will intercept all HTTP and HTTPS requests
(even if the preconfigured ACL permits HTTP or HTTPS), so any URLs embedded in the login page must
have a scheme other than HTTP or HTTPS or reference a port other than 80 or 443. See Section 3.9.1 for
a sample configuration.
● Size: The maximum size for a customized page, including embedded images, is currently 8 KB.
● Login page recommendations: The login form must accept user input for the username and password and
must post the data as uname and pwd. The custom login page should also follow best practices for a web
form, such as page timeout, hidden password, and prevention of redundant submissions.
Sample webpages that can be used as the base of customized pages are provided in Section 6
7
As of this writing, Cisco Catalyst 3750, 3560 and 3960 Series Switches running Cisco IOS Software Release 12.2(52)SE and later
are the only platforms that support nonembedded images stored on the switch’s local system directory. See the platform
configuration guides for more details.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 11 of 46
Application Note
Note: In the current implementation, WebAuth uses the default login group for AAA authentication (as defined by
the command aaa authentication login default group). If your existing switch configuration uses this group for
other purposes, it may be necessary to reconfigure your AAA authentication.
How the AAA server validates the user’s name and password depends on the AAA server. The simplest
authentication would involve referencing an internal database of usernames and passwords locally configured on the
AAA server. Some AAA servers also allow validation of credentials against external databases. The use of external
databases often depends on what use case needs to be supported. For example, suppose an employee failed IEEE
802.1X because of an expired certificate and fell back to WebAuth. If the employee enters an Active Directory
username and password on the login page, then the AAA server must be able to query Active Directory to
authenticate those credentials. Another use case might involve a guest without a supplicant or a contractor with
a supplicant but without a valid IEEE 802.1X credential. The guest or contractor might then be provided with a
temporary username and password that can be used for WebAuth. In those cases, the AAA server would need
to query the sponsored guest credential repository (such as the Cisco Network Admission Control (NAC) Guest
Server).
Regardless of where the credentials are stored, if the user’s credentials are valid, the AAA server will send a
RADIUS Access-Accept message to the switch with an authorization policy that determines what level of access the
user will receive. This authorization policy takes the form of an ACL, which can permit or deny traffic based on IP
address and upper-layer application.
Note: The only kind of authorization supported by Cisco IOS Software WebAuth is an ACL (IEEE 802.1X and
MAB support VLAN assignment as well as ACL-based authorization). There are many types of dynamic ACLs
(filtered ID, proxy ACL, per-user ACL, etc.), but starting in the Cisco IOS Software releases listed in Section 1.1, the
only kind of ACL that can be used for every authentication method (IEEE 802.1X, MAB, and WebAuth) across every
switch platform is the downloadable ACL (dACL). Since dACLs are currently the only ubiquitous dynamic ACL, only
dACLs are discussed in this document.
A WebAuth request can be uniquely identified by looking at the Service-Type attribute in the initial Access-Request
message from the switch. WebAuth requests from Cisco Catalyst switches running Cisco IOS Software always set
the Service-Type attribute to 5. Table 1 shows the value of this attribute for other authentication types.
By filtering each Access-Request message based on the Service-Type attribute, the AAA server can identify the type
of authentication request and use this as another condition or attribute in creating authorization policy rules. In Cisco
8
Secure ACS 5.0, filtering can be accomplished using service selection rules.
8
In Cisco Secure ACS 4.0, filtering is accomplished using a network access policy (NAP).
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 12 of 46
Application Note
Note: Although ACLs are conceptually very simple, they can become very complex in real-world networks.
Networks with an addressing scheme that is not summarized or networks in which related resources cannot be
logically grouped together (for instance, in the same subnet) can result in long ACLs that are difficult to define,
maintain, and troubleshoot. Good network design and well-considered security policy planning can reduce the
problems associated with ACL scalability.
Management is not the only scalability concern with ACL-based authorization. Switches use ternary content
addressable memory (TCAM) for hardware-based ACL processing. By processing ACLs in hardware, Cisco switches
enable secure, high-bandwidth communication within the campus. However, long ACLs applied across numerous
ports can overwhelm a switch's TCAM space. When selecting ACLs as an authorization method, be sure that your
switches have sufficient TCAM capacity to handle the number and size of ACLs that you plan to deploy. Be aware
that the total ACL length includes the port ACL in fallback profile and the dACL.
When designing dynamic ACLs, Cisco recommends using the shortest and simplest possible format. Using a
simple ACL optimizes TCAM resources and makes ACL-based authorization more manageable.
After the dACL has been applied, the switch will display a customizable Authentication Success page and then
redirect the user’s browser to the original URL that the user was trying to access before WebAuth occurred.
Session Termination
A WebAuth session can be terminated in four ways. After a session is terminated, the user must reauthenticate
before being granted expanded access to the network again.
Init-State Timer
If the user fails to enter valid credentials in the login page before the IP admission init-state timer expires, the
session state will be cleared. As described in Section 2.2.3, session state will need to be reestablished by ARP or
DHCP traffic from the host before WebAuth can be attempted again. Barring new DHCP or ARP traffic from the host
itself, the WebAuth session state will be reinstated by the first IP device tracking probe following the init-state
timeout. By default, IP device tracking probes are sent every 30 seconds.
Link Down
The most direct way to terminate a WebAuth session is to unplug the host. When the link state of the port goes
down, the switch completely clears the session. If the original host (or a new host) plugs in, the switch will restart
authentication from the beginning, starting with IEEE 802.1X and MAB if so configured.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 13 of 46
Application Note
Inactivity Timer
The third way to terminate a WebAuth session is using an inactivity timer. The inactivity timer for WebAuth is
controlled by the IP device tracking probe interval and retry count.
Note: RADIUS attribute 28 [Inactivity Timer] cannot be used to change the inactivity timer for WebAuth.
IP device tracking maintains a table of known devices and periodically probes those devices to verify that they are
still active. If no response is received, the switch will repeat the probe until the configured count is reached. If all
probes go unanswered, the WebAuth session will be taken down. The switch will not restart IEEE 802.1X
authentication or MAB after an inactivity timeout, but the original host (or any new host ) will be required to retrigger
the session state and reauthenticate using WebAuth.
Note: Because the host is removed from the IP device tracking table after the inactivity timeout, no further probes
will be sent, and the inactive end host must send DHCP or ARP traffic to reinitiate session state.
An important application of the inactivity timer involves indirectly connected devices, such as a laptop connected
behind an IP phone or through a hub. Because the switch has no direct knowledge of the link state of the indirectly
connected device, it cannot terminate the session when that device unplugs. The best solution is to use the
intelligence of the intermediary device to alert the switch when the device unplugs. For example, Cisco IP Phones
and switches support the Cisco Discovery Protocol Second Port Status type and length value (TLV) that allows the
phone to communicate to the switch when the device behind the phone unplugs, enabling the switch to clear the
WebAuth session. For phones that do not support the Cisco Discovery Protocol Second Port Status TLV or for
unmanaged devices (such as hubs) that have no way of communicating link-state information, the only solution is
to use the IP device tracking–based inactivity timer. Without the inactivity timer, WebAuth sessions on indirectly
connected devices would be maintained indefinitely (or until the absolute timer expired).
If you want to increase the inactivity timer for WebAuth, Cisco recommends increasing the IP device tracking
probe count, not the probe interval, because the length of the IP device tracking probe interval can have a significant
effect on other aspects of the end-user experience. As discussed in Sections 2.2.7.1 and 2.3.5, IP device tracking
is responsible for initializing the session state after an init-state timeout and when the open-access feature is used.
Increasing the probe interval will also increase the maximum amount of time a user may wait to receive a login page.
Increasing the probe retry count will increase the overall inactivity timer without affecting the amount of time a user
may wait to receive a login page.
During the WebAuth session, all HTTP packets are sent to the CPU for processing. To prevent a malicious user
from exploiting this route to launch a denial-of-service (DoS) attack on the switch, an end host will be put in a
SERVICE_DENIED state after exceeding the maximum number of login attempts. By default, the user is allowed
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 14 of 46
Application Note
five login attempts before being locked out. By default, users who fail authentication five times are locked out for
2 minutes. A user who is locked out will receive a customizable Authentication Expired pop-up message.
To change the default behavior for failed login attempts (five attempts and a 2-minute lockout), enable the IP
admission watch list. If the IP admission watch list is enabled, an end host is added to the watch list if that user
fails to authenticate after the maximum number of login attempts. After the host’s IP address is on the watch list,
the switch will not intercept HTTP packets from that host or perform WebAuth processing until the expiry timer has
expired (default is 30 minutes). If the watch list is disabled, then the default behavior (five attempts maximum with a
2-minute service denial) will be restored.
Feature Interaction
WebAuth is fully compatible with MAB. In the event that a port is configured for IEEE 802.1X, MAB, and fallback
WebAuth, the port will first attempt to authenticate the user through IEEE 802.1X authentication. If IEEE 802.1X
authentication times out or fails, the switch will attempt MAB. If MAB fails, the switch will attempt WebAuth.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 15 of 46
Application Note
The flow chart in Figure 4 shows the interaction between IEEE 802.1X timeout, MAB, and WebAuth.
Guest VLAN
If both the Guest VLAN and WebAuth are configured on Cisco IOS Software platforms, the guest VLAN configuration
will be ignored, and the switch will fall back to WebAuth when IEEE 802.1X times out.
Auth-Fail VLAN
After an IEEE 802.1X authentication failure, the switch can be configured to deploy the auth-fail VLAN or proceed to
the next authentication method (MAB or WebAuth). In this sense, auth-fail VLAN and WebAuth are mutually
exclusive when IEEE 802.1X fails. However, it is possible to configure the auth-fail VLAN for IEEE 802.1X failures
(the client has a supplicant but does not have valid credentials) and still retain WebAuth for IEEE 802.1X timeouts
(the client has no supplicant).
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 16 of 46
Application Note
The auth-fail VLAN applies only to IEEE 802.1X failures. If WebAuth fails, the auth-fail VLAN is not applied. After a
failed WebAuth attempt, the user is allowed to retry WebAuth until the maximum number of login attempts is
reached. After that, the user will be denied access for a configurable amount of time as described in Section 2.2.8.
Inaccessible-Auth Bypass
Fallback WebAuth can be configured with inaccessible authentication (inaccessible-auth) bypass (also known
as critical authentication or AAA fail-open). If a port is configured for both inaccessible-auth bypass and fallback
WebAuth, then the final state of the port when the AAA server is unavailable will be determined by the timing of the
connectivity loss and when the switch learns that the AAA server has failed.
If the switch already knows that the AAA server has failed, the port will immediately be deployed for the critical VLAN
as soon as the link comes up. Since the switch has multiple mechanisms for learning that the AAA server has failed,
this outcome is the most likely.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 17 of 46
Application Note
If the switch determines that the AAA server has failed during an IEEE 802.1X or MAB authentication (for example,
if this is the first device to connect to the switch after connectivity has been lost), then the port will be moved to the
critical VLAN.
If the switch does not know that the AAA server has failed when the port falls back to WebAuth, the IEEE 802.1X
critical VLAN configuration has no effect. The port will be moved to the data VLAN with the preconfigured ACL in the
fallback profile. If a user attempts to use WebAuth under these conditions, an authentication failure will result, and
access to the port will continue to be restricted by the default-port ACL. To change the default behavior, use the
WebAuth AAA fail policy. The AAA fail policy (which applies only to WebAuth, not IEEE 802.1X or MAB) enables a
user to connect by applying a specified policy (in effect, a new ACL) if the AAA server is not available. When the
AAA server returns, the AAA fail policy is removed, and the end user is required to authenticate again.
Figure 6 illustrates the interaction of fallback WebAuth with inaccessible-auth bypass and AAA fail policy when the
switch is not already aware that the AAA server has failed.
Port ACLs
When both a statically configured port ACL and a WebAuth fallback profile ACL are configured on the same port, the
statically configured port ACL will govern access to the port. The ACL in the fallback profile will be ignored Therefore,
make sure that the statically configured port ACL allows at least enough access (DNS and DHCP) for the WebAuth
process to be performed.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 18 of 46
Application Note
Open Access
WebAuth is compatible with the open-access feature as long as some additional design considerations are
addressed.
By default, IEEE 802.1X drops all traffic prior to a successful IEEE 802.1X (or MAB) authentication or WebAuth
initialization. This is sometimes referred to as closed mode. Cisco switches can be configured for open-access
mode, which allows all traffic prior to successful authentication.
The first design consideration is the value of the IEEE 802.1X timeout that precedes WebAuth. Open-access mode
allows configurable traffic types (such as DHCP) before IEEE 802.1X times out, which allows the DHCP client to
acquire an IP address before IEEE 802.1X times out. However, even though the client has an IP address, the port
will not begin the WebAuth process before IEEE 802.1X times out. Since WebAuth has not yet started redirecting
traffic to the login page, the web traffic is subject to the port ACL, which will most likely deny all web traffic. So if an
end user opens a browser before IEEE 802.1X times out, the end user will experience a Server Not Found error.
Therefore, in open-access mode, Cisco recommends setting the IEEE 802.1X timers to account for the
amount of time it will usually take for an end user to connect to the network and open a browser.
The second design consideration when using WebAuth with open-access mode is how the session state will be
triggered. As discussed in Section 2.2.3, the WebAuth session state is triggered when the switch detects DHCP or
ARP traffic from the host. In the default closed mode, the host requests an address and ARP for its default gateway
only after IEEE 802.1X has timed out or failed and the port has been opened for limited access for WebAuth. Prior to
falling back to WebAuth, a port in closed mode drops all traffic, including DHCP and ARP traffic. In open-access
mode, however, the port may allow DHCP and ARP traffic while IEEE 802.1X is still running. Thus, a host may have
its address and the MAC address of the default gateway long before WebAuth begins. So when the port does fall
back to WebAuth, there is no further DHCP or ARP traffic from the host to trigger session state.
The mechanism that helps ensure session state initialization in open-access mode is IP device tracking. IP device
tracking maintains a table of known devices and periodically probes those devices using ARP to verify that they are
still active. In the absence of DHCP or ARP traffic from the host, WebAuth session state will be triggered by the first
IP device tracking probe following the fallback to WebAuth. By default, IP device tracking probes are sent every 30
seconds. Therefore, in open-access mode, a user might wait up to 30 seconds (in addition to the time it takes IEEE
802.1X to time out) before the session state is triggered and the switch sends back the login page.
Host Modes
The host mode on a port determines the number and type of devices allowed on a port. WebAuth adheres to the
host mode configured on the port. With the exception of multihost mode, all host modes are compatible with
WebAuth with some design considerations.
Single-Host Mode
WebAuth is compatible with single-host mode.
In single-host mode, only a single MAC or IP address can be authenticated (by any method) on a port. If a different
MAC address is detected on the port after a host has authenticated with IEEE 802.1X, MAB, or WebAuth, then a
security violation will be triggered on the port.
See Section 2.3.7.5 for an important consideration when using multi-auth mode with WebAuth.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 19 of 46
Application Note
Multihost Mode
Since WebAuth uses user-based ACL policies, multihost mode is not compatible with WebAuth
Suppose there are multiple devices on the same port: one that authenticates using WebAuth, and one that
authenticates using IEEE 802.1X (or MAB). If the WebAuth device authenticates first, then the port ACL in the
fallback profile will be applied, and the dACL for both the WebAuth device and the IEEE 802.1X device will be
successfully applied. However, if the IEEE 802.1X device authenticates before the WebAuth fallback profile has
been applied, there will be no port ACL. This behavior is a problem because the current implementation of dACLs
requires a static port ACL on the port before any dACL can be applied. Therefore, in this situation, a dACL applied
as a result of an IEEE 802.1X (or MAB) authentication could trigger an authorization failure.
This problem is exacerbated in IP telephony environments because the IP phone will often be authenticated by IEEE
802.1X or MAB before the device behind the phone begins the WebAuth process.
To avoid this race condition, statically configure a port ACL on the port (not in the fallback profile). With a static ACL
on the port, there will always be a port ACL when any device authenticates by any method. This configuration will
prevent any authorization failures caused by downloading of a dACL when no port ACL is present.
IP Telephony
The ACLs that are used to restrict access before and after WebAuth are applied at the port level. This means that
the data and voice VLANs are both subject to the ACL. If the phone uses Cisco Discovery Protocol to bypass
authentication, it cannot download a dACL to open the port ACL for full access. Therefore, ports that are configured
to allow phones using Cisco Discovery Protocol Bypass should not be configured for WebAuth.
Multidomain Authentication
Cisco IOS Software WebAuth is compatible with IP telephony when multidomain authentication host mode is used.
Unlike Cisco Discovery Protocol Bypass, which allows the phone free access to the network without authentication,
multidomain authentication requires the phone to authenticate (using IEEE 802.1X or MAB). Because the phone
authenticates, it can download its own dACL to access the port.
See Section 2.3.7.5 for an important consideration when using multidomain authentication mode with WebAuth.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 20 of 46
Application Note
Cisco IP Phones and switches support a feature called Cisco Discovery Protocol Second Port Status TLV that allows
the phone to communicate with the switch when the device behind the phone unplugs, enabling the switch to clear
the WebAuth session. For phones that do not support Cisco Discovery Protocol Second Port Status, the only
solution is to use the inactivity timer, as discussed in the Inactivity Timer section.
RADIUS Accounting
WebAuth supports RADIUS accounting, although the message format will not be identical to that generated for a
session authenticated by IEEE 802.1X or MAB. For specific details, see Section 6. In addition, a WebAuth session
will have two start records: one when the switch opens the port to begin WebAuth, and another when the user has
successfully entered a username and password.
Port Security
In general, Cisco does not recommend enabling port security when IEEE 802.1X is also enabled. Therefore, port
security is not a recommended best practice when deploying WebAuth as a fallback mechanism for IEEE 802.1X.
DHCP Snooping
DHCP snooping is fully compatible with WebAuth and should be enabled as a best practice.
IP Source Guard
There are platform-dependent considerations when deploying IP source guard with the dACLs that are used
for WebAuth. Check the platform-specific release notes before enabling IP source guard with WebAuth.
Deployment Scenarios
When deploying IEEE 802.1X, Cisco recommends a phased deployment model that gradually deploys identity-
based access control to the network. The three scenarios for phased deployment are monitor mode, low-impact
mode, and high-security mode. The interaction of WebAuth with each scenario is described in the following sections.
Monitor Mode
WebAuth is not recommended in monitor mode.
The primary goal of monitor mode is to enable authentication without imposing any form of access control.
This approach allows network administrators to see who is on the network and prepare for access control in
a later phase without affecting end users in any way.
If WebAuth is enabled, end users that fail or timeout IEEE 802.1X authentication and MAB will have their HTTP
traffic intercepted and will be forced to enter credentials on the web login page (although all other forms of non-HTTP
network access will still be permitted). This effect on end users contradicts one of the primary goals of monitor mode,
so WebAuth should not be enabled in this mode.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 21 of 46
Application Note
Low-Impact Mode
WebAuth is supported in low-impact mode as long as the following feature interactions are understood:
● Low-impact mode uses the open-access feature. All the design considerations for open-access
mode described in Section 2.3.6 must be addressed.
● Low-impact mode uses multidomain authentication for IP telephony environments. All the design
considerations for multidomain authentication described in Section 2.3.7.3 must be addressed.
● Low-impact mode uses statically configured port ACLs. All the design considerations for port ACLs
described in Section 2.3.5 must be addressed.
High-Security Mode
WebAuth is supported in high-security mode as long as the following feature interactions are understood:
High-security mode uses multidomain authentication for IP telephony environments. All the design considerations
for multidomain authentication described in Section 2.3.7.3 must be addressed.
Determine what use cases WebAuth will address and what credential repositories will be checked. Section Step 5: Authentication Server
Authorizes User
Decide when WebAuth will be invoked: after IEEE 802.1X timeout and MAB failure, after IEEE 802.1X Sections Step 1: Before Web
authentication, or both. Authentication, IEEE 802.1X Times
Out or Fails and Auth-Fail VLAN
Make sure that IEEE 802.1X–capable devices are enabled for EAPoL-Start. Section Step 1: Before Web
Authentication, IEEE 802.1X Times
Out or Fails
Determine whether the default port VLAN can be used for IEEE 802.1X and MAB or just WebAuth. Section Step 2: Switch Opens Port for
Limited Access
If HTTPS is enabled, decide whether to use a self-signed certificate or third-party certificate on the switch. Section Step 4: User Gets Login Page
Educate users about the need to accept the certificate if prompted by the browser.
Verify that the total ACL length (port ACL + dACL) for the expected percentage of ports that will use WebAuth Section Step 6: Switch Applies New
does not exceed the TCAM limitations of your access switches. Policy and Redirects Page
Enable MAB for managed devices that do not support IEEE 802.1X or WebAuth. Section MAC Authentication Bypass
Determine whether the existing switch configuration will need modification to support WebAuth: Sections Step 5: Authentication Server
● Default AAA login group Authorizes User and Cisco Catalyst
Integrated Security Features
● Cisco Catalyst integrated security features
Consider the following when multiple devices may be connected to a single port: Sections ACL Race Condition for
● A static port ACL must be configured on all ports. Multi-Auth and Multidomain Host
Modes, Multi-Auth Host Mode and
● Every device must download a dACL regardless of authentication mechanism (IEEE 802.1X, MAB, or Inactivity Timer
WebAuth).
● Plan for session termination for indirectly connected devices.
Consider the following for customized pages: Section Additional Information About
● Plan for distribution and maintenance of custom pages for access switches. Customized Webpages
● Develop content to fit page-size and formatting restrictions
● Modify port ACLs for external links or images; make sure that external content is accessible on a port
other than TCP ports 80 and 443.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 22 of 46
Application Note
All features discussed in this section are required to configure basic WebAuth. Optional features and optimizations
are discussed in later sections.
4. Specify the name, IP address, and RADIUS shared secret for this switch. Optionally, add Description, Location,
and Device Type information.
Note: The RADIUS shared secret must match the key configured on the switch. The IP address must match the
IP address of the RADIUS source interface that the switch uses to source RADIUS packets for Cisco Secure ACS.
See Section 3.5 for information about how to configure the key and the RADIUS source interface on the switch.
5. Click Submit.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 23 of 46
Application Note
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 24 of 46
Application Note
4. Enter a name for this dACL and specify the ACL elements. A very simple example (granting full network access)
is shown. The syntax for the ACL must conform to the requirements for extended Layer 3 ACLs in Cisco IOS
Software with the additional requirement that the source of the ACL must be “any.”
Tip: Type carefully. Cisco Secure ACS does not perform any syntax checking, but the switch will fail authorization if
the ACL is not properly specified. To the end user, this will appear as a failed authentication.
Note: The switch will replace the source “any” in each ACL element with the IP address of the end host when it
applies the dACL to the port.
5. Click Submit.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 25 of 46
Application Note
6. Click the RADIUS Attributes tab. For Dictionary Type, choose RADIUS-Cisco. For RADIUS Attribute,
choose cisco-av-pair. For Attribute Value, choose Static and type priv-lvl=15 in the text box. Click Add.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 26 of 46
Application Note
Note: The cisco-av-pair attribute priv-lvl=15 is a special attribute that is required to enable the switch to apply
the dACL. Without this attribute, the switch will fail authorization, and the WebAuth user will not get access to
the network.
7. Click Submit.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 27 of 46
Application Note
4. In Step 1 — General, specify a name for this service. Under Access Service Policy Structure, select User
selected policy structure. For Access Service Type, choose Network Access. Under Policy Structure,
select Identity and Authorization. Click Next. The following window appears:
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 28 of 46
Application Note
5. In Step 2 — Allowed Protocols, deselect Process Host Lookup. Select Allow PAP/ASCII. Click Finish.
You will be prompted to modify the service selection policy. Click No.
6. In the left navigation column, expand Access Policies to list the access service that was just created.
Expand Web Auth Access Service and click Identity. The following window appears:
7. In the Web Auth Access Service Identity policy window, select Select one result. For Identity Source, choose
Internal Users. Click Save Changes.
8. In the left navigation column, expand Access Policies to list the access service that was just created. Expand
Web Auth Access Service and click Authorization. Scroll to the bottom of the Network Access Authorization
Policy rule table and click the Default rule.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 29 of 46
Application Note
9. An Authorization Profiles dialog box appears. Choose the authorization profile that was created in Section 3.4.
Click OK.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 30 of 46
Application Note
4. Specify a name for the rule (Web Auth Service Select is used here).
5. Under Conditions, select Compound Condition.
6. Under Dictionary, choose RADIUS-IETF.
7. Under Attribute, select Service-Type.
8. Under Operator, choose match.
9. Under Value, select Outbound.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 31 of 46
Application Note
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 32 of 46
Application Note
aaa authentication dot1x default group Specifies the authentication method for IEEE 802.1X
{radius | group-name}
• radius: Uses the list of all RADIUS servers configured with the radius-server host command
• group-name: Uses a subset of RADIUS servers as defined by the aaa group server radius group-
name argument
aaa authorization network default group Specifies the authorization method for IEEE 802.1X; this command allows the switch to enforce
{radius | group-name} authorization policies sent by the AAA server
• radius: Uses the list of all RADIUS servers configured with the radius-server host command
• group-name: Uses a subset of RADIUS servers as defined by the aaa group server radius group-
name argument
aaa accounting dot1x default start-stop Specifies the accounting method for IEEE 802.1X
group {radius | group-name}
• radius: Uses the list of all RADIUS servers configured with the radius-server host command
• group-name: Uses a subset of RADIUS servers as defined by the aaa group server radius group-
name argument
ip radius source-interface subinterface- Specifies a source interface for RADIUS traffic sourced from the switch
name If there is more than one Layer 3 interface on the switch, use this command to help ensure that the
switch sends RADIUS traffic with the same source address used to define the switch in the Cisco
Secure ACS configuration.
Cisco IOS Software IEEE 802.1X Global Settings Prior to Configuring WebAuth
Cisco IOS Software IEEE 802.1X Interface Settings Prior to Configuring WebAuth
authentication port-control auto Enables port-based authentication and causes the port to begin in the unauthorized state
dot1x pae authenticator Configures the interface to act only as an IEEE 802.1X authenticator and ignore any messages meant
for a supplicant
dot1x timeout tx-period seconds Sets the number of seconds that the switch waits for a response to an EAPoL Identity-Request packet
before retransmitting the request; the default is 30
The total value of the IEEE 802.1X timeout is determined by a combination of tx-period and max-reauth-
req (see below).
dot1x max-reauth-req count Specifies the number of times EAPoL Identity-Request packets are retransmitted (if lost or not replied
to); the default value is 2
To calculate the total timeout period when there is no IEEE 802.1X supplicant present, use the following
formula:
tx-period * (max-reauth-req +1).
The following example shows a basic IEEE 802.1X configuration that should be configured prior to enabling
WebAuth. The IEEE 802.1X timeout using this configuration will be 15 seconds: tx-period * (max-reauth-req +1) = 5 *
3 = 15 seconds.
aaa new-model
aaa authentication dot1x default group radius
aaa authorization network default group radius
aaa accounting dot1x default start-stop group radius
!
dot1x system-auth-control
!
interface Gigabit 1/0/5
switchport mode access
switchport access vlan 30
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 33 of 46
Application Note
Note: For detailed information about configuring IEEE 802.1X on Cisco IOS Software, see the Identity-Based
Networking Services (IBNS) configuration guide at http://www.cisco.com/go/ibns.
aaa authentication login default group Specifies the authentication method for WebAuth
{radius | group-name}
• radius: Uses the list of all RADIUS servers configured with the radius-server host command
• group-name: Uses a subset of RADIUS servers as defined by the aaa group server radius group-
name argument
aaa authorization auth-proxy default Specifies the authorization method for WebAuth; this command allows the switch to enforce
group {radius | group-name} authorization policies (for example, the dACL) sent by the AAA server
• radius: Uses the list of all RADIUS servers configured with the radius-server host command
• group-name: Uses a subset of RADIUS servers as defined by the aaa group server radius group-
name argument
aaa accounting auth-proxy default start- Specifies the accounting method for WebAuth
stop group {radius | group-name}
• radius: Uses the list of all RADIUS servers configured with the radius-server host command
• group-name: Uses a subset of RADIUS servers as defined by the aaa group server radius group-
name argument
radius-server vsa send authentication Enables the use of vendor-specific attributes. This command enables the switch to request
downloadable ACLs from the AAA server.
The following example shows the mandatory basic AAA configuration for WebAuth:
aaa authentication login default group radius
aaa authorization auth-proxy default group radius
aaa accounting auth-proxy default start-stop group radius
radius-server vsa send authentication
Note: The current implementation of WebAuth requires the use of the default login authentication group as
RADIUS. As soon as it is configured, the default login group will apply to all login attempts for the switch, including
virtual teletype terminal (VTY) and console access. Everyone attempting to use telnet to access the switch or to
access the console will be required to authenticate through RADIUS. To prevent the default AAA login configuration
from applying to the console and VTY sessions, define a nondefault login group and apply this to the VTYs and the
console. The following example configures a group named “none” that requires no authentication on VTYs or the
console.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 34 of 46
Application Note
ip device tracking Enables device tracking; the device tracking feature detects the presence of a host by monitoring
DHCP and ARP traffic
ip device tracking
ip http secure-server Enables the HTTPS server on the switch (crypto images only); in images with crypto support, the switch
can perform WebAuth processing for HTTPS requests as well as HTTP
The following example shows how to enable both the HTTP and HTTPS servers on the switch:
ip http server
ip http secure-server
The WebAuth fallback includes an IP admission rule and an access list (Table 7).
fallback profile fallback-profile Creates a fallback profile; this profile must include an IP admission rule and the ACL
ip access-group access-list-name in
ip admission admission-name
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 35 of 46
Application Note
The following example shows how to assign a WebAuth fallback profile to an interface:
aaa new-model
!
aaa authentication dot1x default group radius
aaa authentication login default group radius
aaa authorization network default group radius
aaa authorization auth-proxy default group radius
aaa accounting dot1x default start-stop group radius
aaa accounting auth-proxy default start-stop group radius
!
ip device tracking
ip admission name IP_ADMIN_RULE proxy http
!
fallback profile WEB_AUTH_PROFILE
ip access-group PRE_WEBAUTH_POLICY in
ip admission IP_ADMIN_RULE
!
dot1x system-auth-control
!
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 36 of 46
Application Note
The default init-state timer is 2 minutes. To change the init-state timer, use the following global configuration
(where the timer is specified in minutes):
ip admission init-state-time 5
By default, the switch sends IP device tracking probes at intervals of 30 seconds and declares the host inactive after
three unanswered probes. To change these defaults, use the following commands (where the interval is given in
seconds):
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 37 of 46
Application Note
4. Under Reauthentication, set Reauthentication Timer to Static. For Value, enter the desired length of the
WebAuth session. Click Submit.
Note: The Termination-Action attribute (RADIUS attribute 29) has no effect on WebAuth.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 38 of 46
Application Note
Suppose your login page includes a link to a company logo stored on another server:
As discussed in Section 2.2.4.1, the destination port in the URL must be something other than TCP port 80 or 443.
In addition, the ACL in the fallback profile must allow traffic to the URL. In the preceding example, the URL of the
external image has been specified as port 8080 (assuming that the HTTP server on 10.100.10.119 is listening on
that port). Therefore, the preconfigured ACL must be modified to allow access to 10.100.10.119 port 8080:
1. Create an access list that should be applied when the AAA server is unavailable. In the following example,
the ACL will grant complete access to the network:
3. Modify the IP admission rule to call this identity policy when AAA is down:
ip admission name IP_ADMIN_RULE proxy http event timeout aaa policy identity
FAILOPEN
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 39 of 46
Application Note
To change the amount of time that users on the watch list are denied access to WebAuth, use the following
command (where the expiry time is specified in minutes):
To manually add or delete addresses from the watch list, use the following commands:
To manually change the number of times that a user is allowed to attempt authentication before being added to the
watch list, use the following command:
ip admission max-login-attempts 3
To see active entries in the watch list, use the following command:
1. Verify that IEEE 802.1X authentication has timed out and that the port has been authorized for the default data
VLAN with the following commands:
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 40 of 46
Application Note
Note: The runnable method list should show webauth Authc Success. This means that IEEE 802.1X has
passed control to WebAuth. It does not indicate the state of WebAuth. The show ip admission cache command
(that follows) indicates the state of WebAuth.
2. Verify that device tracking is enabled and an entry for the host exists in the device-tracking table. This entry
indicates that the switch has detected ARP or DHCP traffic from the host. The host should be in the ACTIVE
state.
3. Verify that initial IP admission session state exists for the end host. The INIT state indicates that the switch is
ready to receive credentials from the host.
4. After the end host enters valid credentials, verify that the IP admission state transitions to established (ESTAB).
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 41 of 46
Application Note
5. Use the reporting capabilities on Cisco Secure ACS to verify the session details:
End user does not get IP address ● Preconfigured ACL in fallback profile does not ● Permit DHCP in the fallback profile.
permit DHCP. ● Decrease the dot1x timeout tx-period so that
● End user’s DHCP client times out before fallback occurs before DHCP times out.
IEEE 802.1X falls back to WebAuth.
End User Has IP Address but Does ● IP device tracking is not enabled. ● Enable IP device tracking.
not Receive Login Page ● IP device tracking interval is too long. ● Decrease the IP device tracking interval.
End User Submits Valid Credentials ● Cisco Secure ACS does not send priv-lvl=15 ● Add priv-lvl=15 to the WebAuth
but Does Not Gain Network Access attribute in Access-Accept message. authorization profile.
● No preconfigured ACL exists in the ● Add an ACL to the fallback profile.
fallback profile. ● Correct the dACL.
● Incorrect syntax is used in the dACL.
Conclusion
WebAuth enables network administrators to control network access and enforce policy based on the authenticated
identity of a user. WebAuth helps prevent unauthorized access yet still enables network access for end hosts that
do not support IEEE 802.1X authentication. When combined with other security elements such as infrastructure
protection, threat identification and mitigation, and secure connectivity, WebAuth increases the ability of the network
to defend itself.
Appendix A: References
This section provides a list of references.
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 42 of 46
Application Note
Login Page
<HTML><HEAD><TITLE>Authentication Proxy Login Page</TITLE>
var pxypromptwindow1;
function doreload() {
if(pxypromptwindow1.closed)
{window.location.reload(true);
function submitreload() {
if(pxysubmitted == false)
{pxypromptwindow1=window.open('',
'pxywindow1','resizable=no,width=300,height=300,scrollbars=yes');reloadtimeout=setTimeout("doreload()",
1000);pxysubmitted = true;return true;
} else {
return false;
} // -->
</script> </HEAD>
<H1> <BR><BR>
<BR><BR>
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 43 of 46
Application Note
</H1></FORM></script></BODY></HTML>
Expired Page
<html>
<head>
</head>
<body>
<noscript>
</noscript>
<h1 id="expire">Expired</h1>
</body>
</html>
<head>
</head>
<body>
<noscript>
</noscript>
<h1 id="failure">Failed</h1>
</body>
</html>
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 44 of 46
Application Note
<head>
</head>
<body>
<script type="text/javascript">
var q = window.location.search;
q = q.replace('?','');
q = q.split('&');
for(var i in q) {
if (aux[0] == 'redirect_url') {
break;
if (site) {
window.location.replace(unescape(site));
</script>
</body>
</html>
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 45 of 46
Application Note
Appendix C: Considerations
CSCsz24025: IP address sent instead of MAC address in RADIUS request for WebAuth
CSCsv04686: Account termination cause is not sent when the WebAuth session is cleared
© 2010 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 46 of 46