Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
Corporate Headquarters
Cisco Systems, Inc.
170 West Tasman Drive
San Jose, CA 95134-1706
USA
http://www.cisco.com
Tel: 408 526-4000
800 553-NETS (6387)
Fax: 408 526-4100
THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT
SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE
OR LIMITED WARRANTY, CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY.
The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB’s public
domain version of the UNIX operating system. All rights reserved. Copyright © 1981, Regents of the University of California.
NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED “AS IS” WITH
ALL FAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT
LIMITATION, THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF
DEALING, USAGE, OR TRADE PRACTICE.
IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING,
WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO
OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
CCSP, the Cisco Square Bridge logo, Follow Me Browsing, and StackWise are trademarks of Cisco Systems, Inc.; Changing the Way We Work, Live, Play, and Learn, and iQuick
Study are service marks of Cisco Systems, Inc.; and Access Registrar, Aironet, ASIST, BPX, Catalyst, CCDA, CCDP, CCIE, CCIP, CCNA, CCNP, Cisco, the Cisco Certified
Internetwork Expert logo, Cisco IOS, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Cisco Unity, Empowering the Internet Generation,
Enterprise/Solver, EtherChannel, EtherFast, EtherSwitch, Fast Step, FormShare, GigaDrive, GigaStack, HomeLink, Internet Quotient, IOS, IP/TV, iQ Expertise, the iQ logo, iQ
Net Readiness Scorecard, LightStream, Linksys, MeetingPlace, MGX, the Networkers logo, Networking Academy, Network Registrar, Packet, PIX, Post-Routing, Pre-Routing,
ProConnect, RateMUX, ScriptShare, SlideCast, SMARTnet, StrataView Plus, SwitchProbe, TeleRouter, The Fastest Way to Increase Your Internet Quotient, TransPath, and VCO
are registered trademarks of Cisco Systems, Inc. and/or its affiliates in the United States and certain other countries.
All other trademarks mentioned in this document or Website are the property of their respective owners. The use of the word partner does not imply a partnership relationship
between Cisco and any other company. (0501R)
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
Copyright © 2006 Cisco Systems, Inc. All rights reserved.
CONTENTS
Audience xxiii
Objectives xxiii
Organization xxiv
CHAPTER 2 Configuring the Switch for the Firewall Services Module 2-1
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 iii
Contents
CHAPTER 3 Connecting to the Firewall Services Module and Managing the Configuration 3-1
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
iv OL-8123-01
Contents
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 v
Contents
How Data Moves Through the FWSM in Routed Firewall Mode 5-3
An Inside User Visits a Web Server 5-3
An Outside User Visits a Web Server on the DMZ 5-4
An Inside User Visits a Web Server on the DMZ 5-5
An Outside User Attempts to Access an Inside Host 5-6
A DMZ User Attempts to Access an Inside Host 5-7
Transparent Mode Overview 5-8
Transparent Firewall Network 5-8
Bridge Groups 5-8
Allowing Layer 3 Traffic 5-9
Allowed MAC Addresses 5-9
Passing Traffic Not Allowed in Routed Mode 5-9
MAC Address vs. Route Lookups 5-9
Using the Transparent Firewall in Your Network 5-10
Transparent Firewall Guidelines 5-11
Unsupported Features in Transparent Mode 5-12
How Data Moves Through the Transparent Firewall 5-13
An Inside User Visits a Web Server 5-14
An Outside User Visits a Web Server on the Inside Network 5-15
An Outside User Attempts to Access an Inside Host 5-16
Setting Transparent or Routed Firewall Mode 5-16
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
vi OL-8123-01
Contents
Configuring Connection Limits for Transparent Firewall Mode and Non-NAT Configurations 7-5
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 vii
Contents
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
viii OL-8123-01
Contents
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 ix
Contents
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
x OL-8123-01
Contents
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 xi
Contents
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
xii OL-8123-01
Contents
Using MAC Addresses to Exempt Traffic from Authentication and Authorization 15-11
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 xiii
Contents
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
xiv OL-8123-01
Contents
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 xv
Contents
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
xvi OL-8123-01
Contents
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 xvii
Contents
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
xviii OL-8123-01
Contents
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 xix
Contents
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
xx OL-8123-01
Contents
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 xxi
Contents
GLOSSARY
INDEX
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
xxii OL-8123-01
About This Guide
This preface describes the objectives and organization of this document and explains how to find
additional information on related products and services.
This preface includes the following sections:
• Audience, page xxiii
• Objectives, page xxiii
• Organization, page xxiv
• Document Conventions, page xxv
• Related Documentation, page xxvi
• Obtaining Documentation and Submitting a Service Request, page xxvi
Audience
This guide is for network managers who perform any of the following tasks:
• Managing network security
• Installing and configuring firewalls
• Managing default and static routes, and TCP and UDP services
Objectives
This document contains instructions and procedures for configuring the Firewall Services Module
(FWSM) 3.1, a single-width services module supported on the Catalyst 6500 switch and the Cisco 7600
router, using the command-line interface. FWSM protects your network from unauthorized use. This
guide does not cover every feature, but describes only the most common configuration scenarios.
You can also configure and monitor the FWSM by using ASDM, a web-based GUI application. ASDM
includes configuration wizards to guide you through some common configuration scenarios, and online
Help for less common scenarios. For more information, see:
http://www.cisco.com/univercd/cc/td/doc/product/netsec/secmgmt/asdm/index.htm.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 xxiii
About This Guide
Organization
This document contains the following chapters:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
xxiv OL-8123-01
About This Guide
Document Conventions
The FWSM command syntax descriptions use the following conventions:
Command descriptions use these conventions:
• Braces ({ }) indicate a required choice.
• Square brackets ([ ]) indicate optional elements.
• Vertical bars ( | ) separate alternative, mutually exclusive elements.
• Boldface indicates commands and keywords that are entered literally as shown.
• Italics indicate arguments for which you supply values.
Examples use these conventions:
• Examples depict screen displays and the command line in screen font.
• Information you need to enter in examples is shown in boldface screen font.
• Variables for which you must supply a value are shown in italic screen font.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 xxv
About This Guide
• Examples might include output from different platforms; for example, you might not recognize an
interface type in an example because it is not available on your platform. Differences should be
minor.
Note Means reader take note. Notes contain helpful suggestions or references to material not covered in the
manual.
For information on modes, prompts, and syntax, see Appendix C “Using the Command-Line Interface.”
Related Documentation
For more information, refer to the following documentation:
• Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Command
Reference
• Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Logging
Configuration and System Log Messages
• Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Installation
Note
• Upgrading the Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module
to Release 3.1
• Release Notes for the Catalyst 6500 Series and Cisco 7600 Series Firewall Services Module,
Software Release 3.1
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
xxvi OL-8123-01
Quick Start Steps
The following sections describe the minimum configuration required for the FWSM in routed mode or
transparent mode:
• Routed Firewall Minimum Configuration Steps, page xxvii
• Transparent Firewall Minimum Configuration Steps, page xxviii
Task Description
Step 1 Assigning VLANs to the Firewall Services Module, page 2-2 On the switch, you need to assign VLANs to the
FWSM so that the FWSM can send and receive traffic
on the switch.
Step 2 (Might be required) Adding Switched Virtual Interfaces to If you want the MSFC to route between VLANs that
the MSFC, page 2-5 are assigned to the FWSM, complete this procedure.
Step 3 Connecting to the Firewall Services Module, page 3-1 From the switch CLI, you can session into the FWSM
to access the FWSM CLI.
Step 4 (Might be required; multiple context mode only) Enabling or If you want to use multiple context mode and your
Disabling Multiple Context Mode, page 4-9 FWSM is not already configured for it, or if you want
to change back to single mode, follow this procedure.
Step 5 (Multiple context mode only) Configuring a Security Add a security context.
Context, page 4-18
Step 6 (Multiple context mode only) Changing Between Contexts Because you must configure some settings in the
and the System Execution Space, page 4-22 system execution space and some settings within the
context, you need to know how to switch between
contexts and the system execution space.
Step 7 Configuring Interfaces for Routed Firewall Mode, page 6-2 For each VLAN interface, you must set a name (such
as inside or outside), a security level, and an IP
address.
Step 8 Configuring a Default Route, page 8-4 Create a default route to an upstream router.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 xxvii
Quick Start Steps
Task Description
Step 9 Configure routing using one of these methods: In multiple context mode, static routing is the only
• Configuring a Static Route, page 8-3
routing method supported. In single mode, you have
a choice of static, RIP, or OSPF. RIP support is for
• (Single context mode only) Configuring OSPF, page 8-4 passive mode only.
• (Single context mode only) Configuring RIP, page 8-18
Step 10 (Might be required) Use one or more of these NAT methods: Configure NAT if you use private address, or want the
• Using Dynamic NAT and PAT, page 12-17
extra security.
Task Description
Step 1 Assigning VLANs to the Firewall Services Module, page 2-2 On the switch, you need to assign VLANs to the
FWSM so that the FWSM can send and receive traffic
on the switch.
Step 2 (Might be required) Adding Switched Virtual Interfaces to If you want the MSFC to route between VLANs that
the MSFC, page 2-5 are assigned to the FWSM, complete this procedure.
Step 3 Connecting to the Firewall Services Module, page 3-1 From the switch CLI, you can session into the FWSM
to access the FWSM CLI.
Step 4 (Might be required; multiple context mode only) Enabling or If you want to use multiple context mode and your
Disabling Multiple Context Mode, page 4-9 FWSM is not already configured for it, or if you want
to change back to single mode, follow this procedure.
Step 5 (Multiple context mode only) Configuring a Security Add a security context.
Context, page 4-18
Step 6 (Multiple context mode only) Changing Between Contexts Because you must configure some settings in the
and the System Execution Space, page 4-22 system execution space and some settings within the
context, you need to know how to switch between
contexts and the system execution space.
Step 7 Setting Transparent or Routed Firewall Mode, page 5-16 Before you configure any settings, you must set the
firewall mode to transparent mode. Changing the
mode clears your configuration. In multiple context
mode, set the mode in each context.
Step 8 Configuring Transparent Firewall Interface Parameters, For each VLAN interface, you must set a name (such
page 6-3 as inside or outside), a security level, and a bridge
group.
Step 9 Assigning an IP Address to a Bridge Group, page 6-5 Assign an IP address to each bridge group.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
xxviii OL-8123-01
Quick Start Steps
Task Description
Step 10 Configuring a Default Route, page 8-4 Create a default route to an upstream router for
returning management traffic.
Step 11 Adding an Extended ACE, page 10-7 Before any traffic can go through the FWSM, you
must create an access list that permits traffic.
Step 12 Applying an Access List to an Interface, page 11-4 Apply the access list to an interface.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 xxix
Quick Start Steps
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
xxx OL-8123-01
C H A P T E R 1
Introduction to the Firewall Services Module
The FWSM is a high-performance, space-saving, stateful firewall module that installs in the
Catalyst 6500 series switches and the Cisco 7600 series routers.
Firewalls protect inside networks from unauthorized access by users on an outside network. The firewall
can also protect inside networks from each other, for example, by keeping a human resources network
separate from a user network. If you have network resources that need to be available to an outside user,
such as a web or FTP server, you can place these resources on a separate network behind the firewall,
called a demilitarized zone (DMZ). The firewall allows limited access to the DMZ, but because the DMZ
includes only the public servers, an attack there affects only the servers and does not affect the other
inside networks. You can also control when inside users access outside networks (for example, access to
the Internet), by allowing only certain addresses out, by requiring authentication or authorization, or by
coordinating with an external URL filtering server.
The FWSM includes many advanced features, such as multiple security contexts (similar to virtualized
firewalls), transparent (Layer 2) firewall or routed (Layer 3) firewall operation, hundreds of interfaces,
and many more features.
When discussing networks connected to a firewall, the outside network is in front of the firewall, the
inside network is protected and behind the firewall, and a DMZ, while behind the firewall, allows limited
access to outside users. Because the FWSM lets you configure many interfaces with varied security
policies, including many inside interfaces, many DMZs, and even many outside interfaces if desired,
these terms are used in a general sense only.
This chapter includes the following sections:
• Security Policy Overview, page 1-1
• How the Firewall Services Module Works with the Switch, page 1-3
• Firewall Mode Overview, page 1-5
• Stateful Inspection Overview, page 1-6
• Security Context Overview, page 1-7
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 1-1
Chapter 1 Introduction to the Firewall Services Module
Security Policy Overview
Applying NAT
Some of the benefits of NAT include the following:
• You can use private addresses on your inside networks. Private addresses are not routable on the
Internet.
• NAT hides the local addresses from other networks, so attackers cannot learn the real address of a
host.
• NAT can resolve IP routing problems by supporting overlapping IP addresses.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
1-2 OL-8123-01
Chapter 1 Introduction to the Firewall Services Module
How the Firewall Services Module Works with the Switch
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 1-3
Chapter 1 Introduction to the Firewall Services Module
How the Firewall Services Module Works with the Switch
Internet Internet
MSFC
FWSM
VLAN 200
VLAN 201
FWSM
MSFC
Inside HR Inside HR
VLAN 302 VLAN 202
92881
DMZ DMZ
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
1-4 OL-8123-01
Chapter 1 Introduction to the Firewall Services Module
Firewall Mode Overview
For multiple context mode, if you place the MSFC behind the FWSM, you should only connect it to a
single context. If you connect the MSFC to multiple contexts, the MSFC will route between the contexts,
which might not be your intention. The typical scenario for multiple contexts is to use the MSFC in front
of all the contexts to route between the Internet and the switched networks (see Figure 1-2).
Internet
VLAN 100
MSFC
VLAN 200
Admin
Context Context A Context B Context C
92882
Network Customer A Customer B Customer C
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 1-5
Chapter 1 Introduction to the Firewall Services Module
Stateful Inspection Overview
Note The first packet for a session cannot be comprised of fragments for a packet that is larger than
8500 Bytes. The session will be established, but only the first 8500 Bytes will be sent out.
Subsequent packets for this session are not affected by this limitation.
Note The FWSM performs session management path and fast path processing on three specialized
networking processors. The control plane path processing is performed in a general-purpose
processor that also handles traffic directed to the FWSM and configuration and management
tasks.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
1-6 OL-8123-01
Chapter 1 Introduction to the Firewall Services Module
Security Context Overview
Some established session packets must continue to go through the session management path or the
control plane path. Packets that go through the session management path include HTTP packets that
require inspection or content filtering. Packets that go through the control plane path include the
control packets for protocols that require Layer 7 inspection.
Note For QoS compatibility, the FWSM preserves the DSCP bits for all traffic that passes through the FWSM.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 1-7
Chapter 1 Introduction to the Firewall Services Module
Security Context Overview
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
1-8 OL-8123-01
C H A P T E R 2
Configuring the Switch for the Firewall Services
Module
This chapter describes how to configure the Catalyst 6500 series switch or the Cisco 7600 series router
for use with the FWSM. Before completing the procedures in this chapter, configure the basic properties
of your switch, including assigning VLANs to interfaces, according to the documentation that came with
your switch.
This chapter includes the following sections:
• Switch Overview, page 2-1
• Verifying the Module Installation, page 2-2
• Assigning VLANs to the Firewall Services Module, page 2-2
• Adding Switched Virtual Interfaces to the MSFC, page 2-5
• Customizing the FWSM Internal Interface, page 2-11
• Configuring the Switch for Failover, page 2-11
• Managing the Firewall Services Module Boot Partitions, page 2-12
Switch Overview
You can install the FWSM in the Catalyst 6500 series switches or the Cisco 7600 series routers. The
configuration of both series is identical, and the series are referred to generically in this guide as the
“switch.” The switch includes a switch (the supervisor engine) as well as a router (the MSFC).
The switch supports two software modes:
• Cisco IOS software on both the switch supervisor engine and the integrated MSFC router.
• Catalyst operating system software on the supervisor engine, and Cisco IOS software on the MSFC.
Both modes are described in this guide.
The FWSM runs its own operating system.
See the “Using the MSFC” section on page 1-4 for more information about the MSFC.
Note For Cisco IOS Version 12.2(18)SX6 and earlier, for each FWSM in a switch, the SPAN reflector feature
is enabled. This feature enables multicast traffic (and other traffic that requires central rewrite engine)
to be switched when coming from the FWSM. The SPAN reflector feature uses one SPAN session. To
disable this feature, enter the following command:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 2-1
Chapter 2 Configuring the Switch for the Firewall Services Module
Verifying the Module Installation
Note The show module command shows six ports for the FWSM; these are internal ports that are grouped
together as an EtherChannel. See the “Customizing the FWSM Internal Interface” section on page 2-11
for more information.
Note See the switch documentation for information about adding VLANs to the switch and assigning them to
switch ports.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
2-2 OL-8123-01
Chapter 2 Configuring the Switch for the Firewall Services Module
Assigning VLANs to the Firewall Services Module
VLAN Guidelines
See the following guidelines for using VLANs with the FWSM:
• You can use private VLANs with the FWSM. Assign the primary VLAN to the FWSM; the FWSM
automatically handles secondary VLAN traffic.
• You cannot use reserved VLANs.
• You cannot use VLAN 1.
• If you are using FWSM failover within the same switch chassis, do not assign the VLAN(s) you are
reserving for failover and stateful communications to a switch port. However, if you are using
failover between chassis, you must include the VLANs in the trunk port between the chassis.
• If you do not add the VLANs to the switch before you assign them to the FWSM, the VLANs are
stored in the supervisor engine database and are sent to the FWSM as soon as they are added to the
switch.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 2-3
Chapter 2 Configuring the Switch for the Firewall Services Module
Assigning VLANs to the Firewall Services Module
Note Routed ports and WAN ports consume internal VLANs, so it is possible that VLANs in the 1020-1100
range might already be in use.
Step 2 To assign the firewall groups to the FWSM, enter the following command:
Router(config)# firewall module module_number vlan-group firewall_group
This example shows how you can create three firewall VLAN groups: one for each FWSM, and one that
includes VLANs assigned to both FWSMs.
Router(config)# firewall vlan-group 50 55-57
Router(config)# firewall vlan-group 51 70-85
Router(config)# firewall vlan-group 52 100
Router(config)# firewall module 5 vlan-group 50,52
Router(config)# firewall module 8 vlan-group 51,52
The following is sample output from the show firewall vlan-group command:
Router# show firewall vlan-group
Group vlans
----- ------
50 55-57
51 70-85
52 100
The following is sample output from the show firewall module command, which shows all VLAN
groups:
Router# show firewall module
Module Vlan-groups
5 50,52
8 51,52
The vlan_list can be one or more VLANs (2 to 1000 and from 1025 to 4094) identified in one of the
following ways:
• A single number (n)
• A range (n-x)
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
2-4 OL-8123-01
Chapter 2 Configuring the Switch for the Firewall Services Module
Adding Switched Virtual Interfaces to the MSFC
Note Routed ports and WAN ports consume internal VLANs, so it is possible that VLANs in the 1020-1100
range might already be in use.
The following is sample output from the show vlan firewall-vlan command:
Console> show vlan firewall-vlan 5
Secured vlans by firewall module 5
55-57, 100
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 2-5
Chapter 2 Configuring the Switch for the Firewall Services Module
Adding Switched Virtual Interfaces to the MSFC
SVI Overview
For security reasons, by default, only one SVI can exist between the MSFC and the FWSM. For example,
if you misconfigure the system with multiple SVIs, you could accidentally allow traffic to pass around
the FWSM by assigning both the inside and outside VLANs to the MSFC. (See Figure 2-1.)
Internet
VLAN 100
MSFC
VLAN 200
FWSM
Inside
92883
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
2-6 OL-8123-01
Chapter 2 Configuring the Switch for the Firewall Services Module
Adding Switched Virtual Interfaces to the MSFC
However, you might need to bypass the FWSM in some network scenarios. Figure 2-2 shows an IPX host
on the same Ethernet segment as IP hosts. Because the FWSM in routed firewall mode only handles
IP traffic and drops other protocol traffic like IPX (transparent firewall mode can optionally allow non-IP
traffic), you might want to bypass the FWSM for IPX traffic. Make sure to configure the MSFC with an
access list that allows only IPX traffic to pass on VLAN 201.
Internet
VLAN 100
MSFC
VLAN 200
FWSM
Inside
92884
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 2-7
Chapter 2 Configuring the Switch for the Firewall Services Module
Adding Switched Virtual Interfaces to the MSFC
For transparent firewalls in multiple context mode, you need to use multiple SVIs because each context
requires a unique VLAN on its outside interface (See Figure 2-3). You might also choose to use multiple
SVIs in routed mode so you do not have to share a single VLAN for the outside interface.
Internet
VLAN 100
92885
Network Customer A Customer B Customer C
Step 1 (Optional) To allow you to add more than one SVI to the FWSM, enter the following command:
Router(config)# firewall multiple-vlan-interfaces
Step 2 To add a VLAN interface to the MSFC, enter the following command:
Router(config)# interface vlan vlan_number
Step 3 To set the IP address for this interface on the MSFC, enter the following command:
Router(config-if)# ip address address mask
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
2-8 OL-8123-01
Chapter 2 Configuring the Switch for the Firewall Services Module
Adding Switched Virtual Interfaces to the MSFC
Step 1 (Optional) To allow you to add more than one SVI to the FWSM, enter the following command:
Console> (enable) set firewall multiple-vlan-interfaces enable
Step 2 To access the MSFC interface, enter one of the following commands:
Console> (enable) switch console
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 2-9
Chapter 2 Configuring the Switch for the Firewall Services Module
Adding Switched Virtual Interfaces to the MSFC
or
Console> (enable) session {15 | 16}
If you are accessing the switch using Telnet or SSH, you must use the session command.
Step 3 To enter enable mode and then configuration mode on the MSFC, enter the following commands:
Router> enable
Router# configure terminal
Step 4 To add a VLAN interface to the MSFC, enter the following command:
Router(config)# interface vlan vlan_number
Step 5 To set the IP address for this interface on the MSFC, enter the following command:
Router(config-if)# ip address address mask
The following is sample output from the show interface command that you enter at the MSFC prompt:
Router# show interface vlan 55
Vlan55 is up, line protocol is up
Hardware is EtherSVI, address is 0008.20de.45ca (bia 0008.20de.45ca)
Internet address is 10.1.1.1/24
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
ARP type:ARPA, ARP Timeout 04:00:00
Last input never, output 00:00:08, output hang never
Last clearing of "show interface" counters never
Input queue:0/75/0/0 (size/max/drops/flushes); Total output drops:0
Queueing strategy:fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
2-10 OL-8123-01
Chapter 2 Configuring the Switch for the Firewall Services Module
Customizing the FWSM Internal Interface
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 2-11
Chapter 2 Configuring the Switch for the Firewall Services Module
Managing the Firewall Services Module Boot Partitions
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
2-12 OL-8123-01
Chapter 2 Configuring the Switch for the Firewall Services Module
Managing the Firewall Services Module Boot Partitions
• Security context partition (cf:6)—64 MB are dedicated to this partition, which stores security
context configurations (if desired) and RSA keys in a navigable file system. Other partitions do not
have file systems that allow you to perform common tasks such as listing files. This partition is
called disk when using the copy command.
For example:
Router# show boot device
[mod:1 ]:
[mod:2 ]:
[mod:3 ]:
[mod:4 ]: cf:4
[mod:5 ]: cf:4
[mod:6 ]:
[mod:7 ]: cf:4
[mod:8 ]:
[mod:9 ]:
For example:
Console> (enable) show boot device 6
Device BOOT variable = cf:5
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 2-13
Chapter 2 Configuring the Switch for the Firewall Services Module
Managing the Firewall Services Module Boot Partitions
For Cisco IOS software, when you reset the FWSM, you can also choose to run a full memory test. When
the FWSM initially boots, it only runs a partial memory test. A full memory test takes approximately
six minutes.
To reset the FWSM, see the section for your operating system:
• Resetting the FWSM in Cisco IOS Software, page 2-14
• Resetting the FWSM in Catalyst Operating System Software, page 2-14
Note To reload the FWSM when you are logged into the FWSM, enter reload or reboot. You cannot boot from
a non-default boot partition with these commands.
The cf:n argument is the partition, either 1 (maintenance), 4 (application), or 5 (application). If you do
not specify the partition, the default partition is used (typically cf:4).
The mem-test-full option runs a full memory test, which takes approximately 6 minutes.
This example shows how to reset the FWSM installed in slot 9. The default boot partition is used.
Router# hw-mod module 9 reset
Router#
00:26:55:%SNMP-5-MODULETRAP:Module 9 [Down] Trap
00:26:55:SP:The PC in slot 8 is shutting down. Please wait ...
Where cf:n is the partition, either 1 (maintenance), 4 (application), or 5 (application). If you do not
specify the partition, the default partition is used (typically cf:4).
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
2-14 OL-8123-01
C H A P T E R 3
Connecting to the Firewall Services Module and
Managing the Configuration
This chapter describes how to access the command-line interface and work with the configuration. This
chapter includes the following sections:
• Connecting to the Firewall Services Module, page 3-1
• Managing the Configuration, page 3-3
Caution Management access to the FWSM causes a degradation in performance. We recommend that you avoid
accessing the FWSM when high network performance is critical.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 3-1
Chapter 3 Connecting to the Firewall Services Module and Managing the Configuration
Connecting to the Firewall Services Module
To session in to the FWSM from the switch, log in, access privileged mode, and then configuration mode,
perform the following steps:
Step 1 Session in to the FWSM from the switch using the command appropriate for your switch operating
system:
• Cisco IOS software
Router# session slot number processor 1
For multiple context mode, when you session in to the FWSM, you access the system configuration. See
Chapter 4, “Configuring Security Contexts,” for more information.
Step 2 Log in to the FWSM by entering the login password at the following prompt:
hostname passwd:
To exit privileged mode, enter disable. You can also enter exit or quit to exit the current access mode
(privileged EXEC mode, global configuration mode, and so on).
Step 5 To access configuration mode, enter the following command:
hostname# configure terminal
Logoff
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
3-2 OL-8123-01
Chapter 3 Connecting to the Firewall Services Module and Managing the Configuration
Managing the Configuration
You might need to enter the exit command multiple times if you are in a configuration mode.
Note The copy running-config startup-config command is equivalent to the write memory command.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 3-3
Chapter 3 Connecting to the Firewall Services Module and Managing the Configuration
Managing the Configuration
To save the system or context configuration, enter the following command within the system or context:
hostname# write memory
Note The copy running-config startup-config command is equivalent to the write memory command.
For multiple context mode, context startup configurations can reside on external servers. In this case, the
FWSM saves the configuration back to the server you identified in the context URL, except for an HTTP
or HTTPS URL, which do not let you save the configuration to the server.
To save all context configurations at the same time, as well as the system configuration, enter the
following command in the system execution space:
hostname# write memory all [/noconfirm]
If you do not enter the /noconfirm keyword, you see the following prompt:
Are you sure [Y/N]:
After you enter Y, the FWSM saves the system configuration and each context. Context startup
configurations can reside on external servers. In this case, the FWSM saves the configuration back to the
server you identified in the context URL, except for an HTTP or HTTPS URL, which do not let you save
the configuration to the server.
After the FWSM saves each context, the following message appears:
‘Saving context ‘b’ ... ( 1/3 contexts saved ) ’
Sometimes, a context is not saved because of an error. See the following information for errors:
• For contexts that are not saved because of low memory, the following message appears:
The context 'context a' could not be saved due to Unavailability of resources
• For contexts that are not saved because the remote destination is unreachable, the following message
appears:
The context 'context a' could not be saved due to non-reachability of destination
• For contexts that are not saved because the context is locked, the following message appears:
Unable to save the configuration for the following contexts as these contexts are
locked.
context ‘a’ , context ‘x’ , context ‘z’ .
A context is only locked if another user is already saving the configuration or in the process of
deleting the context.
• For contexts that are not saved because the startup configuration is read-only (for example, on an
HTTP server), the following message report is printed at the end of all other messages:
Unable to save the configuration for the following contexts as these contexts have
read-only config-urls:
context ‘a’ , context ‘b’ , context ‘c’ .
• For contexts that are not saved because of bad sectors in the Flash memory, the following message
appears:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
3-4 OL-8123-01
Chapter 3 Connecting to the Firewall Services Module and Managing the Configuration
Managing the Configuration
The context 'context a' could not be saved due to Unknown errors
A merge adds any new commands from the new configuration to the running configuration. If the
configurations are the same, no changes occur. If commands conflict or if commands affect the
running of the context, then the effect of the merge depends on the command. You might get errors,
or you might have unexpected results.
• To load the startup configuration and discard the running configuration, restart the FWSM by
entering the following command:
hostname# reload
Alternatively, you can use the following commands to load the startup configuration and discard the
running configuration without requiring a reboot:
hostname(config)# clear configure all
hostname(config)# copy startup-config running-config
• To view the running configuration of a specific command, enter the following command:
hostname# show running-config command
This command clears all the current configuration for the specified configuration command. If you
only want to clear the configuration for a specific version of the command, you can enter a value for
level2configurationcommand.
For example, to clear the configuration for all aaa commands, enter the following command:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 3-5
Chapter 3 Connecting to the Firewall Services Module and Managing the Configuration
Managing the Configuration
To clear the configuration for only aaa authentication commands, enter the following command:
hostname(config)# clear configure aaa authentication
• To disable the specific parameters or options of a command, enter the following command:
hostname(config)# no configurationcommand [level2configurationcommand] qualifier
In this case, you use the no command to remove the specific configuration identified by qualifier.
For example, to remove a specific nat command, enter enough of the command to identify it
uniquely as follows:
hostname(config)# no nat (inside) 1
Note In multiple context mode, if you enter clear configure all from the system configuration, you
also remove all contexts and stop them from running.
In the text configuration file you are not prompted to enter commands, so the prompt is omitted as
follows:
context a
For additional information about formatting the file, see Appendix C, “Using the Command-Line
Interface.”
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
3-6 OL-8123-01
C H A P T E R 4
Configuring Security Contexts
This chapter describes how to configure multiple security contexts, and includes the following sections:
• Security Context Overview, page 4-1
• Enabling or Disabling Multiple Context Mode, page 4-9
• Configuring Resource Management, page 4-11
• Configuring Memory Partitions, page 4-16
• Configuring a Security Context, page 4-18
• Changing Between Contexts and the System Execution Space, page 4-22
• Managing Security Contexts, page 4-22
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 4-1
Chapter 4 Configuring Security Contexts
Security Context Overview
• You are a large enterprise or a college campus and want to keep departments completely separate.
• You are an enterprise that wants to provide distinct security policies to different departments.
• You have any network that requires more than one firewall.
Unsupported Features
Multiple context mode does not support the following features:
• Dynamic routing protocols
Security contexts support only static routes. You cannot enable OSPF or RIP in multiple context
mode.
• Multicast
Context Configurations
The FWSM includes a configuration for each context that identifies the security policy, interfaces, and
almost all the options you can configure on a standalone device. You can store context configurations on
the internal Flash memory or the external Flash memory card, or you can download them from a TFTP,
FTP, or HTTP(S) server.
System Configuration
The system administrator adds and manages contexts by configuring each context configuration location,
allocated interfaces, and other context operating parameters in the system configuration, which, like a
single mode configuration, is the startup configuration. The system configuration identifies basic
settings for the FWSM. The system configuration does not include any network interfaces or network
settings for itself; rather, when the system needs to access network resources (such as downloading the
contexts from the server), it uses one of the contexts that is designated as the admin context. The system
configuration does include a specialized failover interface for failover traffic only.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
4-2 OL-8123-01
Chapter 4 Configuring Security Contexts
Security Context Overview
If your system is already in multiple context mode, or if you convert from single mode, the admin context
is created automatically as a file on the internal Flash memory called admin.cfg. This context is named
“admin.” If you do not want to use admin.cfg as the admin context, you can change the admin context.
• Context B:
static (inside,shared) 10.20.10.0 10.20.10.0 netmask 255.255.255.0
• Context C:
static (inside,shared) 10.30.10.0 10.30.10.0 netmask 255.255.255.0
If you use dynamic NAT, an active NAT session is created when the real host creates a connection
through the shared interface. For traffic returning to the host, the active NAT session is used to classify
the packet.
To quickly identify possible overlaps between different contexts, a situation that leads to connectivity
problems, enter the show np 3 static command in the system execution space.
Note For management traffic destined for an interface, the interface IP address is used for classification.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 4-3
Chapter 4 Configuring Security Contexts
Security Context Overview
Classification Examples
Figure 4-1 shows multiple contexts sharing an outside interface, while the inside interfaces are unique,
allowing overlapping IP addresses. The classifier assigns the packet to Context B because Context B
includes the address translation that matches the destination address.
Internet
Packet Destination:
209.165.201.3
VLAN 100 (Shared Interface)
Classifier
Admin
Context Context A Context B
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
4-4 OL-8123-01
Chapter 4 Configuring Security Contexts
Security Context Overview
Note that all new incoming traffic must be classified, even from inside networks. Figure 4-2 shows a host
on the Context B inside network accessing the Internet. The classifier assigns the packet to Context B
because the ingress interface is VLAN 300, which is assigned to Context B.
Internet
VLAN 100
Admin
Context Context A Context B
Classifier
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 4-5
Chapter 4 Configuring Security Contexts
Security Context Overview
Figure 4-3 shows a transparent firewall with a host on the Context B inside network accessing the
Internet. The classifier assigns the packet to Context B because the ingress interface is VLAN 300,
which is assigned to Context B.
Internet
Classifier
VLAN 200
VLAN 100 VLAN 300
Admin
Context Context A Context B
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
4-6 OL-8123-01
Chapter 4 Configuring Security Contexts
Security Context Overview
Note The FWSM does not support sharing the outside interface of one context with the inside interface of
another context (known as cascading contexts). Traffic that is outbound from one context(from a higher
to a lower security interface) can only enter another context as inbound traffic (lower to higher security);
it cannot be outbound for both contexts, or inbound for both contexts.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 4-7
Chapter 4 Configuring Security Contexts
Security Context Overview
Figure 4-4 shows two servers on an inside shared interface. One server sends a packet to the translated
address of a web server, and the FWSM classifies the packet to go through Context C because it includes
a static translation for the address. The other server sends the packet to the real untranslated address, and
the packet is dropped because the FWSM cannot classify it.
www.example.com
209.165.201.4
HTTP Packet
Dest. Address:
Internet 209.165.201.4
VLAN 100
Admin
Context Context A Context B Context C
Static Translation
10.1.2.27 209.165.201.4
209.165.201.4 10.1.2.27
Syslog Server AAA Server
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
4-8 OL-8123-01
Chapter 4 Configuring Security Contexts
Enabling or Disabling Multiple Context Mode
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 4-9
Chapter 4 Configuring Security Contexts
Enabling or Disabling Multiple Context Mode
Step 1 To copy the backup version of your original running configuration to the current startup configuration,
enter the following command in the system execution space:
hostname(config)# copy old_running.cfg startup-config
Step 2 To set the mode to single mode, enter the following command in the system execution space:
hostname(config)# mode single
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
4-10 OL-8123-01
Chapter 4 Configuring Security Contexts
Configuring Resource Management
Note The FWSM does not limit the bandwidth per context; however, the switch containing the FWSM can
limit bandwidth per VLAN. See the switch documentation for more information.
Resource Limits
When you create a class, the FWSM does not set aside a portion of the resources for each context
assigned to the class; rather, the FWSM sets the maximum limit for a context. If you oversubscribe
resources, or allow some resources to be unlimited, a few contexts can “use up” those resources,
potentially affecting service to other contexts.
You can set the limit for all resources together as a percentage of the total available for the device. Also,
you can set the limit for individual resources as a percentage or as an absolute value.
You can oversubscribe the FWSM by assigning more than 100 percent of the resources across all
contexts. For example, you can set the Bronze class to limit connections to 20 percent per context, and
then assign 10 contexts to the class for a total of 200 percent. If contexts concurrently use more than the
system limit, then each context gets less than the 20 percent you intended. (See Figure 4-5.)
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 4-11
Chapter 4 Configuring Security Contexts
Configuring Resource Management
104895
1 2 3 4 5 6 7 8 9 10
Contexts in Class
The FWSM lets you assign unlimited access to one or more resources in a class, instead of a percentage
or absolute number. When a resource is unlimited, contexts can use as much of the resource as the system
has available. For example, Context A, B, and C are in the Silver Class, which limits each class member
to 1 percent of the system inspections per second, for a total of 3 percent; but the three contexts are
currently only using 2 percent combined. Gold Class has unlimited access to inspections. The contexts
in the Gold Class can use more than the 97 percent of “unassigned” inspections; they can also use the
1 percent of inspections not currently in use by Context A, B, and C, even if that means that Context A,
B, and C are unable to reach their 3 percent combined limit. (See Figure 4-6.) Setting unlimited access
is similar to oversubscribing the FWSM, except that you have less control over how much you
oversubscribe the system.
5%
(100) Maximum connections
4% allowed.
(100)
Connections in use.
3%
(100) Connections denied
2% because system limit
(100) was reached.
1%
(100)
104896
A B C 1 2 3
Contexts Silver Class Contexts Gold Class
Default Class
All contexts belong to the default class if they are not assigned to another class; you do not have to
actively assign a context to the default class.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
4-12 OL-8123-01
Chapter 4 Configuring Security Contexts
Configuring Resource Management
If a context belongs to a class other than the default class, those class settings always override the default
class settings. However, if the other class has any settings that are not defined, then the member context
uses the default class for those limits. For example, if you create a class with a 2 percent limit for all
concurrent connections, but no other limits, then all other limits are inherited from the default class.
Conversely, if you create a class with a 2 percent limit for all resources, the class uses no settings from
the default class.
By default, the default class provides unlimited access to resources for all contexts, except for the
following limits, which are by default set to the maximum allowed per context:
• Telnet sessions—5 sessions.
• SSH sessions—5 sessions.
• IPSec sessions—5 sessions.
• MAC addresses—65,535 entries.
Figure 4-7 shows the relationship between the default class and other classes. Contexts A and C belong
to classes with some limits set; other limits are inherited from the default class. Context B inherits no
limits from default because all limits are set in its class, the Gold class. Context D was not assigned to
a class, and is by default a member of the default class.
Context C
104689
Context B
Class Members
To use the settings of a class, assign the context to the class when you define the context. All contexts
belong to the default class if they are not assigned to another class; you do not have to actively assign a
context to default. You can only assign a context to one resource class. The exception to this rule is that
limits that are undefined in the member class are inherited from the default class; so in effect, a context
could be a member of default plus another class.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 4-13
Chapter 4 Configuring Security Contexts
Configuring Resource Management
Configuring a Class
To configure a class in the system configuration, perform the following steps. You can change the value
of a particular resource limit by reentering the command with a new value.
Step 1 To specify the class name and enter the class configuration mode, enter the following command in the
system execution space:
hostname(config)# class name
The name is a string up to 20 characters long. To set the limits for the default class, enter default for the
name.
Step 2 To set the resource limits, see the following options:
• To set all resource limits (shown in Table 4-1), enter the following command:
hostname(config-resmgmt)# limit-resource all {number% | 0}
The number is an integer greater than or equal to 1. 0 (without a percent sign (%)) sets the resources
to the system limit. You can assign more than 100 percent if you want to oversubscribe the device.
• To set a particular resource limit, enter the following command:
hostname(config-resmgmt)# limit-resource [rate] resource_name number[%]
For this particular resource, the limit overrides the limit set for all. Enter the rate argument to set
the rate per second for certain resources. See Table 4-1 for resources for which you can set the rate
per second.
Table 4-1 lists the resource types and the limits. See also the show resource types command.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
4-14 OL-8123-01
Chapter 4 Configuring Security Contexts
Configuring Resource Management
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 4-15
Chapter 4 Configuring Security Contexts
Configuring Memory Partitions
For example, to set the default class limit for conns to 10 percent instead of unlimited, enter the
following commands:
hostname(config)# class default
hostname(config-class)# limit-resource conns 10%
To add a class called silver with all resources set to 3 percent, except for syslogs, with a setting of 500
per second, enter the following commands:
hostname(config)# class silver
hostname(config-class)# limit-resource all 3%
hostname(config-class)# limit-resource rate syslogs 500
Note Rules are used up on a first come, first served basis, so one context might use more rules than another
context.
See the “Rule Limits” section on page A-5 for more information about rule limits.
Alternatively, you can manually assign a context to a partition. To assign a context to a partition, see the
“Configuring a Security Context” section on page 4-18. You can also reduce the number of partitions to
better match the number of contexts you have.
Note Changing the number of partitions requires you to reload the FWSM.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
4-16 OL-8123-01
Chapter 4 Configuring Security Contexts
Configuring Memory Partitions
Step 1 To set the number of partitions, enter the following command in the system execution space:
hostname(config)# resource acl-partition number_of_partitions
Note If you assign a context to a partition, the partition numbering starts with 0. So if you have 12
partitions, the partition numbers are 0 through 11. See the “Configuring a Security Context”
section on page 4-18 to assign contexts to partitions.
If you are using failover, wait a few seconds before reloading the standby unit as well; the standby unit
does not reload automatically, and the memory partitions must match on both units. Traffic loss can
occur because both units are down at the same time.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 4-17
Chapter 4 Configuring Security Contexts
Configuring a Security Context
The following example shows how to verify the current mapping of contexts to memory partitions:
hostname(config)# show resource acl-partition
Total number of configured partitions = 2
Partition #0
Mode :exclusive
List of Contexts :bandn, borders
Number of contexts :2(RefCount:2)
Number of rules :0(Max:53087)
Partition #1
Mode :non-exclusive
List of Contexts :admin, momandpopA, momandpopB, momandpopC
momandpopD
Number of contexts :5(RefCount:5)
Number of rules :6(Max:53087)
For information about exclusive and non-exclusive partitions, see the “Configuring a Security Context”
section on page 4-18.
Note To assign a context to a failover group for active/active failover, see the “Using Active/Active Failover”
section on page 13-23.
If you do not have an admin context (for example, if you clear the configuration) then you must first
specify the admin context name by entering the following command:
Although this context name does not yet exist in your configuration, you can subsequently enter the
context name command to match the specified name to continue the admin context configuration.
Step 1 To configure a context, enter the following command in the system execution space:
hostname(config)# context name
The name is a string up to 32 characters long. This name is case sensitive, so you can have two contexts
named “customerA” and “CustomerA,” for example. You can use letters, digits, or hyphens, but you
cannot start or end the name with a hyphen.
“System” or “Null” (in upper or lower case letters) are reserved names, and cannot be used.
Step 2 (Optional) To add a description for this context, enter the following command:
hostname(config-ctx)# description text
Step 3 To specify the interfaces you can use in the context, enter the following command:
hostname(config-ctx)# allocate-interface vlannumber[-vlannumber] [map_name[-map_name]
[invisible | visible]]
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
4-18 OL-8123-01
Chapter 4 Configuring Security Contexts
Configuring a Security Context
You can enter this command multiple times to specify different ranges. If you remove an allocation with
the no form of this command, then any context commands that include this interface are removed from
the running configuration.
Enter a VLAN number or a range of VLANs, typically from 2 to 1000 and from 1025 to 4094 (see the
switch documentation for supported VLANs). To see a list of VLANs assigned to the FWSM, use the
show vlan command. You can allocate a VLAN that is not yet assigned to the FWSM, but you need to
assign them from the switch if you want them to pass traffic. When you allocate an interface, the FWSM
automatically adds the interface command for each VLAN in the system configuration.
You can assign the same VLANs to multiple contexts in routed mode, if desired. See the “Sharing
Interfaces Between Contexts” section on page 4-6 for more information about shared VLAN limitations.
The map_name is an alphanumeric alias for the interface that can be used within the context instead of
the VLAN ID. If you do not specify a mapped name, the VLAN ID is used within the context. For
security purposes, you might not want the context administrator to know which interfaces are being used
by the context.
A mapped name must start with a letter, end with a letter or digit, and have as interior characters only
letters, digits, or an underscore. For example, you can use the following names:
int0
inta
int_0
If you specify a range of VLAN IDs, you can specify a matching range of mapped names. Follow these
guidelines for ranges:
• The mapped name must consist of an alphabetic portion followed by a numeric portion. The
alphabetic portion of the mapped name must match for both ends of the range. For example, enter
the following range:
int0-int10
• The numeric portion of the mapped name must include the same quantity of numbers as the
vlanx-vlany statement. For example, both ranges include 100 interfaces:
vlan100-vlan199 int1-int100
Step 4 To identify the URL from which the system downloads the context configuration, enter the following
command:
hostname(config-ctx)# config-url url
When you add a context URL, the system immediately loads the context so that it is running, if the
configuration is available.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 4-19
Chapter 4 Configuring Security Contexts
Configuring a Security Context
Note Enter the allocate-interface command(s) before you enter the config-url command. The FWSM must
assign interfaces to the context before it loads the context configuration; the context configuration might
include commands that refer to interfaces (interface, nat, global...). If you enter the config-url
command first, the FWSM loads the context configuration immediately. If the context contains any
commands that refer to interfaces, those commands fail.
You can then change to the context, configure it at the CLI, and enter the write memory command
to write the file to Flash memory.
Note The admin context file must be stored on the internal Flash memory.
• ftp://[user[:password]@]server[:port]/[path/]filename[;type=xx]
The type can be one of the following keywords:
– ap—ASCII passive mode
– an—ASCII normal mode
– ip—(Default) Binary passive mode
– in—Binary normal mode
The server must be accessible from the admin context. The filename does not require a file
extension, although we recommend using “.cfg”. If the configuration file is not available, you see
the following message:
WARNING: Could not fetch the URL ftp://url
INFO: Creating context with default config
You can then change to the context, configure it at the CLI, and enter the write memory command
to write the file to the FTP server.
• http[s]://[user[:password]@]server[:port]/[path/]filename
The server must be accessible from the admin context. The filename does not require a file
extension, although we recommend using “.cfg”. If the configuration file is not available, you see
the following message:
WARNING: Could not fetch the URL http://url
INFO: Creating context with default config
If you change to the context and configure the context at the CLI, you cannot save changes back to
HTTP or HTTPSservers using the write memory command. You can, however, use the copy tftp
command to copy the running configuration to a TFTP server.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
4-20 OL-8123-01
Chapter 4 Configuring Security Contexts
Configuring a Security Context
• tftp://[user[:password]@]server[:port]/[path/]filename[;int=interface_name]
The server must be accessible from the admin context. Specify the interface name if you want to
override the route to the server address. The filename does not require a file extension, although we
recommend using “.cfg”. If the configuration file is not available, you see the following message:
WARNING: Could not fetch the URL tftp://url
INFO: Creating context with default config
You can then change to the context, configure it at the CLI, and enter the write memory command
to write the file to the TFTP server.
To change the URL, reenter the config-url command with a new URL.
See the “Changing the Security Context URL” section on page 4-24 for more information about
changing the URL.
For example, enter the following command:
hostname(config-ctx)# config-url ftp://joe:[email protected]/configlets/test.cfg
Step 5 (Optional) To assign the context to a resource class, enter the following command:
hostname(config-ctx)# member class_name
If you do not specify a class, the context belongs to the default class. You can only assign a context to
one resource class.
For example, to assign the context to the gold class, enter the following command:
hostname(config-ctx)# member gold
Step 6 (Optional) To map a context to a specific memory partition, enter the following command:
hostname(config-ctx)# allocate-acl-partition partition_number
The partition_number is an integer from 0 to the number of partitions available, minus 1. The default is
12 partitions, so the range is 0 to 11. See the “Configuring Memory Partitions” section on page 4-16 to
configure the number of memory partitions.
When you assign a context to a partition, then the partition becomes exclusive. An exclusive partition
only includes contexts that you specifically assign to it. Partitions that do not have contexts specifically
assigned to them are non-exclusive and contexts are allocated to them in a round-robin fashion.
Note If you assign contexts to all partitions, then they are all exclusive. If you later add a context that is not
assigned to a partition, however, then it is assigned to partition 0 by default.
For example, to assign the context to the first partition, enter the following command:
hostname(config-ctx)# allocate-acl-partition 0
The following example sets the admin context to be “administrator,” creates a context called
“administrator” on the internal Flash memory, and then adds two contexts from an FTP server:
hostname(config)# admin-context administrator
hostname(config)# context administrator
hostname(config-ctx)# allocate-interface vlan10
hostname(config-ctx)# allocate-interface vlan11
hostname(config-ctx)# config-url disk:/admin.cfg
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 4-21
Chapter 4 Configuring Security Contexts
Changing Between Contexts and the System Execution Space
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
4-22 OL-8123-01
Chapter 4 Configuring Security Contexts
Managing Security Contexts
Note If you use failover, there is a delay between when you remove the context on the active unit or group and
when the context is removed on the standby unit or group. You might see an error message indicating
that the number of interfaces on the active and standby units are not consistent; this error is temporary
and can be ignored.
• To remove all contexts (including the admin context), enter the following command in the system
execution space:
hostname(config)# clear context
Any remote management sessions, such as Telnet, SSH, or HTTPS, that are connected to the admin
context are terminated. You must reconnect to the new admin context.
Note A few system commands identify an interface name that belongs to the admin context. If you change the
admin context, and that interface name does not exist in the new admin context, be sure to update any
system commands that refer to the interface.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 4-23
Chapter 4 Configuring Security Contexts
Managing Security Contexts
Step 1 If you do not want to merge the configuration, change to the context and clear its configuration by
entering the following commands. If you want to perform a merge, skip to Step 2.
hostname# changeto context name
hostname/name# configure terminal
hostname/name(config)# clear configure all
Step 2 If required, change to the system execution space by entering the following command:
hostname/name(config)# changeto system
Step 3 To enter the context configuration mode for the context you want to change, enter the following
command:
hostname(config)# context name
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
4-24 OL-8123-01
Chapter 4 Configuring Security Contexts
Managing Security Contexts
Step 1 To change to the context that you want to reload, enter the following command:
hostname# changeto context name
The FWSM copies the configuration from the URL specified in the system configuration. You cannot
change the URL from within a context.
The detail option shows additional information. See the following sample displays for more information.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 4-25
Chapter 4 Configuring Security Contexts
Managing Security Contexts
If you want to show information for a particular context, specify the name.
The count option shows the total number of contexts.
The following is sample output from the show context command. The following sample display shows
three contexts:
hostname# show context
Context Name Class Interfaces Mode URL
*admin default Vlan100,101 Routed disk:/admin.cfg
contexta Gold Vlan200,201 Transparent disk:/contexta.cfg
contextb Silver Vlan300,301 Routed disk:/contextb.cfg
Total active Security Contexts: 3
Field Description
Context Name Lists all context names. The context name with the asterisk (*) is the admin context.
Class Shows the resource class to which the context belongs.
Interfaces Shows the interfaces assigned to the context.
Mode Shows the firewall mode for each context, either Routed or Transparent.
URL Shows the URL from which the FWSM loads the context configuration.
The following is sample output from the show context detail command:
hostname# show context detail
Context "admin", has been created, but initial ACL rules not complete
Config URL: disk:/admin.cfg
Real Interfaces: Vlan100
Mapped Interfaces: Vlan100
Class: default, Flags: 0x00000013, ID: 1
Context "ctx", has been created, but initial ACL rules not complete
Config URL: disk:/ctx.cfg
Real Interfaces: Vlan10,20,30
Mapped Interfaces: int1, int2, int3
Class: default, Flags: 0x00000011, ID: 2
See the Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Command
Reference for more information about the detail output.
The following is sample output from the show context count command:
hostname# show context count
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
4-26 OL-8123-01
Chapter 4 Configuring Security Contexts
Managing Security Contexts
This command shows the resource allocation, but does not show the actual resources being used. See the
“Viewing Resource Usage” section on page 4-29 for more information about actual resource usage.
The detail argument shows additional information. See the following sample displays for more
information.
The following sample display shows the total allocation of each resource as an absolute value and as a
percentage of the available system resources:
hostname# show resource allocation
Resource Total % of Avail
Conns [rate] 35000 35.00%
Fixups [rate] 35000 35.00%
Syslogs [rate] 10500 35.00%
Conns 305000 30.50%
Hosts 78842 30.07%
IPsec 7 35.00%
SSH 35 35.00%
Telnet 35 35.00%
Xlates 91749 34.99%
All unlimited
Field Description
Resource The name of the resource that you can limit.
Total The total amount of the resource that is allocated across all contexts. The amount
is an absolute number of concurrent instances or instances per second. If you
specified a percentage in the class definition, the FWSM converts the percentage to
an absolute number for this display.
% of Avail The percentage of the total system resources that is allocated across all contexts.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 4-27
Chapter 4 Configuring Security Contexts
Managing Security Contexts
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
4-28 OL-8123-01
Chapter 4 Configuring Security Contexts
Managing Security Contexts
Field Description
Resource The name of the resource that you can limit.
Class The name of each class, including the default class.
The All contexts field shows the total values across all classes.
Mmbrs The number of contexts assigned to each class.
Origin The origin of the resource limit, as follows:
• A—You set this limit with the all option, instead of as an individual resource.
• C—This limit is derived from the member class.
• D—This limit was not defined in the member class, but was derived from the
default class. For a context assigned to the default class, the value will be “C”
instead of “D.”
The FWSM can combine “A” with “C” or “D.”
Limit The limit of the resource per context, as an absolute number. If you specified a
percentage in the class definition, the FWSM converts the percentage to an absolute
number for this display.
Total The total amount of the resource that is allocated across all contexts in the class.
The amount is an absolute number of concurrent instances or instances per second.
If the resource is unlimited, this display is blank.
% of Avail The percentage of the total system resources that is allocated across all contexts in
the class. If the resource is unlimited, this display is blank.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 4-29
Chapter 4 Configuring Security Contexts
Managing Security Contexts
• current—Shows the active concurrent instances or the current rate of the resource.
• denied—Shows the number of instances that were denied because they exceeded the resource
allocation.
• peak—Shows the peak concurrent instances, or the peak rate of the resource since the statistics were
last cleared, either using the clear resource usage command or because the device rebooted.
• all—(Default) Shows all statistics.
The count_threshold sets the number above which resources are shown. The default is 1. If the usage of
the resource is below the number you set, then the resource is not shown. If you specify all for the
counter name, then the count_threshold applies to the current usage.
The following is sample output from the show resource usage context command, which shows the
resource usage for the admin context:
hostname# show resource usage context admin
The following is sample output from the show resource usage summary command, which shows the
resource usage for all contexts and all resources. This sample shows the limits for 6 contexts.
hostname# show resource usage summary
The following is sample output from the show resource usage system counter all 0 command, which
shows the resource usage for all contexts, but it shows the system limit instead of the combined context
limits:
hostname# show resource usage system counter all 0
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
4-30 OL-8123-01
Chapter 4 Configuring Security Contexts
Managing Security Contexts
Context:admin
PERFMON STATS: Current Average
Xlates 0/s 0/s
Connections 0/s 0/s
TCP Conns 0/s 0/s
UDP Conns 0/s 0/s
URL Access 0/s 0/s
URL Server Req 0/s 0/s
WebSns Req 0/s 0/s
TCP Fixup 0/s 0/s
HTTP Fixup 0/s 0/s
FTP Fixup 0/s 0/s
AAA Authen 0/s 0/s
AAA Author 0/s 0/s
AAA Account 0/s 0/s
TCP Intercept 322779/s 322779/s
The following is sample output from the show resource usage detail command that shows the amount
of resources being used by TCP Intercept for individual contexts. (Sample text in italics shows the TCP
intercept information.)
hostname(config)# show resource usage detail
Resource Current Peak Limit Denied Context
memory 843732 847288 unlimited 0 admin
chunk:channels 14 15 unlimited 0 admin
chunk:fixup 15 15 unlimited 0 admin
chunk:hole 1 1 unlimited 0 admin
chunk:ip-users 10 10 unlimited 0 admin
chunk:list-elem 21 21 unlimited 0 admin
chunk:list-hdr 3 4 unlimited 0 admin
chunk:route 2 2 unlimited 0 admin
chunk:static 1 1 unlimited 0 admin
tcp-intercept-rate 328787 803610 unlimited 0 admin
np-statics 3 3 unlimited 0 admin
statics 1 1 unlimited 0 admin
ace-rules 1 1 N/A 0 admin
console-access-rul 2 2 N/A 0 admin
fixup-rules 14 15 N/A 0 admin
memory 959872 960000 unlimited 0 c1
chunk:channels 15 16 unlimited 0 c1
chunk:dbgtrace 1 1 unlimited 0 c1
chunk:fixup 15 15 unlimited 0 c1
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 4-31
Chapter 4 Configuring Security Contexts
Managing Security Contexts
chunk:global 1 1 unlimited 0 c1
chunk:hole 2 2 unlimited 0 c1
chunk:ip-users 10 10 unlimited 0 c1
chunk:udp-ctrl-blk 1 1 unlimited 0 c1
chunk:list-elem 24 24 unlimited 0 c1
chunk:list-hdr 5 6 unlimited 0 c1
chunk:nat 1 1 unlimited 0 c1
chunk:route 2 2 unlimited 0 c1
chunk:static 1 1 unlimited 0 c1
tcp-intercept-rate 16056 16254 unlimited 0 c1
globals 1 1 unlimited 0 c1
np-statics 3 3 unlimited 0 c1
statics 1 1 unlimited 0 c1
nats 1 1 unlimited 0 c1
ace-rules 2 2 N/A 0 c1
console-access-rul 2 2 N/A 0 c1
fixup-rules 14 15 N/A 0 c1
memory 232695716 232020648 unlimited 0 system
chunk:channels 17 20 unlimited 0 system
chunk:dbgtrace 3 3 unlimited 0 system
chunk:fixup 15 15 unlimited 0 system
chunk:ip-users 4 4 unlimited 0 system
chunk:list-elem 1014 1014 unlimited 0 system
chunk:list-hdr 1 1 unlimited 0 system
chunk:route 1 1 unlimited 0 system
block:16384 510 885 unlimited 0 system
block:2048 32 34 unlimited 0 system
The following sample output shows the resources being used by TCP intercept for the entire system.
(Sample text in italics shows the TCP intercept information.)
hostname(config)# show resource usage summary detail
Resource Current Peak Limit Denied Context
memory 238421312 238434336 unlimited 0 Summary
chunk:channels 46 48 unlimited 0 Summary
chunk:dbgtrace 4 4 unlimited 0 Summary
chunk:fixup 45 45 unlimited 0 Summary
chunk:global 1 1 unlimited 0 Summary
chunk:hole 3 3 unlimited 0 Summary
chunk:ip-users 24 24 unlimited 0 Summary
chunk:udp-ctrl-blk 1 1 unlimited 0 Summary
chunk:list-elem 1059 1059 unlimited 0 Summary
chunk:list-hdr 10 11 unlimited 0 Summary
chunk:nat 1 1 unlimited 0 Summary
chunk:route 5 5 unlimited 0 Summary
chunk:static 2 2 unlimited 0 Summary
block:16384 510 885 8192(S) 0 Summary
block:2048 32 35 1000(S) 0 Summary
tcp-intercept-rate 341306 811579 unlimited 0 Summary
globals 1 1 1051(S) 0 Summary
np-statics 6 6 4096(S) 0 Summary
statics 2 2 2048(S) 0 Summary
nats 1 1 2048(S) 0 Summary
ace-rules 3 3 116448(S) 0 Summary
console-access-rul 4 4 4356(S) 0 Summary
fixup-rules 43 44 8032(S) 0 Summary
S = System: Total exceeds the system limit; the system limit is shown
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
4-32 OL-8123-01
C H A P T E R 5
Configuring the Firewall Mode
This chapter describes how to set the firewall mode, as well as how the firewall works in each firewall
mode. You can set the firewall mode independently for each context in multiple context mode.
The FWSM (or each context in multiple mode) can run in one of two firewall modes:
• Routed mode
• Transparent mode
This chapter includes the following sections:
• Routed Mode Overview, page 5-1
• Transparent Mode Overview, page 5-8
• Setting Transparent or Routed Firewall Mode, page 5-16
IP Routing Support
The FWSM acts as a router between connected networks, and each interface requires an IP address on a
different subnet. In single context mode, the routed firewall supports OSPF and RIP (in passive mode).
Multiple context mode supports static routes only. We recommend using the advanced routing
capabilities of the upstream and downstream routers instead of relying on the FWSM for extensive
routing needs.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 5-1
Chapter 5 Configuring the Firewall Mode
Routed Mode Overview
Note NAT control was the default behavior for software releases earlier than Version 3.1. If you upgrade an
FWSM from an earlier version, then the nat-control command is automatically added to your
configuration to maintain the expected behavior.
Web Server
www.example.com
Outside
209.165.201.2
Originating Responding
Packet FWSM Packet
Source Addr Translation Dest Addr Translation
10.1.2.27 209.165.201.10 209.165.201.10 10.1.2.27
10.1.2.1
Inside
92889
10.1.2.27
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
5-2 OL-8123-01
Chapter 5 Configuring the Firewall Mode
Routed Mode Overview
www.example.com
Outside
209.165.201.2
FWSM
Source Addr Translation
10.1.2.27 209.165.201.10
10.1.2.1 10.1.1.1
Inside DMZ
92888
The following steps describe how data moves through the FWSM (see Figure 5-2):
1. The user on the inside network requests a web page from www.example.com.
2. The FWSM receives the packet and because it is a new session, the FWSM verifies that the packet
is allowed according to the terms of the security policy (access lists, filters, AAA).
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 5-3
Chapter 5 Configuring the Firewall Mode
Routed Mode Overview
For multiple context mode, the FWSM first classifies the packet according to either a unique
interface or a unique destination address associated with a context; the destination address is
associated by matching an address translation in a context. In this case, the interface would be
unique; the www.example.com IP address does not have a current address translation in a context.
3. The FWSM translates the real address (10.1.2.27) to the mapped address 209.165.201.10, which is
on the outside interface subnet.
The mapped address could be on any subnet, but routing is simplified when it is on the outside
interface subnet.
4. The FWSM then records that a session is established and forwards the packet from the outside
interface.
5. When www.example.com responds to the request, the packet goes through the FWSM, and because
the session is already established, the packet bypasses the many lookups associated with a new
connection. The FWSM performs NAT by translating the mapped address to the real address,
10.1.2.27.
6. The FWSM forwards the packet to the inside user.
User
Outside
209.165.201.2
Dest Addr Translation
209.165.201.3 10.1.1.13
FWSM
10.1.2.1 10.1.1.1
Inside DMZ
92890
Web Server
10.1.1.3
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
5-4 OL-8123-01
Chapter 5 Configuring the Firewall Mode
Routed Mode Overview
The following steps describe how data moves through the FWSM (see Figure 5-3):
1. A user on the outside network requests a web page from the DMZ web server using the mapped
address of 209.165.201.3, which is on the outside interface subnet.
2. The FWSM receives the packet and because it is a new session, the FWSM verifies that the packet
is allowed according to the terms of the security policy (access lists, filters, AAA).
For multiple context mode, the FWSM first classifies the packet according to either a unique
interface or a unique destination address associated with a context; the destination address is
associated by matching an address translation in a context. In this case, the classifier “knows” that
the DMZ web server address belongs to a certain context because of the server address translation.
3. The FWSM translates the destination address to the real address 10.1.1.3.
4. The FWSM then adds a session entry to the fast path and forwards the packet from the DMZ
interface.
5. When the DMZ web server responds to the request, the packet goes through the FWSM and because
the session is already established, the packet bypasses the many lookups associated with a new
connection. The FWSM performs NAT by translating the real address to 209.165.201.3.
6. The FWSM forwards the packet to the outside user.
Outside
209.165.201.2
FWSM
10.1.2.1 10.1.1.1
Inside DMZ
92887
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 5-5
Chapter 5 Configuring the Firewall Mode
Routed Mode Overview
The following steps describe how data moves through the FWSM (see Figure 5-4):
1. A user on the inside network requests a web page from the DMZ web server using the destination
address of 10.1.1.3.
2. The FWSM receives the packet and because it is a new session, the FWSM verifies that the packet
is allowed according to the terms of the security policy (access lists, filters, AAA).
For multiple context mode, the FWSM first classifies the packet according to either a unique
interface or a unique destination address associated with a context; the destination address is
associated by matching an address translation in a context. In this case, the interface is unique; the
web server IP address does not have a current address translation.
3. The FWSM then records that a session is established and forwards the packet out of the DMZ
interface.
4. When the DMZ web server responds to the request, the packet goes through the fast path, which lets
the packet bypass the many lookups associated with a new connection.
5. The FWSM forwards the packet to the inside user.
www.example.com
Outside
209.165.201.2
FWSM
10.1.2.1 10.1.1.1
Inside DMZ
92891
User
10.1.2.27
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
5-6 OL-8123-01
Chapter 5 Configuring the Firewall Mode
Routed Mode Overview
The following steps describe how data moves through the FWSM (see Figure 5-5):
1. A user on the outside network attempts to reach an inside host (assuming the host has a routable
IP address).
If the inside network uses private addresses, no outside user can reach the inside network without
NAT. The outside user might attempt to reach an inside user by using an existing NAT session.
2. The FWSM receives the packet and because it is a new session, the FWSM verifies if the packet is
allowed according to the security policy (access lists, filters, AAA).
3. The packet is denied, and the FWSM drops the packet and logs the connection attempt.
If the outside user is attempting to attack the inside network, the FWSM employs many technologies
to determine if a packet is valid for an already established session.
Outside
209.165.201.2
FWSM
10.1.2.1 10.1.1.1
Inside DMZ
92886
The following steps describe how data moves through the FWSM (see Figure 5-6):
1. A user on the DMZ network attempts to reach an inside host. Because the DMZ does not have to
route the traffic on the Internet, the private addressing scheme does not prevent routing.
2. The FWSM receives the packet and because it is a new session, the FWSM verifies if the packet is
allowed according to the security policy (access lists, filters, AAA).
3. The packet is denied, and the FWSM drops the packet and logs the connection attempt.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 5-7
Chapter 5 Configuring the Firewall Mode
Transparent Mode Overview
Bridge Groups
If you do not want the overhead of security contexts, or want to maximize your use of security contexts,
you can configure up to eight pairs of interfaces, called bridge groups. Each bridge group connects to a
separate network. Bridge group traffic is isolated from other bridge groups; traffic is not routed to
another bridge group within the FWSM, and traffic must exit the FWSM before it is routed by an external
router back to another bridge group in the FWSM. Although the bridging functions are separate for each
bridge group, many other functions are shared between all bridge groups. For example, all bridge groups
share a system log server or AAA server configuration. For complete security policy separation, use
security contexts with one bridge group in each context.
Because the firewall is not a routed hop, you can easily introduce a transparent firewall into an existing
network; IP readdressing is unnecessary. Maintenance is facilitated because there are no complicated
routing patterns to troubleshoot and no NAT configuration.
Note Each bridge group requires a management IP address. The FWSM uses this IP address as the source
address for packets originating from the bridge group. The management IP address must be on the same
subnet as the connected network.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
5-8 OL-8123-01
Chapter 5 Configuring the Firewall Mode
Transparent Mode Overview
Note The transparent mode FWSM does not pass CDP packets, or any packets that do not have a valid
EtherType greater than or equal to 0x600. For example, you cannot pass IS-IS packets. An exception is
made for BPDUs, which are supported.
For example, you can establish routing protocol adjacencies through a transparent firewall; you can
allow OSPF, RIP, EIGRP, or BGP traffic through based on an extended access list. Likewise, protocols
like HSRP or VRRP can pass through the FWSM. See Table 10-2 on page 10-6 for more information
about allowing special traffic.
Non-IP traffic (for example AppleTalk, IPX, BPDUs, and MPLS) can be configured to go through using
an EtherType access list.
For features that are not directly supported on the transparent firewall, you can allow traffic to pass
through so that upstream and downstream routers can support the functionality. For example, by using
an extended access list, you can allow DHCP traffic (instead of the unsupported DHCP relay feature) or
multicast traffic such as that created by IP/TV.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 5-9
Chapter 5 Configuring the Firewall Mode
Transparent Mode Overview
An exception to this rule is when you use voice inspections and the endpoint is at least one hop away
from the FWSM. For example, if you use the transparent firewall between a CCM and an H.323 gateway,
and there is a router between the transparent firewall and the H.323 gateway, then you need to add a static
route on the FWSM for the H.323 gateway for successful call completion.
Internet
10.1.1.1
FWSM Management IP
10.1.1.2
Network A
10.1.1.3
192.168.1.2
Network B
92895
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
5-10 OL-8123-01
Chapter 5 Configuring the Firewall Mode
Transparent Mode Overview
Figure 5-8 shows two networks connected to the FWSM, which has two bridge groups.
10.1.1.1 10.2.1.1
Management IP Management IP
Bridge Group 1 Bridge Group 2
10.1.1.2 10.2.1.2
10.1.1.3 10.2.1.3
92902
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 5-11
Chapter 5 Configuring the Firewall Mode
Transparent Mode Overview
• For multiple context mode, each context typically uses different subnets. You can use overlapping
subnets, but your network topology requires router and NAT configuration to make it possible from
a routing standpoint.
• You must use an extended access list to allow Layer 3 traffic, such as IP traffic, through the FWSM.
You can also optionally use an EtherType access list to allow non-IP traffic through.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
5-12 OL-8123-01
Chapter 5 Configuring the Firewall Mode
Transparent Mode Overview
www.example.com
Internet
209.165.201.2
FWSM Management IP
209.165.201.6
209.165.200.230 Host
209.165.201.3
92896
Web Server
209.165.200.225
This section describes how data moves through the FWSM, and includes the following topics:
• An Inside User Visits a Web Server, page 5-14
• An Outside User Visits a Web Server on the Inside Network, page 5-15
• An Outside User Attempts to Access an Inside Host, page 5-16
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 5-13
Chapter 5 Configuring the Firewall Mode
Transparent Mode Overview
www.example.com
Internet
209.165.201.2
FWSM Management IP
209.165.201.6
92892
Host
209.165.201.3
The following steps describe how data moves through the FWSM (see Figure 5-10):
1. The user on the inside network requests a web page from www.example.com.
2. The FWSM receives the packet and adds the source MAC address to the MAC address table, if
required. Because it is a new session, it verifies that the packet is allowed according to the terms of
the security policy (access lists, filters, AAA).
For multiple context mode, the FWSM first classifies the packet according to a unique interface.
3. The FWSM records that a session is established.
4. If the destination MAC address is in its table, the FWSM forwards the packet out of the outside
interface. The destination MAC address is that of the upstream router, 209.165.201.2.
If the destination MAC address is not in the FWSM table, the FWSM attempts to discover the MAC
address by sending an ARP request and a ping. The first packet is dropped.
5. The web server responds to the request; because the session is already established, the packet
bypasses the many lookups associated with a new connection.
6. The FWSM forwards the packet to the inside user.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
5-14 OL-8123-01
Chapter 5 Configuring the Firewall Mode
Transparent Mode Overview
Host
Internet
209.165.201.2
FWSM Management IP
209.165.201.6
209.165.201.1
209.165.200.230
92893
Web Server
209.165.200.225
The following steps describe how data moves through the FWSM (see Figure 5-11):
1. A user on the outside network requests a web page from the inside web server.
2. The FWSM receives the packet and adds the source MAC address to the MAC address table, if
required. Because it is a new session, it verifies that the packet is allowed according to the terms of
the security policy (access lists, filters, AAA).
For multiple context mode, the FWSM first classifies the packet according to a unique interface.
3. The FWSM records that a session is established.
4. If the destination MAC address is in its table, the FWSM forwards the packet out of the inside
interface. The destination MAC address is that of the downstream router, 209.186.201.1.
If the destination MAC address is not in the FWSM table, the FWSM attempts to discover the MAC
address by sending an ARP request and a ping. The first packet is dropped.
5. The web server responds to the request; because the session is already established, the packet
bypasses the many lookups associated with a new connection.
6. The FWSM forwards the packet to the outside user.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 5-15
Chapter 5 Configuring the Firewall Mode
Setting Transparent or Routed Firewall Mode
Host
Internet
209.165.201.2
FWSM Management IP
209.165.201.6
92894
Host
209.165.201.3
The following steps describe how data moves through the FWSM (see Figure 5-12):
1. A user on the outside network attempts to reach an inside host.
2. The FWSM receives the packet and adds the source MAC address to the MAC address table, if
required. Because it is a new session, it verifies if the packet is allowed according to the terms of the
security policy (access lists, filters, AAA).
For multiple context mode, the FWSM first classifies the packet according to a unique interface.
3. The packet is denied, and the FWSM drops the packet.
4. If the outside user is attempting to attack the inside network, the FWSM employs many technologies
to determine if a packet is valid for an already established session.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
5-16 OL-8123-01
Chapter 5 Configuring the Firewall Mode
Setting Transparent or Routed Firewall Mode
If you download a text configuration to the FWSM that changes the mode with the firewall transparent
command, be sure to put the command at the top of the configuration; the FWSM changes the mode as
soon as it reads the command and then continues reading the configuration you downloaded. If the
command is later in the configuration, the FWSM clears all the preceding lines in the configuration.
• To set the mode to transparent, enter the following command in each context:
hostname(config)# firewall transparent
• To set the mode to routed, enter the following command in each context:
hostname(config)# no firewall transparent
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 5-17
Chapter 5 Configuring the Firewall Mode
Setting Transparent or Routed Firewall Mode
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
5-18 OL-8123-01
C H A P T E R 6
Configuring Interface Parameters
This chapter describes how to configure each interface for a name, security level, and IP address. For
transparent firewall, you also need to configure a bridge group for each interface pair.
This chapter includes the following sections:
• Security Level Overview, page 6-1
• Configuring Interfaces for Routed Firewall Mode, page 6-2
• Configuring Interfaces for Transparent Firewall Mode, page 6-3
• Allowing Communication Between Interfaces on the Same Security Level, page 6-5
• Turning Off and Turning On Interfaces, page 6-6
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 6-1
Chapter 6 Configuring Interface Parameters
Configuring Interfaces for Routed Firewall Mode
For same security interfaces, you can configure established commands for both directions.
Note If you are using failover, do not use this procedure to name interfaces that you are reserving for failover
and Stateful Failover communications. See Chapter 13, “Configuring Failover,” to configure the failover
and state links.
Step 1 To specify the interface you want to configure, enter the following command:
hostname(config)# interface {vlan number | mapped_name}
In multiple context mode, enter the mapped name if one was assigned using the allocate-interface
command.
For example, enter the following command:
hostname(config)# interface vlan 101
The name is a text string up to 48 characters, and is not case-sensitive. You can change the name by
reentering this command with a new value. Do not enter the no form, because that command causes all
commands that refer to that name to be deleted.
Note After you set the name for an interface, the security-level is automatically changed to 0.
However, if the name is “inside,” then the security level becomes 100.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
6-2 OL-8123-01
Chapter 6 Configuring Interface Parameters
Configuring Interfaces for Transparent Firewall Mode
The standby keyword and address is used for failover. See Chapter 13, “Configuring Failover,” for more
information.
Note To set an IPv6 address, see the “Configuring IPv6 on an Interface” section on page 9-2.
The following example configures parameters in multiple context mode for the context configuration.
The interface ID is a mapped name.
hostname/contextA(config)# interface int1
hostname/contextA(config-if)# nameif outside
hostname/contextA(config-if)# security-level 100
hostname/contextA(config-if)# ip address 10.1.2.1 255.255.255.0
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 6-3
Chapter 6 Configuring Interface Parameters
Configuring Interfaces for Transparent Firewall Mode
Note If you are using failover, do not use this procedure to name interfaces that you are reserving for failover
and Stateful Failover communications.
For multiple context mode, follow these guidelines for configuring interfaces:
• You must configure the context interfaces from within each context.
• You can only configure context interfaces that you already assigned to the context in the system
configuration.
• The system configuration only lets you configure failover interfaces; do not configure failover
interfaces with this procedure.
• If you change the security level of an interface, and you do not want to wait for existing connections
to time out before the new security information is used, you can clear the connections using the
clear local-host command.
You can add any VLAN ID to the configuration, but only VLANs that are assigned to the FWSM by the
switch can pass traffic. To view all VLANs assigned to the FWSM, use the show vlan command.
To assign an interface to a bridge group, set the name, and set the security level, perform the following
steps:
In multiple context mode, enter the mapped name if one was assigned using the allocate-interface
command.
Step 2 To assign it to a bridge group, enter the following command:
hostname(config-if)# bridge-group number
Where number is an integer between 1 and 100. You can only assign two interfaces to a bridge group.
You cannot assign the same interface to more than one bridge group.
Step 3 To name the interface, enter the following command:
hostname(config-if)# nameif name
The name is a text string up to 48 characters, and is not case-sensitive. You can change the name by
reentering this command with a new value. Do not enter the no form, because that command causes all
commands that refer to that name to be deleted. If you name an interface “inside” and you do not set the
security level explicitly, then the FWSM sets the security level to 100.
Step 4 To set the security level, enter the following command:
hostname(config-if)# security-level number
Where number is an integer between 0 (lowest) and 100 (highest). By default, after you name the
interface, the FWSM sets the security level to 0.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
6-4 OL-8123-01
Chapter 6 Configuring Interface Parameters
Allowing Communication Between Interfaces on the Same Security Level
Do not assign a host address (/32 or 255.255.255.255) to the transparent firewall. Also, do not use other
subnets that contain fewer than 3 host addresses (one each for the upstream router, downstream router,
and transparent firewall) such as a /30 subnet (255.255.255.252). The FWSM drops all ARP packets to
or from the first and last addresses in a subnet. Therefore, if you use a /30 subnet and assign a reserved
address from that subnet to the upstream router, then the FWSM drops the ARP request from the
downstream router to the upstream router.
The standby keyword and address is used for failover. See Chapter 13, “Configuring Failover,” for more
information.
The following example assigns VLANs 300 and 301 to bridge group 1, then sets the management address
and standby address of bridge group 1:
hostname(config)# interface vlan 300
hostname(config-if)# nameif inside
hostname(config-if)# security-level 100
hostname(config-if)# bridge-group 1
hostname(config-if)# interface vlan 301
hostname(config-if)# nameif outside
hostname(config-if)# security-level 0
hostname(config-if)# bridge-group 1
hostname(config-if)# interface bvi 1
hostname(config-if)# ip address 10.1.3.1 255.255.255.0 standby 10.1.3.2
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 6-5
Chapter 6 Configuring Interface Parameters
Turning Off and Turning On Interfaces
Note Even if you enable NAT control, you do not need to configure NAT between same security level
interfaces. See the “NAT and Same Security Level Interfaces” section on page 12-12 for more
information on NAT and same security level interfaces.
If you enable same security interface communication, you can still configure interfaces at different
security levels as usual.
To enable interfaces on the same security level to communicate with each other, enter the following
command:
hostname(config)# same-security-traffic permit inter-interface
Note We recommend that you do not make the outside interface (for example, where you access the Internet)
on the same security level as your inside interfaces. On the FWSM, all connections have an associated
xlate entry (even when you do not explicitly configure NAT). Xlates are normally created for
connections between the inside interface and any lower security interface. In a same-security-traffic
configuration, the FWSM randomly chooses which same-security interface is the “inside” interface for
the sake of creating xlates. This selection may change later after a reload or after a software upgrade. If
the FWSM considers the outside same-security interface as the “inside” interface, it creates xlates for
every Internet host being accessed through it.
If there is any application (or a virus) on the internal network that scans thousands of Internet hosts, all
entries in the xlate table may be quickly exhausted (see the “Managed System Resources” section on
page A-3 for xlate limits). After that, the FWSM will stop creating new xlates, logging error message
%FWSM-3-305006: (“translation creation failed”) for every new connection. The show resource usage
command will show the number of active xlates equal or close to the limit. The clear xlate command
will temporarily recover connectivity.
To avoid this situation, we recommend that the outside interface should always have security level lower
than any other FWSM interface. This configuration guarantees that the FWSM always considers the ISP
link as an outside interface. In this case, only one xlate will be created for every application or virus
scanning Internet hosts from the inside network. No xlates will be created for Internet hosts being
scanned.
Step 1 To enter the interface configuration mode, enter the following command:
hostname(config)# interface {vlan number | mapped_name}
In multiple context mode, enter the mapped name if one was assigned using the allocate-interface
command.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
6-6 OL-8123-01
Chapter 6 Configuring Interface Parameters
Turning Off and Turning On Interfaces
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 6-7
Chapter 6 Configuring Interface Parameters
Turning Off and Turning On Interfaces
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
6-8 OL-8123-01
C H A P T E R 7
Configuring Basic Settings
This chapter describes how to configure basic settings on your FWSM that are typically required for a
functioning configuration. This chapter includes the following sections:
• Changing the Passwords, page 7-1
• Setting the Hostname, page 7-3
• Setting the Domain Name, page 7-4
• Setting the Prompt, page 7-4
• Configuring a Login Banner, page 7-5
• Configuring Connection Limits for Transparent Firewall Mode and Non-NAT Configurations, page
7-5
Note In multiple context mode, every context and the system execution space has its own login policies and
passwords.
You can enter passwd or password. The password is a case-sensitive password of up to 16 alphanumeric
and special characters. You can use any character in the password except a question mark or a space.
The password is saved in the configuration in encrypted form, so you cannot view the original password
after you enter it. Use the no password command to restore the password to the default setting.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 7-1
Chapter 7 Configuring Basic Settings
Changing the Passwords
The password is a case-sensitive password of up to 16 alphanumeric and special characters. You can use
any character in the password except a question mark or a space.
This command changes the password for the highest privilege level. If you configure local command
authorization, you can set enable passwords for each privilege level from 0 to 15.
The password is saved in the configuration in encrypted form, so you cannot view the original password
after you enter it. Enter the enable password command without a password to set the password to the
default, which is blank.
Step 1 To reboot the FWSM into the maintenance partition, enter the following command at the switch prompt:
Router# hw-module module mod_num reset cf:1
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
7-2 OL-8123-01
Chapter 7 Configuring Basic Settings
Setting the Hostname
This example shows how to set the password for the root account:
root@localhost# passwd
Changing password for user root
New password: *sh1p
Retype new password: *sh1p
passwd: all authentication tokens updated successfully
This example shows how to set the password for the guest account:
root@localhost# passwd-guest
Changing password for user guest
New password: f1rc8t
Retype new password: f1rc8t
passwd: all authentication tokens updated successfully
This name can be up to 63 characters. A hostname must start and end with a letter or digit, and have as
interior characters only letters, digits, or a hyphen.
This name appears in the command line prompt. For example:
hostname(config)# hostname farscape
farscape(config)#
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 7-3
Chapter 7 Configuring Basic Settings
Setting the Domain Name
For example, to set the domain as example.com, enter the following command:
hostname(config)# domain-name example.com
The order in which you enter the keywords determines the order of the elements in the prompt, which
are separated by a slash (/). See the following descriptions for the keywords:
• hostname—Displays the hostname.
• domain—Displays the domain name.
• context—(Multiple mode only) Displays the current context.
• priority—Displays the failover priority as pri (primary) or sec (secondary). Set the priority using
the failover lan unit command.
• slot—Displays the slot location in the switch.
• state—Displays the traffic-passing state of the unit. The following values are displayed for the state
keyword:
– act—Failover is enabled, and the unit is actively passing traffic.
– stby— Failover is enabled, and the unit is not passing traffic and is in a standby, failed, or other
non-active state.
– actNoFailover—Failover is not enabled, and the unit is actively passing traffic.
– stbyNoFailover—Failover is not enabled, and the unit is not passing traffic. This might happen
when there is an interface failure above the threshold on the standby unit.
For example, to show all available elements in the prompt, enter the following command:
hostname(config)# prompt hostname context priority slot state
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
7-4 OL-8123-01
Chapter 7 Configuring Basic Settings
Configuring a Login Banner
hostname/admin/pri/6/act(config)#
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 7-5
Chapter 7 Configuring Basic Settings
Configuring Connection Limits for Transparent Firewall Mode and Non-NAT Configurations
Limiting the number of embryonic connections protects you from a DoS attack. The FWSM uses the
embryonic limit to trigger TCP Intercept. An embryonic connection is a connection request that has not
finished the necessary handshake between source and destination. TCP Intercept uses the SYN cookies
algorithm to prevent TCP SYN-flooding attacks. A SYN-flooding attack consists of a series of SYN
packets usually originating from spoofed IP addresses. The constant flood of SYN packets keeps the
server SYN queue full, which prevents it from servicing connection requests. When the embryonic
connection threshold of a connection is crossed, the FWSM acts as a proxy for the server and generates
a SYN-ACK response to the client's SYN request. When the FWSM receives an ACK back from the
client, it can then authenticate the client and allow the connection to the server.
To configure connection limits, enter the following command:
hostname(config)# static (real_interface,mapped_interface) real_ip real_ip [netmask mask]
[dns] [[tcp] tcp_max_conns [emb_limit]] [udp udp_max_conns] [norandomseq]
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
7-6 OL-8123-01
CH A P T E R 8
Configuring IP Routing and DHCP Services
This chapter describes how to configure IP routing and DHCP on the FWSM. This chapter includes the
following sections:
• How Routing Behaves Within FWSM, page 8-1
• Configuring Static and Default Routes, page 8-2
• Configuring OSPF, page 8-4
• Configuring RIP, page 8-18
• Configuring Multicast Routing, page 8-19
• Configuring Asymmetric Routing Support, page 8-26
• Configuring DHCP, page 8-28
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 8-1
Chapter 8 Configuring IP Routing and DHCP Services
Configuring Static and Default Routes
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
8-2 OL-8123-01
Chapter 8 Configuring IP Routing and DHCP Services
Configuring Static and Default Routes
Note The default route for the transparent firewall, which is required to provide a return path for management
traffic, is only applied to management traffic from one bridge group network. This is because the default
route specifies an interface in the bridge group as well as the router IP address on the bridge group
network, and you can only define one default route. If you have management traffic from more than one
bridge group network, you need to specify a static route that identifies the network from which you
expect management traffic.
The FWSM supports up to three equal cost routes to the same destination per interface for load
balancing.
This section includes the following topics:
• Configuring a Static Route, page 8-3
• Configuring a Default Route, page 8-4
For information about configuring IPv6 static and default routes, see the “Configuring IPv6 Default and
Static Routes” section on page 9-5.
The dest_ip and mask is the IP address for the destination network and the gateway_ip is the address of
the next-hop router.
The distance is the administrative distance for the route. The default is 1 if you do not specify a value.
Administrative distance is a parameter used to compare routes among different routing protocols. The
default administrative distance for static routes is 1, giving it precedence over routes discovered by
dynamic routing protocols but not directly connect routes. The default administrative distance for routes
discovered by OSPF is 110. If a static route has the same administrative distance as a dynamic route, the
static routes take precedence. Connected routes always take precedence over static or dynamically
discovered routes.
Static routes remain in the routing table even if the specified gateway becomes unavailable. If the
specified gateway becomes unavailable, you need to remove the static route from the routing table
manually. However, static routes are removed from the routing table if the associated interface goes
down. They are reinstated when the interface comes back up.
Note If you create a static route with an administrative distance greater than the administrative distance of the
routing protocol running on the FWSM, then a route to the specified destination discovered by the
routing protocol takes precedence over the static route. The static route is used only if the dynamically
discovered route is removed from the routing table.
The following example creates a static route that sends all traffic destined for 10.1.1.0/24 to the router
(10.1.2.45) connected to the inside interface:
hostname(config)# route inside 10.1.1.0 255.255.255.0 10.1.2.45 1
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 8-3
Chapter 8 Configuring IP Routing and DHCP Services
Configuring OSPF
You can define up to three equal cost routes to the same destination per interface. ECMP is not supported
across multiple interfaces. With ECMP, the traffic is not necessarily divided evenly between the routes;
traffic is distributed among the specified gateways based on an algorithm that hashes the source and
destination IP addresses.
The following example shows static routes that are equal cost routes that direct traffic to three different
gateways on the outside interface. The FWSM distributes the traffic among the specified gateways.
hostname(config)# route outside 10.10.10.0 255.255.255.0 192.168.1.1
hostname(config)# route outside 10.10.10.0 255.255.255.0 192.168.1.2
hostname(config)# route outside 10.10.10.0 255.255.255.0 192.168.1.3
Tip You can enter 0 0 instead of 0.0.0.0 0.0.0.0 for the destination network address and mask, for example:
hostname(config)# route outside 0 0 192.168.1 1
The following example shows an FWSM configured with three equal cost default routes. Traffic received
by the FWSM for which there is no static or learned route is distributed among the gateways with the IP
addresses 192.168.2.1, 192.168.2.2, 192.168.2.3.
hostname(config)# route outside 0 0 192.168.2.1
hostname(config)# route outside 0 0 192.168.2.2
hostname(config)# route outside 0 0 192.168.2.3
Configuring OSPF
This section describes how to configure OSPF. This section includes the following topics:
• OSPF Overview, page 8-5
• Enabling OSPF, page 8-6
• Redistributing Routes Between OSPF Processes, page 8-6
• Configuring OSPF Interface Parameters, page 8-9
• Configuring OSPF Area Parameters, page 8-11
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
8-4 OL-8123-01
Chapter 8 Configuring IP Routing and DHCP Services
Configuring OSPF
OSPF Overview
OSPF uses a link-state algorithm to build and calculate the shortest path to all known destinations. Each
router in an OSPF area contains an identical link-state database, which is a list of each of the router
usable interfaces and reachable neighbors.
The advantages of OSPF over RIP include the following:
• OSPF link-state database updates are sent less frequently than RIP updates, and the link-state
database is updated instantly rather than gradually as stale information is timed out.
• Routing decisions are based on cost, which is an indication of the overhead required to send packets
across a certain interface. FWSM calculates the cost of an interface based on link bandwidth rather
than the number of hops to the destination. The cost can be configured to specify preferred paths.
The disadvantage of shortest path first algorithms is that they require a lot of CPU cycles and memory.
FWSM can run two processes of OSPF protocol simultaneously, on different sets of interfaces. You
might want to run two processes if you have interfaces that use the same IP addresses (NAT allows these
interfaces to coexist, but OSPF does not allow overlapping addresses). Or you might want to run one
process on the inside, and another on the outside, and redistribute a subset of routes between the two
processes. Similarly, you might need to segregate private addresses from public addresses.
Redistribution between the two OSPF processes is supported. Static and connected routes configured on
OSPF-enabled interfaces on FWSM can also be redistributed into the OSPF process. You cannot enable
RIP on FWSM if OSPF is enabled. Redistribution between RIP and OSPF is not supported.
FWSM supports the following OSPF features:
• Support of intra-area, interarea, and external (Type I and Type II) routes.
• Support of a virtual link.
• OSPF LSA flooding.
• Authentication to OSPF packets (both password and MD5 authentication).
• Support for configuring FWSM as a designated router or a designated backup router. FWSM also
can be set up as an ABR; however, the ability to configure the FWSM as an ASBR is limited to
default information only (for example, injecting a default route).
• Support for stub areas and not-so-stubby-areas.
• Area boundary router type-3 LSA filtering.
• Advertisement of static and global address translations.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 8-5
Chapter 8 Configuring IP Routing and DHCP Services
Configuring OSPF
Enabling OSPF
To enable OSPF, you need to create an OSPF routing process, specify the range of IP addresses
associated with the routing process, then assign area IDs associated with that range of IP addresses.
This command enters the router configuration mode for this OSPF process.
The process_id is an internally used identifier for this routing process. It can be any positive integer. This
ID does not have to match the ID on any other device; it is for internal use only. You can use a maximum
of two processes.
Step 2 To define the IP addresses on which OSPF runs and to define the area ID for that interface, enter the
following command:
hostname(config-router)# network ip_address mask area area_id
Note The FWSM cannot redistribute routes between routing protocols. However, the FWSM can redistribute
static and connected routes.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
8-6 OL-8123-01
Chapter 8 Configuring IP Routing and DHCP Services
Configuring OSPF
Route map entries are read in order. You can identify the order using the sequence_number option, or
the FWSM uses the order in which you add the entries.
Step 2 Enter one or more match commands:
• To match any routes that have a destination network that matches a standard access list, enter the
following command:
hostname(config-route-map)# match ip address acl_id [acl_id] [...]
If you specify more than one access list, then the route can match any of the access lists.
• To match any routes that have a specified metric, enter the following command:
hostname(config-route-map)# match metric metric_value
If you specify more than one access list, then the route can match any of the access lists.
• To match any routes with the specified next hop interface, enter the following command:
hostname(config-route-map)# match interface if_name
If you specify more than one interface, then the route can match either interface.
• To match any routes that have been advertised by routers that match a standard access list, enter the
following command:
hostname(config-route-map)# match ip route-source acl_id [acl_id] [...]
If you specify more than one access list, then the route can match any of the access lists.
• To match the route type, enter the following command:
hostname(config-route-map)# match route-type {internal | external [type-1 | type-2]}
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 8-7
Chapter 8 Configuring IP Routing and DHCP Services
Configuring OSPF
The following example shows how to redistribute routes with a hop count equal to 1. The FWSM
redistributes these routes as external LSAs with a metric of 5, metric type of Type 1, and a tag equal to 1.
hostname(config)# route-map 1-to-2 permit
hostname(config-route-map)# match metric 1
hostname(config-route-map)# set metric 5
hostname(config-route-map)# set metric-type type-1
Step 1 If you have not already done so, enter the router configuration mode for the OSPF process you want to
redistribute into by entering the following command:
hostname(config)# router ospf process_id
Step 2 To specify the routes you want to redistribute, enter the following command:
hostname(config-router)# redistribute {ospf process_id
[match {internal | external 1 | external 2}] | static | connect} [metric metric-value]
[metric-type {type-1 | type-2}] [tag tag_value] [subnets] [route-map map_name]
The ospf process_id, static, and connect keywords specify from where you want to redistribute routes.
You can either use the options in this command to match and set route properties, or you can use a route
map. The tag and subnets options do not have equivalents in the route-map command. If you use both
a route map and options in the redistribute command, then they must match.
The following example shows route redistribution from OSPF process 1 into OSPF process 2 by
matching routes with a metric equal to 1. The FWSM redistributes these routes as external LSAs with a
metric of 5, metric type of Type 1, and a tag equal to 1.
hostname(config)# route-map 1-to-2 permit
hostname(config-route-map)# match metric 1
hostname(config-route-map)# set metric 5
hostname(config-route-map)# set metric-type type-1
hostname(config-route-map)# set tag 1
hostname(config-route-map)# router ospf 2
hostname(config-router)# redistribute ospf 1 route-map 1-to-2
The following example shows the specified OSPF process routes being redistributed into OSPF
process 109. The OSPF metric is remapped to 100.
hostname(config)# router ospf 109
hostname(config-router)# redistribute ospf 108 metric 100 subnets
The following example shows route redistribution where the link-state cost is specified as 5 and the
metric type is set to external, indicating that it has lower priority than internal metrics.
hostname(config)# router ospf 1
hostname(config-router)# redistribute ospf 2 metric 5 metric-type external
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
8-8 OL-8123-01
Chapter 8 Configuring IP Routing and DHCP Services
Configuring OSPF
Step 1 To enter the interface configuration mode, enter the following command:
hostname(config)# interface if_name
• To assign a password to be used by neighboring OSPF routers on a network segment that is using
the OSPF simple password authentication, enter the following command:
hostname(config-interface)# ospf authentication-key key
The value must be the same for all nodes on the network.
• To specify the length of time between the hello packets that the FWSM sends on an OSPF interface,
enter the following command:
hostname(config-interface)# ospf hello-interval seconds
The value must be the same for all nodes on the network.
• To enable OSPF MD5 authentication, enter the following command:
hostname(config-interface)# ospf message-digest-key key_id md5 key
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 8-9
Chapter 8 Configuring IP Routing and DHCP Services
Configuring OSPF
Usually, one key per interface is used to generate authentication information when sending packets
and to authenticate incoming packets. The same key identifier on the neighbor router must have the
same key value.
We recommend that you not keep more than one key per interface. Every time you add a new key,
you should remove the old key to prevent the local system from continuing to communicate with a
hostile system that knows the old key. Removing the old key also reduces overhead during rollover.
• To set the priority to help determine the OSPF designated router for a network, enter the following
command:
hostname(config-interface)# ospf priority number_value
The seconds must be greater than the expected round-trip delay between any two routers on the
attached network. The range is from 1 to 65535 seconds. The default is 5 seconds.
• To set the estimated number of seconds required to send a link-state update packet on an OSPF
interface, enter the following command:
hostname(config-interface)# ospf transmit-delay seconds
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
8-10 OL-8123-01
Chapter 8 Configuring IP Routing and DHCP Services
Configuring OSPF
Step 1 If you have not already done so, enter the router configuration mode for the OSPF process you want to
configure by entering the following command:
hostname(config)# router ospf process_id
• To enable MD5 authentication for an OSPF area, enter the following command:
hostname(config-router)# area area-id authentication message-digest
• To assign a specific cost to the default summary route used for the stub area, enter the following
command:
hostname(config-router)# area area-id default-cost cost
The following example shows how to configure the OSPF area parameters:
hostname(config)# router ospf 2
hostname(config-router)# area 0 authentication
hostname(config-router)# area 0 authentication message-digest
hostname(config-router)# area 17 stub
hostname(config-router)# area 17 default-cost 20
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 8-11
Chapter 8 Configuring IP Routing and DHCP Services
Configuring OSPF
Step 1 If you have not already done so, enter the router configuration mode for the OSPF process you want to
configure by entering the following command:
hostname(config)# router ospf process_id
This command helps reduce the size of the routing table. Using this command for OSPF causes an
OSPF ASBR to advertise one external route as an aggregate for all redistributed routes that are
covered by the address.
OSPF does not support summary-address 0.0.0.0 0.0.0.0.
In the following example, the summary address 10.1.0.0 includes address 10.1.1.0, 10.1.2.0,
10.1.3.0, and so on. Only the address 10.1.0.0 is advertised in an external link-state advertisement.
hostname(config-router)# summary-address 10.1.1.0 255.255.0.0
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
8-12 OL-8123-01
Chapter 8 Configuring IP Routing and DHCP Services
Configuring OSPF
Step 1 If the OSPF neighbor is not on a directly-connected network, create a static route to the OSPF neighbor.
Do not use the default route. See the “Configuring a Static Route” section on page 8-3 for more
information about creating static routes.
Step 2 Define the OSPF neighbor by performing the following tasks:
a. Enter router configuration mode for the OSPF process. Enter the following command:
hostname(config)# router ospf pid
The addr argument is the IP address of the OSPF neighbor. The if_name is the interface used to
communicate with the neighbor. If the OSPF neighbor is not on the same network as any of the
directly-connected interfaces, you must specify the interface.
c. If not already configured, define the networks and associated area ID for the interface facing the
OSPF neighbor by entering the following command:
hostname(config-router)# network addr mask area area_id
The addr mask pair must cover the IP address of the interface.
Step 3 Configure the interface through which the FWSM communicates with the neighbor by entering the
following commands:
hostname(config)# interface vlan
hostname(config-if)# ospf network point-to-point non-broadcast
The following example shows how to configure OSPF across a point-to-point, non-broadcast network.
The OSPF neighbor is not on a directly-connected network, so a static route is needed.
hostname(config)# route ospf_outside 10.3.3.0 255.255.255.0 10.1.1.99 1
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 8-13
Chapter 8 Configuring IP Routing and DHCP Services
Configuring OSPF
Step 1 If you have not already done so, enter the router configuration mode for the OSPF process you want to
configure by entering the following command:
hostname(config)# router ospf process_id
The following example shows how to configure route summarization between OSPF areas:
hostname(config)# router ospf 1
hostname(config-router)# area 17 range 12.1.0.0 255.255.0.0
Step 1 If you have not already done so, enter the router configuration mode for the OSPF process you want to
configure by entering the following command:
hostname(config)# router ospf process_id
The following example shows how to configure route summarization. The summary address 10.1.0.0
includes address 10.1.1.0, 10.1.2.0, 10.1.3.0, and so on. Only the address 10.1.0.0 is advertised in an
external link-state advertisement:
hostname(config)# router ospf 1
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
8-14 OL-8123-01
Chapter 8 Configuring IP Routing and DHCP Services
Configuring OSPF
Step 1 If you have not already done so, enter the router configuration mode for the OSPF process you want to
configure by entering the following command:
hostname(config)# router ospf process_id
Step 2 To force the ASBR to generate a default route, enter the following command:
hostname(config-router)# default-information originate [always] [metric metric-value]
[metric-type {1 | 2}] [route-map map-name]
Step 1 If you have not already done so, enter the router configuration mode for the OSPF process you want to
configure by entering the following command:
hostname(config)# router ospf process_id
Step 2 To configure the route calculation time, enter the following command:
hostname(config-router)# timers spf spf-delay spf-holdtime
The spf-delay is the delay time (in seconds) between when OSPF receives a topology change and when
it starts an SPF calculation. It can be an integer from 0 to 65535. The default time is 5 seconds. A value
of 0 means that there is no delay; that is, the SPF calculation is started immediately.
The spf-holdtime is the minimum time (in seconds) between two consecutive SPF calculations. It can be
an integer from 0 to 65535. The default time is 10 seconds. A value of 0 means that there is no delay;
that is, two SPF calculations can be done, one immediately after the other.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 8-15
Chapter 8 Configuring IP Routing and DHCP Services
Configuring OSPF
Step 1 If you have not already done so, enter the router configuration mode for the OSPF process you want to
configure by entering the following command:
hostname(config)# router ospf process_id
Step 2 To configure logging for neighbors going up or down, enter the following command:
hostname(config-router)# log-adj-changes [detail]
Note Logging must be enabled for the neighbor up/down messages to be sent.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
8-16 OL-8123-01
Chapter 8 Configuring IP Routing and DHCP Services
Configuring OSPF
Monitoring OSPF
You can display specific statistics such as the contents of IP routing tables, caches, and databases. You
can use the information provided to determine resource utilization and solve network problems. You can
also display information about node reachability and discover the routing path that your device packets
are taking through the network.
To display various routing statistics, perform one of the following tasks, as needed:
• To display general information about OSPF routing processes, enter the following command:
hostname# show ospf [process-id [area-id]]
• To display the internal OSPF routing table entries to the ABR and ASBR, enter the following
command:
hostname# show ospf border-routers
• To display lists of information related to the OSPF database for a specific router, enter the following
command:
hostname# show ospf [process-id [area-id]] database
• To display a list of LSAs waiting to be flooded over an interface (to observe OSPF packet pacing),
enter the following command:
hostname# show ospf flood-list if-name
• To display OSPF neighbor information on a per-interface basis, enter the following command:
hostname# show ospf neighbor [if-name] [neighbor-id] [detail]
• To display a list of all LSAs requested by a router, enter the following command:
hostname# show ospf request-list neighbor if_name
• To display a list of all LSAs waiting to be resent, enter the following command:
hostname# show ospf retransmission-list neighbor if_name
• To display a list of all summary address redistribution information configured under an OSPF
process, enter the following command:
hostname# show ospf [process-id] summary-address
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 8-17
Chapter 8 Configuring IP Routing and DHCP Services
Configuring RIP
Configuring RIP
This section describes how to configure RIP. This section includes the following topics:
• RIP Overview, page 8-18
• Enabling RIP, page 8-18
RIP Overview
Devices that support RIP send routing-update messages at regular intervals and when the network
topology changes. These RIP packets contain information about the networks that the devices can reach,
as well as the number of routers or gateways that a packet must travel through to reach the destination
address. RIP generates more traffic than OSPF, but is easier to configure initially.
RIP has advantages over static routes because the initial configuration is simple, and you do not need to
update the configuration when the topology changes. The disadvantage to RIP is that there is more
network and processing overhead than static routing.
FWSM uses a limited version of RIP; it does not send out RIP updates that identify the networks that
FWSM can reach. However, you can enable one or both of the following methods:
• Passive RIP—FWSM listens for RIP updates but does not send any updates about its networks out
of the interface.
Passive RIP allows FWSM to learn about networks to which it is not directly connected.
• Default Route Updates—Instead of sending normal RIP updates that describe all the networks
reachable through FWSM, FWSM sends a default route to participating devices that identifies
FWSM as the default gateway.
You can use the default route option with passive RIP, or alone. You might use the default route
option alone if you use static routes on FWSM, but do not want to configure static routes on
downstream routers. Typically, you would not enable the default route option on the outside
interface, because FWSM is not typically the default gateway for the upstream router.
Enabling RIP
To enable RIP on an interface, enter the following command:
hostname(config)# rip if_name {default | passive} [version {1 | 2
[authentication {text | md5} key key_id]}]
You can enable both the passive and default modes of RIP on an interface by entering the rip command
twice, one time for each method. For example, enter the following commands:
hostname(config)# rip inside default version 2 authentication md5 scorpius 1
hostname(config)# rip inside passive version 2 authentication md5 scorpius 1
If you want to enable passive RIP on all interfaces, but only enable default routes on the inside interface,
enter the following commands:
hostname(config)# rip inside default version 2 authentication md5 scorpius 1
hostname(config)# rip inside passive version 2 authentication md5 scorpius 1
hostname(config)# rip outside passive version 2 authentication md5 scorpius 1
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
8-18 OL-8123-01
Chapter 8 Configuring IP Routing and DHCP Services
Configuring Multicast Routing
Note Before testing your configuration, flush the ARP caches on any routers connected to the FWSM. For
Cisco routers, use the clear arp command to flush the ARP cache.
Note Only the UDP transport layer is supported for multicast routing.
Stub multicast routing provides dynamic host registration and facilitates multicast routing. When
configured for Stub Multicast Routing, the FWSM acts as an IGMP proxy agent. Instead of fully
participating in multicast routing, the FWSM forwards IGMP messages to an upstream multicast router,
which sets up delivery of the multicast data. When configured for Stub Multicast Routing, the FWSM
cannot be configured for PIM.
The FWSM supports both PIM-SM and bi-directional PIM. PIM-SM is a multicast routing protocol that
uses the underlying unicast routing information base or a separate multicast-capable routing information
base. It builds unidirectional shared trees rooted at a single Rendezvous Point per multicast group and
optionally creates shortest-path trees per multicast source.
Bi-directional PIM is a variant of PIM-SM that builds bi-directional shared trees connecting multicast
sources and receivers. Bi-directional trees are built using a DF election process operating on each link
of the multicast topology. With the assistance of the DF, multicast data is forwarded from sources to the
Rendezvous Point, and therefore along the shared tree to receivers, without requiring source-specific
state. The DF election takes place during Rendezvous Point discovery and provides a default route to the
Rendezvous Point.
Note If the FWSM is the PIM RP, use the untranslated outside address of the FWSM as the RP address.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 8-19
Chapter 8 Configuring IP Routing and DHCP Services
Configuring Multicast Routing
The number of entries in the multicast routing tables are limited by the amount of RAM on the system.
Table 8-1 lists the maximum number of entries for specific multicast tables based on the amount of RAM
on the FWSM. Once these limits are reached, any new entries are discarded.
Note Only the no igmp command appears in the interface configuration when you use the show run
command. If the multicast-routing command appears in the device configuration, then IGMP is
automatically enabled on all interfaces.
This section describes how to configure optional IGMP setting on a per-interface basis. This section
includes the following topics:
• Disabling IGMP on an Interface, page 8-21
• Configuring Group Membership, page 8-21
• Configuring a Statically Joined Group, page 8-21
• Controlling Access to Multicast Groups, page 8-21
• Limiting the Number of IGMP States on an Interface, page 8-22
• Modifying the Query Interval and Query Timeout, page 8-22
• Changing the Query Response Time, page 8-23
• Changing the IGMP Version, page 8-23
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
8-20 OL-8123-01
Chapter 8 Configuring IP Routing and DHCP Services
Configuring Multicast Routing
Step 1 Create an access list for the multicast traffic. You can create more than one entry for a single access list.
You can use extended or standard access lists.
• To create a standard access list, enter the following command:
hostname(config)# access-list name standard [permit | deny] ip_addr mask
The ip_addr argument is the IP address of the multicast group being permitted or denied.
• To create an extended access list, enter the following command:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 8-21
Chapter 8 Configuring IP Routing and DHCP Services
Configuring Multicast Routing
The dst_ip_addr argument is the IP address of the multicast group being permitted or denied.
Step 2 Apply the access list to an interface by entering the following command:
hostname(config-if)# igmp access-group acl
Valid values range from 0 to 500, with 500 being the default value. Setting this value to 0 prevents
learned groups from being added, but manually defined memberships (using the igmp join-group and
igmp static-group commands) are still permitted. The no form of this command restores the default
value.
If the FWSM does not hear a query message on an interface for the specified timeout value (by default,
255 seconds), then the FWSM becomes the designated router and starts sending the query messages. To
change this timeout value, enter the following command:
hostname(config-if)# igmp query-timeout seconds
Note The igmp query-timeout and igmp query-interval commands require IGMP Version 2.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
8-22 OL-8123-01
Chapter 8 Configuring IP Routing and DHCP Services
Configuring Multicast Routing
Note Stub Multicast Routing and PIM are not supported concurrently.
For example:
hostname(config)# mroute 1.1.1.1 255.255.255.255 2.2.2.2
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 8-23
Chapter 8 Configuring IP Routing and DHCP Services
Configuring Multicast Routing
where 1.1.1.1 is the server that is sending out the multicast traffic, and 2.2.2.2 is the RPF neighbor for
FWSM.
Note You can specify the interface or the RPF neighbor, but not at the same time.
To configure a static multicast route for a stub area, enter the following command:
hostname(config)# mroute src_ip src_mask input_if_name [dense output_if_name] [distance]
Note The dense output_if_name keyword and argument pair is only supported for Stub Multicast Routing.
Note PIM is not supported with PAT. The PIM protocol does not use ports and PAT only works with protocols
that use ports.
This section describes how to configure optional PIM settings. This section includes the following
topics:
• Disabling PIM on an Interface, page 8-24
• Configuring a Static Rendezvous Point Address, page 8-24
• Configuring the Designated Router Priority, page 8-25
• Filtering PIM Register Messages, page 8-25
• Configuring PIM Message Intervals, page 8-25
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
8-24 OL-8123-01
Chapter 8 Configuring IP Routing and DHCP Services
Configuring Multicast Routing
Note The FWSM does not support Auto-RP or PIM BSR; you must use the pim rp-address command to
specify the RP address.
You can configure the FWSM to serve as RP to more than one group. The group range specified in the
access list determines the PIM RP group mapping. If an access list is not specified, then the RP for the
group is applied to the entire multicast group range (224.0.0.0/4).
To configure the address of the PIM PR, enter the following command:
hostname(config)# pim rp-address ip_address [acl] [bidir]
The ip_address argument is the unicast IP address of the router to be a PIM RP. The acl argument is the
name or number of an access list that defines which multicast groups the RP should be used with.
Excluding the bidir keyword causes the groups to operate in PIM sparse mode.
Note The FWSM always advertises the bidir capability in the PIM hello messages regardless of the actual bidir
configuration.
Valid values for the seconds argument range from 1 to 3600 seconds.
Every 60 seconds, the FWSM sends PIM join/prune messages. To change this value, enter the following
command:
hostname(config-if)# pim join-prune-interval seconds
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 8-25
Chapter 8 Configuring IP Routing and DHCP Services
Configuring Asymmetric Routing Support
Valid values for the seconds argument range from 10 to 600 seconds.
Note In failover configurations, you must enable Stateful Failover for session information to be passed from
the standby unit or failover group to the active unit or failover group.
If it does not find a match, the packet is dropped. If it finds a match, then one of the following actions
occurs:
• If the incoming traffic originated on a peer unit in a failover configuration, some or all of the layer
2 header is rewritten and the packet is redirected to the other unit. This redirection continues as long
as the session is active.
• If the incoming traffic originated on a different interface on the same unit, some or all of the layer
2 header is rewritten and the packet is re-injected into the stream.
Note Using the asr-group command to configure asymmetric routing support is more secure than using the
static command with the nailed option.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
8-26 OL-8123-01
Chapter 8 Configuring IP Routing and DHCP Services
Configuring Asymmetric Routing Support
Valid values for num range from 1 to 32. You need to enter the command for each interface that will
participate in the ASR group. You can view the number of ASR packets transmitted, received, or dropped
by an interface using the show interface detail command.
You can create up to 32 ASR groups and assign a maximum of 8 interfaces to each group.
Note The upstream and downstream routers must use one MAC address per VLAN and have different MAC
addresses for different VLANs to allow for the redirection of packets from a standby unit to an active
unit in failover configurations.
ISP A ISP B
Context A Context B
interface Ethernet4 interface Ethernet2
nameif outside nameif outside
asr-group 1 Failover/State link asr-group 1
FWSM FWSM
Outbound Traffic
132916
Context A is active on one unit and context B is active on the other. Each context has an interface named
“outside”, both of which are configured as part of asr-group 1. The outbound traffic is routed through
the unit where context A is active. However, the return traffic is being routed through the unit where
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 8-27
Chapter 8 Configuring IP Routing and DHCP Services
Configuring DHCP
context B is active. Normally, the return traffic would be dropped because there is no session information
for the traffic on the unit. However, because the interface is configured with an asr-group number, the
unit looks at the session information for any other interfaces with the same asr-group assigned to it. It
finds the session information in the outside interface for context A, which is in the standby state on the
unit, and forwards the return traffic to the unit where context A is active.
The traffic is forwarded though the outside interface of context A on the unit where context A is in the
standby state and returns through the outside interface of context A on the unit where context A is in the
active state. This forwarding continues as needed until the session ends.
Configuring DHCP
DHCP provides network configuration parameters, such as IP addresses, to DHCP clients. The FWSM
can provide a DHCP server or DHCP relay services to DHCP clients attached to FWSM interfaces. The
DHCP server provides network configuration parameters directly to DHCP clients. DHCP relay passes
DHCP requests received on one interface to an external DHCP server located behind a different
interface.
This section includes the following topics:
• Configuring a DHCP Server, page 8-28
• Configuring DHCP Relay Services, page 8-32
Note The FWSM DHCP server does not support BOOTP requests.
In multiple context mode, you cannot enable the DHCP server or DHCP relay on an interface that is used
by more than one context.
You can configure a DHCP server on each interface of the FWSM. Each interface can have its own pool
of addresses to draw from. However the other DHCP settings, such as DNS servers, domain name,
options, ping timeout, and WINS servers, are configured globally and used by the DHCP server on all
interfaces.
You cannot configure a DHCP client or DHCP Relay services on an interface on which the server is
enabled. Additionally, DHCP clients must be directly connected to the interface on which the server is
enabled.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
8-28 OL-8123-01
Chapter 8 Configuring IP Routing and DHCP Services
Configuring DHCP
To enable the DHCP server on a given FWSM interface, perform the following steps:
Step 1 Create a DHCP address pool. Enter the following command to define the address pool:
hostname(config)# dhcpd address ip_address-ip_address interface_name
The FWSM assigns a client one of the addresses from this pool to use for a given length of time. These
addresses are the local, untranslated addresses for the directly connected network.
The address pool must be on the same subnet as the FWSM interface.
Step 2 (Optional) To specify the IP address(es) of the DNS server(s) the client will use, enter the following
command:
hostname(config)# dhcpd dns dns1 [dns2]
This lease equals the amount of time (in seconds) the client can use its allocated IP address before the
lease expires. Enter a value between 0 to 1,048,575. The default value is 3600 seconds.
Step 5 (Optional) To configure the domain name the client uses, enter the following command:
hostname(config)# dhcpd domain domain_name
Step 6 (Optional) To configure the DHCP ping timeout value, enter the following command:
hostname(config)# dhcpd ping_timeout milliseconds
To avoid address conflicts, the FWSM sends two ICMP ping packets to an address before assigning that
address to a DHCP client. This command specifies the timeout value for those packets.
Step 7 (Transparent Firewall Mode) Define a default gateway. To define the default gateway that is sent to
DHCP clients, enter the following command:
hostname(config)# dhcpd option 3 ip gateway_ip
If you do not use the DHCP option 3 to define the default gateway, DHCP clients use the IP address of
the management interface. The management interface does not route traffic.
Step 8 To enable the DHCP daemon within the FWSM to listen for DHCP client requests on the enabled
interface, enter the following command:
hostname(config)# dhcpd enable interface_name
For example, to assign the range 10.0.1.101 to 10.0.1.110 to hosts connected to the inside interface, enter
the following commands:
hostname(config)# dhcpd address 10.0.1.101-10.0.1.110 inside
hostname(config)# dhcpd dns 209.165.201.2 209.165.202.129
hostname(config)# dhcpd wins 209.165.201.5
hostname(config)# dhcpd lease 3000
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 8-29
Chapter 8 Configuring IP Routing and DHCP Services
Configuring DHCP
• To configure a DHCP option that returns a text string, enter the following command:
hostname(config)# dhcpd option code ascii text
• To configure a DHCP option that returns a hexadecimal value, enter the following command:
hostname(config)# dhcpd option code hex value
Note The FWSM does not verify that the option type and value that you provide match the expected type and
value for the option code as defined in RFC 2132. For example, you can enter dhcpd option 46 ascii
hello, and the FWSM accepts the configuration although option 46 is defined in RFC 2132 as expecting
a single-digit, hexadecimal value. For more information about the option codes and their associated
types and expected values, refer to RFC 2132.
Table 8-2 shows the DHCP options that are not supported by the dhcpd option command:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
8-30 OL-8123-01
Chapter 8 Configuring IP Routing and DHCP Services
Configuring DHCP
Specific options, DHCP option 3, 66, and 150, are used to configure Cisco IP Phones. See the “Using
Cisco IP Phones with a DHCP Server” section on page 8-31 topic for more information about
configuring those options.
• To provide the IP address or name of a TFTP server for option 66, enter the following command:
hostname(config)# dhcpd option 66 ascii server_name
• To provide the IP address or names of one or two TFTP servers for option 150, enter the following
command:
hostname(config)# dhcpd option 150 ip server_ip1 [server_ip2]
The server_ip1 is the IP address or name of the primary TFTP server while server_ip2 is the
IP address or name of the secondary TFTP server. A maximum of two TFTP servers can be
identified using option 150.
• To provide set the default route, enter the following command:
hostname(config)# dhcpd option 3 ip router_ip1
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 8-31
Chapter 8 Configuring IP Routing and DHCP Services
Configuring DHCP
Step 1 Set the IP addresses of DHCP servers using one or both of the following methods:
• To configure an interface-specific server, enter the following commands:
hostname(config)# interface {vlan vlan_id | mapped_name}
hostname(config-if)# dhcprelay server ip_address
Where the vlan vlan_id or mapped_interface argument is the interface on which you want to enable
DHCP relay.
You can enter the dhcprelay server command up to 4 times per interface, with a maximum of 10
servers allowed (including global servers) per context or in single mode.
The interface-specific servers take precedence over any global servers configured.
The DHCP servers cannot reside on the same interface on which you enable DHCP relay. (The
FWSM determines which interface is connected to the DHCP server by using the routing table.)
Note If you configure an interface-specific server address after a connection has already been set up
between a client and an existing global DHCP server, the client keeps using the global server
until the server address lease expires. After the lease expires, new connections use the
interface-specific server.
Where the if_name argument is the interface connected to the DHCP server. The DHCP server must
reside on a different interface from the DHCP clients where you enable DHCP relay.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
8-32 OL-8123-01
Chapter 8 Configuring IP Routing and DHCP Services
Configuring DHCP
You can use this command up to 10 times to identify up to 10 servers, including any
interface-specific servers.
Step 2 To enable DHCP relay on the interface connected to the clients, enter the following command:
hostname(config)# dhcprelay enable interface
You can enable DHCP relay on multiple interfaces; however, you cannot configure DHCP relay on any
interfaces that are connected to the DHCP servers. For example, you can configure DHCP relay on
inside1 and inside 2 interfaces, and configure DHCP servers on outside and dmz interfaces. You cannot
configure any servers on inside1 or inside2.
Step 3 (Optional) To set the number of seconds allowed for relay address negotiation, enter the following
command:
hostname(config)# dhcprelay timeout seconds
Step 4 (Optional) To change the first default router address in the packet sent from the DHCP server to the
address of the FWSM interface, enter the following command:
hostname(config)# dhcprelay setroute if_name
This action allows the client to set its default route to point to the FWSM even if the DHCP server
specifies a different router.
If there is no default router option in the packet, the FWSM adds one containing the interface address.
The following example enables the FWSM to forward DHCP requests from clients connected to the
inside1 and inside2 interfaces to a global DHCP server on the outside interface and a global DHCP server
on the DMZ interface:
hostname(config)# dhcprelay server 209.165.200.225 outside
hostname(config)# dhcprelay server 209.165.201.4 dmz
hostname(config)# dhcprelay enable inside1
hostname(config)# dhcprelay setroute inside1
hostname(config)# dhcprelay enable inside2
hostname(config)# dhcprelay setroute inside2
The following example enables the FWSM to forward DHCP requests from clients connected to the
inside1 interface (on vlan 20) to an interface-specific DHCP server (on the outside interface). The
inside2 interface uses the global DHCP servers on the outside and DMZ interfaces. Note that the global
DHCP server on the outside interface is the same as the interface-specific server for inside1.
hostname(config)# interface vlan 20
hostname(config-if)# dhcprelay server 209.165.200.225
hostname(config)# dhcprelay server 209.165.200.225 outside
hostname(config)# dhcprelay server 209.165.201.4 dmz
hostname(config)# dhcprelay enable inside1
hostname(config)# dhcprelay setroute inside1
hostname(config)# dhcprelay enable inside2
hostname(config)# dhcprelay setroute inside2
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 8-33
Chapter 8 Configuring IP Routing and DHCP Services
Configuring DHCP
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
8-34 OL-8123-01
C H A P T E R 9
Configuring IPv6
This chapter describes how to enable and configure IPv6 on FWSM. IPv6 is available in routed firewall
mode only.
This chapter includes the following sections:
• IPv6-Enabled Commands, page 9-1
• Configuring IPv6 on an Interface, page 9-2
• Configuring a Dual IP Stack on an Interface, page 9-4
• Configuring IPv6 Duplicate Address Detection, page 9-4
• Configuring IPv6 Default and Static Routes, page 9-5
• Configuring IPv6 Access Lists, page 9-5
• Configuring IPv6 Neighbor Discovery, page 9-6
• Configuring a Static IPv6 Neighbor, page 9-10
• Verifying the IPv6 Configuration, page 9-10
For an example IPv6 configuration, see the “Example 4: IPv6 Configuration Example” section on
page B-13.
IPv6-Enabled Commands
The following FWSM commands can accept and display IPv6 addresses:
• capture
• configure
• copy
• http
• name
• object-group
• ping
• show conn
• show local-host
• show tcpstat
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 9-1
Chapter 9 Configuring IPv6
Configuring IPv6 on an Interface
• ssh
• telnet
• tftp-server
• who
• write
Note Failover does not support IPv6. The ipv6 address command does not support setting standby addresses
for failover configurations. The failover interface ip command does not support using IPv6 addresses
on the failover and Stateful Failover interfaces.
When entering IPv6 addresses in commands that support them, simply enter the IPv6 address using
standard IPv6 notation, for example ping fe80::2e0:b6ff:fe01:3b7a. The FWSM correctly recognizes
and processes the IPv6 address. However, you must enclose the IPv6 address in square brackets ([ ]) in
the following situations:
• You need to specify a port number with the address, for example
[fe80::2e0:b6ff:fe01:3b7a]:8080.
• The command uses a colon as a separator, such as the write net and config net commands. For
example, configure net [fe80::2e0:b6ff:fe01:3b7a]:/tftp/config/pixconfig.
The following commands were modified to work for IPv6:
• debug
• fragment
• ip verify
• mtu
• icmp (entered as ipv6 icmp)
The following inspection engines support IPv6:
• FTP
• HTTP
• ICMP
• SMTP
• TCP
• UDP
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
9-2 OL-8123-01
Chapter 9 Configuring IPv6
Configuring IPv6 on an Interface
Note You cannot configure IPv6 on an interface that is used by more than one context (a shared VLAN).
Step 1 Enter interface configuration mode for the interface for which you are configuring the IPv6 addresses:
hostname(config)# interface interface_name
Step 2 Configure an IPv6 address for the interface. You can assign several IPv6 addresses to an interface, such
as an IPv6 link-local, site-local, and global address. However, at a minimum, you must configure a
link-local address.
There are several methods for configuring IPv6 addresses for an interface. Pick the method that suits
your needs from the following:
• The simplest method is to enable stateless autoconfiguration on the interface. Enabling stateless
autoconfiguration on the interface configures IPv6 addresses based on prefixes received in Router
Advertisement messages. A link-local address, based on the Modified EUI-64 interface ID, is
automatically generated for the interface when stateless autoconfiguration is enabled. To enable
stateless autoconfiguration, enter the following command:
hostname(config-if)# ipv6 address autoconfig
• If you only need to configure a link-local address on the interface and are not going to assign any
other IPv6 addresses to the interface, you have the option of manually defining the link-local address
or generating one based on the interface MAC address (Modified EUI-64 format).
Enter the following command to manually specify the link-local address:
hostname(config-if)# ipv6 address ipv6-address link-local
Enter the following command to enable IPv6 on the interface and automatically generate the link-local
address using the Modified EUI-64 interface ID based on the interface MAC address:
hostname(config-if)# ipv6 enable
Note You do not need to use the ipv6 enable command if you enter any other ipv6 address commands
on an interface; IPv6 support is automatically enabled as soon as you assign an IPv6 address to
the interface.
• Assign a site-local or global address to the interface. When you assign a site-local or global address,
a link-local address is automatically created. Enter the following command to add a global or
site-local address to the interface. Use the optional eui-64 keyword to use the Modified EUI-64
interface ID in the low order 64 bits of the address.
hostname(config-if)# ipv6 address ipv6-address [eui-64]
Step 3 (Optional) Suppress Router Advertisement messages on an interface. By default, Router Advertisement
messages are automatically sent in response to router solicitation messages. You may want to disable
these messages on any interface for which you do not want FWSM to supply the IPv6 prefix (for
example, the outside interface).
Enter the following command to suppress Router Advertisement messages on an interface:
hostname(config-if)# ipv6 nd suppress-ra
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 9-3
Chapter 9 Configuring IPv6
Configuring a Dual IP Stack on an Interface
See the “Example 4: IPv6 Configuration Example” section on page B-13 for an example of IPv6
addresses applied to an interface.
The value argument can be any value from 0 to 600. Setting the value argument to 0 disables duplicate
address detection on the interface.
When you configure an interface to send out more than one duplicate address detection attempt, you can
also use the ipv6 nd ns-interval command to configure the interval at which the neighbor solicitation
messages are sent out. By default, they are sent out once every 1000 milliseconds.
To change the neighbor solicitation message interval, enter the following command:
hostname(config-if)# ipv6 nd ns-interval value
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
9-4 OL-8123-01
Chapter 9 Configuring IPv6
Configuring IPv6 Default and Static Routes
Note Changing this value changes it for all neighbor solicitation messages sent out on the interface, not just
those used for duplicate address detection.
Note The ipv6 route command works like the route command used to define IPv4 static routes.
See the “Example 4: IPv6 Configuration Example” section on page B-13 for an example of the ipv6
route command used to configure the default route.
Step 1 Create an access entry. To create an access list, use the ipv6 access-list command to create entries for
the access list. There are two main forms of this command to choose from, one for creating access list
entries specifically for ICMP traffic, and one to create access list entries for all other types of IP traffic.
• To create an IPv6 access list entry specifically for ICMP traffic, enter the following command:
hostname(config)# ipv6 access-list id [line num] {permit | deny} icmp source
destination [icmp_type]
The following describes the arguments for the ipv6 access-list command:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 9-5
Chapter 9 Configuring IPv6
Configuring IPv6 Neighbor Discovery
• id—The name of the access list. Use the same id in each command when you are entering multiple
entries for an access list.
• line num—When adding an entry to an access list, you can specify the line number in the list where
the entry should appear.
• permit | deny—Determines whether the specified traffic is blocked or allowed to pass.
• icmp—Indicates that the access list entry applies to ICMP traffic.
• protocol—Specifies the traffic being controlled by the access list entry. This can be the name (ip,
tcp, or udp) or number (1-254) of an IP protocol. Alternatively, you can specify a protocol object
group using object-group grp_id.
• source and destination—Specifies the source or destination of the traffic. The source or destination
can be an IPv6 prefix, in the format prefix/length, to indicate a range of addresses, the keyword any,
to specify any address, or a specific host designated by host host_ipv6_addr.
• src_port and dst_port—The source and destination port (or service) argument. Enter an operator (lt
for less than, gt for greater than, eq for equal to, neq for not equal to, or range for an inclusive
range) followed by a space and a port number (or two port numbers separated by a space for the
range keyword).
• icmp_type—Specifies the ICMP message type being filtered by the access rule. The value can be a
valid ICMP type number (from 0 to 155) or one of the ICMP type literals as shown in Appendix D,
“Addresses, Protocols, and Ports”. Alternatively, you can specify an ICMP object group using
object-group id.
Step 2 To apply the access list to an interface, enter the following command:
hostname(config)# access-group access_list_name {in | out} interface if_name
See the “Example 4: IPv6 Configuration Example” section on page B-13 for an example IPv6 access list.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
9-6 OL-8123-01
Chapter 9 Configuring IPv6
Configuring IPv6 Neighbor Discovery
After receiving a neighbor solicitation message, the destination node replies by sending a neighbor
advertisement message (ICPMv6 Type 136) on the local link. The source address in the neighbor
advertisement message is the IPv6 address of the node sending the neighbor advertisement message; the
destination address is the IPv6 address of the node that sent the neighbor solicitation message. The data
portion of the neighbor advertisement message includes the link-layer address of the node sending the
neighbor advertisement message.
After the source node receives the neighbor advertisement, the source node and destination node can
communicate. Figure 9-1 shows the neighbor solicitation and response process.
132958
A and B can now exchange
packets on this link
Neighbor solicitation messages are also used to verify the reachability of a neighbor after the link-layer
address of a neighbor is identified. When a node wants to verifying the reachability of a neighbor, the
destination address in a neighbor solicitation message is the unicast address of the neighbor.
Neighbor advertisement messages are also sent when there is a change in the link-layer address of a node
on a local link. When there is such a change, the destination address for the neighbor advertisement is
the all-nodes multicast address.
You can configure the neighbor solicitation message interval and neighbor reachable time on a
per-interface basis. See the following topics for more information:
• Configuring the Neighbor Solicitation Message Interval, page 9-7
• Configuring the Neighbor Reachable Time, page 9-8
Valid values for the value argument range from 1000 to 3600000 milliseconds. The default value is 1000
milliseconds.
This setting is also sent in router advertisement messages.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 9-7
Chapter 9 Configuring IPv6
Configuring IPv6 Neighbor Discovery
Valid values for the value argument range from 0 to 3600000 milliseconds. The default is 0.
This information is also sent in router advertisement messages.
Router Router
advertisement advertisement
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
9-8 OL-8123-01
Chapter 9 Configuring IPv6
Configuring IPv6 Neighbor Discovery
configured unicast address, the source address in router solicitation messages is usually the unspecified
IPv6 address (0:0:0:0:0:0:0:0). If the host has a configured unicast address, the unicast address of the
interface sending the router solicitation message is used as the source address in the message. The
destination address in router solicitation messages is the all-routers multicast address with a scope of the
link. When a router advertisement is sent in response to a router solicitation, the destination address in
the router advertisement message is the unicast address of the source of the router solicitation message.
You can configure the following settings for router advertisement messages:
• The time interval between periodic router advertisement messages.
• The router lifetime value, which indicates the amount of time IPv6 nodes should consider FWSM to
be the default router.
• The IPv6 network prefixes in use on the link.
• Whether or not an interface transmits router advertisement messages.
Unless otherwise noted, the router advertisement message settings are specific to an interface and are
entered in interface configuration mode. See the following topics for information about changing these
settings:
• Configuring the Router Advertisement Transmission Interval, page 9-9
• Configuring the Router Lifetime Value, page 9-9
• Configuring the IPv6 Prefix, page 9-10
• Suppressing Router Advertisement Messages, page 9-10
Valid values range from 3 to 1800 seconds (or 500 to 1800000 milliseconds if the msec keyword is used).
The interval between transmissions should be less than or equal to the IPv6 router advertisement lifetime
if FWSM is configured as a default router by using the ipv6 nd ra-lifetime command. To prevent
synchronization with other IPv6 nodes, randomly adjust the actual value used to within 20 percent of the
desired value.
Valid values range from 0 to 9000 seconds. The default is 1800 seconds. Entering 0 indicates that FWSM
should not be considered a default router on the selected interface.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 9-9
Chapter 9 Configuring IPv6
Configuring a Static IPv6 Neighbor
Note For stateless autoconfiguration to work properly, the advertised prefix length in router advertisement
messages must always be 64 bits.
The ipv6_address argument is the link-local IPv6 address of the neighbor, the if_name argument is the
interface through which the neighbor is available, and the mac_address argument is the MAC address of
the neighbor interface.
Note The clear ipv6 neighbors command does not remove static entries from the IPv6 neighbor discovery
cache.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
9-10 OL-8123-01
Chapter 9 Configuring IPv6
Verifying the IPv6 Configuration
Including the interface name, such as “outside”, displays the settings for the specified interface.
Excluding the name from the command displays the setting for all interfaces that have IPv6 enabled on
them. The output for the command shows the following:
• The name and status of the interface.
• The link-local and global unicast addresses.
• The multicast groups the interface belongs to.
• ICMP redirect and error message settings.
• Neighbor discovery settings.
The following is sample output from the show ipv6 interface command:
hostname# show ipv6 interface
Note The show interface command only displays the IPv4 settings for an interface. To see the IPv6
configuration on an interface, you need to use the show ipv6 interface command. The show ipv6
interface command does not display any IPv4 settings for the interface (if both are configured on the
interface).
The output from the show ipv6 route command is similar to the IPv4 show route command. It displays
the following information:
• The protocol that derived the route.
• The IPv6 prefix of the remote network.
• The administrative distance and metric for the route.
• The address of the next-hop router.
• The interface through which the next hop router to the specified network is reached.
The following is sample output from the show ipv6 route command:
hostname# show ipv6 route
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 9-11
Chapter 9 Configuring IPv6
Verifying the IPv6 Configuration
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
9-12 OL-8123-01
C H A P T E R 10
Identifying Traffic with Access Lists
This chapter describes how to identify traffic with access lists. Access lists are used in a variety of
features. If your feature uses Modular Policy Framework, you can use an access list to identify traffic
within a traffic class map. For more information on Modular Policy Framework, see Chapter 18, “Using
Modular Policy Framework.” This chapter includes the following topics:
• Access List Overview, page 10-1
• Adding an Extended Access List, page 10-5
• Adding an EtherType Access List, page 10-8
• Adding a Standard Access List, page 10-10
• Simplifying Access Lists with Object Grouping, page 10-10
• Adding Remarks to Access Lists, page 10-16
• Scheduling Extended Access List Activation, page 10-17
• Logging Access List Activity, page 10-18
For information about IPv6 access lists, see the “Configuring IPv6 Access Lists” section on page 9-5.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 10-1
Chapter 10 Identifying Traffic with Access Lists
Access List Overview
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
10-2 OL-8123-01
Chapter 10 Identifying Traffic with Access Lists
Access List Overview
Figure 10-1 IP Addresses in Access Lists: NAT Used for Source Addresses
209.165.200.225
Outside
Inside
Inbound ACL
Permit from 10.1.1.0/24 to 209.165.200.225
10.1.1.0/24
104634
10.1.1.0/24 209.165.201.4:port
PAT
If you want to allow an outside host to access an inside host, you can apply an inbound access list on the
outside interface. You need to specify the translated address of the inside host in the access list because
that address is the address that can be used on the outside network (see Figure 10-2).
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 10-3
Chapter 10 Identifying Traffic with Access Lists
Access List Overview
Figure 10-2 IP Addresses in Access Lists: NAT used for Destination Addresses
209.165.200.225
ACL
Permit from 209.165.200.225 to 209.165.201.5
Outside
Inside
104636
10.1.1.34 209.165.201.5
Static NAT
If you perform NAT on both interfaces, keep in mind the addresses that are visible to a given interface.
In Figure 10-3, an outside server uses static NAT so that a translated address appears on the inside
network.
Figure 10-3 IP Addresses in Access Lists: NAT used for Source and Destination Addresses
Static NAT
209.165.200.225 10.1.1.56
Outside
Inside
ACL
Permit from 10.1.1.0/24 to 10.1.1.56
10.1.1.0/24
104635
10.1.1.0/24 209.165.201.4:port
PAT
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
10-4 OL-8123-01
Chapter 10 Identifying Traffic with Access Lists
Adding an Extended Access List
Large access lists of approximately 60 K ACEs can take 3 to 4 minutes to commit, depending on the size.
For information about exceeding memory limits, see the “Maximum Number of ACEs” section.
If you exceed the memory limitations, you receive an error message and a system message (106024), and
all the access lists that were added in this commitment are removed from the configuration. Only the set
of access lists that were successfully committed in the previous commitment are used. For example, if
you paste 1000 ACEs at the prompt, and the last ACE exceeds the memory limitations, all 1000 ACEs
are rejected.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 10-5
Chapter 10 Identifying Traffic with Access Lists
Adding an Extended Access List
Note If you change the access list configuration, and you do not want to wait for existing connections to time
out before the new access list information is used, you can clear the connections using the clear
local-host command.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
10-6 OL-8123-01
Chapter 10 Identifying Traffic with Access Lists
Adding an Extended Access List
Tip Enter the access list name in upper case letters so the name is easy to see in the configuration. You might
want to name the access list for the interface (for example, INSIDE), or for the purpose for which it is
created (for example, NO_NAT or VPN).
Typically, you identify the ip keyword for the protocol, but other protocols are accepted. For a list of
protocol names, see the “Protocols and Applications” section on page D-11.
Enter the host keyword before the IP address to specify a single address. In this case, do not enter a mask.
Enter the any keyword instead of the address and mask to specify any address.
You can specify the source and destination ports only for the tcp or udp protocols. For a list of permitted
keywords and well-known port assignments, see the “TCP and UDP Ports” section on page D-12. DNS,
Discard, Echo, Ident, NTP, RPC, SUNRPC, and Talk each require one definition for TCP and one for
UDP. TACACS+ requires one definition for port 49 on TCP.
Use an operator to match port numbers used by the source or destination. The permitted operators are
as follows:
• lt—less than
• gt—greater than
• eq—equal to
• neq—not equal to
• range—an inclusive range of values. When you use this operator, specify two port numbers, for
example:
range 100 200
You can specify the ICMP type only for the icmp protocol. Because ICMP is a connectionless protocol,
you either need access lists to allow ICMP in both directions (by applying access lists to the source and
destination interfaces), or you need to enable the ICMP inspection engine (see the “Adding an ICMP
Type Object Group” section on page 10-13). The ICMP inspection engine treats ICMP sessions as
stateful connections. To control ping, specify echo-reply (0) (FWSM to host) or echo (8) (host to
FWSM). See the “Adding an ICMP Type Object Group” section on page 10-13 for a list of ICMP types.
When you specify a network mask, the method is different from the Cisco IOS software access-list
command. The FWSM uses a network mask (for example, 255.255.255.0 for a Class C mask). The Cisco
IOS mask uses wildcard bits (for example, 0.0.0.255).
To make an ACE inactive, use the inactive keyword. To reenable it, enter the entire ACE without the
inactive keyword. This feature lets you keep a record of an inactive ACE in your configuration to make
reenabling easier.
See the following examples:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 10-7
Chapter 10 Identifying Traffic with Access Lists
Adding an EtherType Access List
The following access list allows all hosts (on the interface to which you apply the access list) to go
through the FWSM:
hostname(config)# access-list ACL_IN extended permit ip any any
The following sample access list prevents hosts on 192.168.1.0/24 from accessing the 209.165.201.0/27
network. All other addresses are permitted.
hostname(config)# access-list ACL_IN extended deny tcp 192.168.1.0 255.255.255.0
209.165.201.0 255.255.255.224
hostname(config)# access-list ACL_IN extended permit ip any any
If you want to restrict access to only some hosts, then enter a limited permit ACE. By default, all other
traffic is denied unless explicitly permitted.
hostname(config)# access-list ACL_IN extended permit ip 192.168.1.0 255.255.255.0
209.165.201.0 255.255.255.224
The following access list restricts all hosts (on the interface to which you apply the access list) from
accessing a website at address 209.165.201.29. All other traffic is allowed.
hostname(config)# access-list ACL_IN extended deny tcp any host 209.165.201.29 eq www
hostname(config)# access-list ACL_IN extended permit ip any any
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
10-8 OL-8123-01
Chapter 10 Identifying Traffic with Access Lists
Adding an EtherType Access List
On Cisco IOS routers, enter the appropriate command for your protocol, LDP or TDP. The interface is
the interface connected to the FWSM.
hostname(config)# mpls ldp router-id interface force
Or
hostname(config)# tag-switching tdp router-id interface force
You can apply only one access list of each type (extended and EtherType) to each direction of an
interface. You can also apply the same access lists on multiple interfaces.
The hex_number is any EtherType that can be identified by a 16-bit hexadecimal number greater than or
equal to 0x600. See RFC 1700, “Assigned Numbers,” at http://www.ietf.org/rfc/rfc1700.txt for a list of
EtherTypes.
When you enter the access-list command for a given access list name, the ACE is added to the end of
the access list.
Tip Enter the access_list_name in upper case letters so the name is easy to see in the configuration. You
might want to name the access list for the interface (for example, INSIDE), or for the purpose (for
example, MPLS or IPX).
For example, the following sample access list allows common EtherTypes originating on the inside
interface:
hostname(config)# access-list ETHER ethertype permit ipx
hostname(config)# access-list ETHER ethertype permit bpdu
hostname(config)# access-list ETHER ethertype permit mpls-unicast
hostname(config)# access-group ETHER in interface inside
The following access list allows some EtherTypes through the FWSM, but denies IPX:
hostname(config)# access-list ETHER ethertype deny ipx
hostname(config)# access-list ETHER ethertype permit 0x1234
hostname(config)# access-list ETHER ethertype permit bpdu
hostname(config)# access-list ETHER ethertype permit mpls-unicast
hostname(config)# access-group ETHER in interface inside
hostname(config)# access-group ETHER in interface outside
The following access list denies traffic with EtherType 0x1256, but allows all others on both interfaces:
hostname(config)# access-list nonIP ethertype deny 1256
hostname(config)# access-list nonIP ethertype permit any
hostname(config)# access-group ETHER in interface inside
hostname(config)# access-group ETHER in interface outside
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 10-9
Chapter 10 Identifying Traffic with Access Lists
Adding a Standard Access List
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
10-10 OL-8123-01
Chapter 10 Identifying Traffic with Access Lists
Simplifying Access Lists with Object Grouping
Note The ACE system limit applies to expanded access lists. If you use object groups in ACEs, the number of
actual ACEs that you enter is fewer, but the number of expanded ACEs is the same as without object
groups. In many cases, object groups create more ACEs than if you added them manually, because
creating ACEs manually leads you to summarize addresses more than an object group does. To view the
number of expanded ACEs in an access list, enter the show access-list command.
The protocol is the numeric identifier of the specific IP protocol (1 to 254) or a keyword identifier (for
example, icmp, tcp, or udp). To include all IP protocols, use the keyword ip. For a list of protocols you
can specify, see the “Protocols and Applications” section on page D-11.
For example, to create a protocol group for TCP, UDP, and ICMP, enter the following commands:
hostname(config)# object-group protocol tcp_udp_icmp
hostname(config-protocol)# protocol-object tcp
hostname(config-protocol)# protocol-object udp
hostname(config-protocol)# protocol-object icmp
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 10-11
Chapter 10 Identifying Traffic with Access Lists
Simplifying Access Lists with Object Grouping
Note A network object group supports IPv4 and IPv6 addresses, depending on the type of access list. For more
information about IPv6 access lists, see “Configuring IPv6 Access Lists” section on page 9-5.
For example, to create network group that includes the IP addresses of three administrators, enter the
following commands:
hostname(config)# object-group network admins
hostname(config-network)# description Administrator Addresses
hostname(config-network)# network-object host 10.1.1.4
hostname(config-network)# network-object host 10.1.1.78
hostname(config-network)# network-object host 10.1.1.34
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
10-12 OL-8123-01
Chapter 10 Identifying Traffic with Access Lists
Simplifying Access Lists with Object Grouping
Specify the protocol for the services (ports) you want to add, either tcp, udp, or tcp-udp keywords.
Enter tcp-udp keyword if your service uses both TCP and UDP with the same port number, for example,
DNS (port 53).
The prompt changes to service configuration mode.
Step 2 (Optional) To add a description, enter the following command:
hostname(config-service)# description text
For a list of permitted keywords and well-known port assignments, see the “Protocols and Applications”
section on page D-11.
For example, to create service groups that include DNS (TCP/UDP), LDAP (TCP), and RADIUS (UDP),
enter the following commands:
hostname(config)# object-group service services1 tcp-udp
hostname(config-service)# description DNS Group
hostname(config-service)# port-object eq domain
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 10-13
Chapter 10 Identifying Traffic with Access Lists
Simplifying Access Lists with Object Grouping
See the “ICMP Types” section on page D-15 for a list of ICMP types.
For example, to create an ICMP type group that includes echo-reply and echo (for controlling ping),
enter the following commands:
hostname(config)# object-group icmp-type ping
hostname(config-service)# description Ping Group
hostname(config-icmp-type)# icmp-object echo
hostname(config-icmp-type)# icmp-object echo-reply
Step 1 To add or edit an object group under which you want to nest another object group, enter the following
command:
hostname(config)# object-group {{protocol | network | icmp-type} grp_id | service grp_id
{tcp | udp | tcp-udp}}
Step 2 To add the specified group under the object group you specified in Step 1, enter the following command:
hostname(config-group_type)# group-object grp_id
For example, you create network object groups for privileged users from various departments:
hostname(config)# object-group network eng
hostname(config-network)# network-object host 10.1.1.5
hostname(config-network)# network-object host 10.1.1.9
hostname(config-network)# network-object host 10.1.1.89
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
10-14 OL-8123-01
Chapter 10 Identifying Traffic with Access Lists
Simplifying Access Lists with Object Grouping
You only need to specify the admin object group in your ACE as follows:
hostname(config)# access-list ACL_IN extended permit ip object-group admin host
209.165.201.29
You do not have to use object groups for all parameters; for example, you can use an object group for
the source address, but identify the destination address with an address and mask.
The following normal access list that does not use object groups restricts several hosts on the inside
network from accessing several web servers. All other traffic is allowed.
hostname(config)# access-list ACL_IN extended deny tcp host 10.1.1.4 host 209.165.201.29
eq www
hostname(config)# access-list ACL_IN extended deny tcp host 10.1.1.78 host 209.165.201.29
eq www
hostname(config)# access-list ACL_IN extended deny tcp host 10.1.1.89 host 209.165.201.29
eq www
hostname(config)# access-list ACL_IN extended deny tcp host 10.1.1.4 host 209.165.201.16
eq www
hostname(config)# access-list ACL_IN extended deny tcp host 10.1.1.78 host 209.165.201.16
eq www
hostname(config)# access-list ACL_IN extended deny tcp host 10.1.1.89 host 209.165.201.16
eq www
hostname(config)# access-list ACL_IN extended deny tcp host 10.1.1.4 host 209.165.201.78
eq www
hostname(config)# access-list ACL_IN extended deny tcp host 10.1.1.78 host 209.165.201.78
eq www
hostname(config)# access-list ACL_IN extended deny tcp host 10.1.1.89 host 209.165.201.78
eq www
hostname(config)# access-list ACL_IN extended permit ip any any
hostname(config)# access-group ACL_IN in interface inside
If you make two network object groups, one for the inside hosts, and one for the web servers, then the
configuration can be simplified and can be easily modified to add more hosts:
hostname(config)# object-group network denied
hostname(config-network)# network-object host 10.1.1.4
hostname(config-network)# network-object host 10.1.1.78
hostname(config-network)# network-object host 10.1.1.89
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 10-15
Chapter 10 Identifying Traffic with Access Lists
Adding Remarks to Access Lists
If you enter the command without any parameters, the system displays all configured object groups.
The following is sample output from the show object-group command:
hostname# show object-group
object-group network ftp_servers
description: This is a group of FTP servers
network-object host 209.165.201.3
network-object host 209.165.201.4
object-group network TrustedHosts
network-object host 209.165.201.1
network-object 192.168.1.0 255.255.255.0
group-object ftp_servers
Note You cannot remove an object group or make an object group empty if it is used in an access list.
• To remove all object groups of the specified type, enter the following command:
hostname(config)# clear object-group [protocol | network | services | icmp-type]
When you enter the access-list remark command for a given access list name, the remark is added to
the end of the access list unless you specify the line number.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
10-16 OL-8123-01
Chapter 10 Identifying Traffic with Access Lists
Scheduling Extended Access List Activation
If you delete an access list using the clear configure access-list access_list_name command, then all the
remarks are also removed.
The text can be up to 100 characters in length. You can enter leading spaces at the beginning of the text.
Trailing spaces are ignored.
For example, you can add remarks before each ACE, and the remark appears in the access list in this
location. Entering a dash (-) at the beginning of the remark helps set it apart from ACEs.
hostname(config)# access-list OUT remark - this is the inside admin address
hostname(config)# access-list OUT extended permit ip host 209.168.200.3 any
hostname(config)# access-list OUT remark - this is the hr admin address
hostname(config)# access-list OUT extended permit ip host 209.168.200.4 any
Step 2 Specify the time range as either a recurring time range or an absolute time range.
Multiple periodic entries are allowed per time-range command. If a time-range command has both
absolute and periodic values specified, then the periodic commands are evaluated only after the
absolute start time is reached, and are not further evaluated after the absolute end time is reached.
• Recurring time range:
hostname(config-time-range)# periodic days-of-the-week time to [days-of-the-week] time
The time is in the format hh:mm. For example, 8:00 is 8:00 a.m. and 20:00 is 8:00 p.m.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 10-17
Chapter 10 Identifying Traffic with Access Lists
Logging Access List Activity
The date is in the format day month year; for example, 1 january 2006.
The following is an example of an absolute time range beginning at 8:00 a.m. on January 1, 2006.
Because no end time and date are specified, the time range is in effect indefinitely.
hostname(config)# time-range for2006
hostname(config-time-range)# absolute start 8:00 1 january 2006
The following is an example of a weekly periodic time range from 8:00 a.m. to 6:00 p.m on weekdays.:
hostname(config)# time-range workinghours
hostname(config-time-range)# periodic weekdays 8:00 to 18:00
See the “Adding an Extended Access List” section on page 10-5 for complete access-list command
syntax.
Note If you also enable logging for the ACE, use the log keyword before the time-range keyword. If you
disable the ACE using the inactive keyword, use the inactive keyword as the last keyword.
The following example binds an access list named “Sales” to a time range named “New_York_Minute.”
hostname(config)# access-list Sales line 1 extended deny tcp host 209.165.200.225 host
209.165.201.1 time-range New_York_Minute
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
10-18 OL-8123-01
Chapter 10 Identifying Traffic with Access Lists
Logging Access List Activity
If the FWSM is attacked, the number of system messages for denied packets can be very large. We
recommend that you instead enable logging using system message 106100, which provides statistics for
each ACE and lets you limit the number of system messages produced. Alternatively, you can disable all
logging.
Note Only ACEs in the access list generate logging messages; the implicit deny at the end of the access list
does not generate a message. If you want all denied traffic to generate messages, add the implicit ACE
manually to the end of the access list, as follows.
hostname(config)# access-list TEST deny ip any any log
The log options at the end of the extended access-list command lets you to set the following behavior:
• Enable message 106100 instead of message 106023
• Disable all logging
• Return to the default logging using message 106023
System message 106100 is in the following form:
%XXX-n-106100: access-list acl_id {permitted | denied} protocol
interface_name/source_address(source_port) -> interface_name/dest_address(dest_port)
hit-cnt number ({first hit | number-second interval})
When you enable logging for message 106100, if a packet matches an ACE, the FWSM creates a
flow entry to track the number of packets received within a specific interval. The FWSM generates a
system message at the first hit and at the end of each interval, identifying the total number of hits during
the interval. At the end of each interval, the FWSM resets the hit count to 0. If no packets match the ACE
during an interval, the FWSM deletes the flow entry.
A flow is defined by the source and destination IP addresses, protocols, and ports. Because the source
port might differ for a new connection between the same two hosts, you might not see the same flow
increment because a new flow was created for the connection.
Permitted packets that belong to established connections do not need to be checked against access lists;
only the initial packet is logged and included in the hit count. For connectionless protocols, such as
ICMP, all packets are logged even if they are permitted, and all denied packets are logged.
See the Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Logging
Configuration and System Log Messages for detailed information about this system message.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 10-19
Chapter 10 Identifying Traffic with Access Lists
Logging Access List Activity
See the “Adding an Extended Access List” section on page 10-5 for complete access-list command
syntax.
Note If you also enable a time range for the ACE, use the log keyword before the time-range keyword. If you
disable the ACE using the inactive keyword, use the inactive keyword as the last keyword.
If you enter the log option without any arguments, you enable system log message 106100 at the default
level (6) and for the default interval (300 seconds). See the following options:
• level—A severity level between 0 and 7. The default is 6.
• interval secs—The time interval in seconds between system messages, from 1 to 600. The default
is 300. This value is also used as the timeout value for deleting an inactive flow.
• disable—Disables all access list logging.
• default—Enables logging to message 106023. This setting is the same as having no log option.
For example, you configure the following access list:
hostname(config)# access-list outside-acl permit ip host 1.1.1.1 any log 7 interval 600
hostname(config)# access-list outside-acl permit ip host 2.2.2.2 any
hostname(config)# access-list outside-acl deny ip any any log 2
hostname(config)# access-group outside-acl in interface outside
When a packet is permitted by the first ACE of outside-acl, the FWSM generates the following system
message:
%PIX-7-106100: access-list outside-acl permitted tcp outside/1.1.1.1(12345) ->
inside/192.168.1.1(1357) hit-cnt 1 (first hit)
Although 20 additional packets for this connection arrive on the outside interface, the traffic does not
have to be checked against the access list, and the hit count does not increase.
If one more connection by the same host is initiated within the specified 10 minute interval (and the
source and destination ports remain the same), then the hit count is incremented by 1 and the following
message is displayed at the end of the 10 minute interval:
%PIX-7-106100: access-list outside-acl permitted tcp outside/1.1.1.1(12345)->
inside/192.168.1.1(1357) hit-cnt 2 (600-second interval)
When a packet is denied by the third ACE, then the FWSM generates the following system message:
%PIX-2-106100: access-list outside-acl denied ip outside/3.3.3.3(12345) ->
inside/192.168.1.1(1357) hit-cnt 1 (first hit)
20 additional attempts within a 5 minute interval (the default) result in the following message at the end
of 5 minutes:
%PIX-2-106100: access-list outside-acl denied ip outside/3.3.3.3(12345) ->
inside/192.168.1.1(1357) hit-cnt 21 (300-second interval)
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
10-20 OL-8123-01
Chapter 10 Identifying Traffic with Access Lists
Logging Access List Activity
To configure the maximum number of deny flows and to set the interval between deny flow alert
messages (106101), enter the following commands:
• To set the maximum number of deny flows permitted per context before the FWSM stops logging,
enter the following command:
hostname(config)# access-list deny-flow-max number
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 10-21
Chapter 10 Identifying Traffic with Access Lists
Logging Access List Activity
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
10-22 OL-8123-01
C H A P T E R 11
Permitting or Denying Network Access
This chapter describes how to control network access through the FWSM using access lists. To create an
extended access lists or an EtherType access list, see Chapter 10, “Identifying Traffic with Access Lists.”
Note You use access lists to control network access in both routed and transparent firewall modes. In
transparent mode, you can use both extended access lists (for Layer 3 traffic) and EtherType access lists
(for Layer 2 traffic).
To access the FWSM interface for management access, you do not also need an access list allowing the
host IP address. You only need to configure management access according to Chapter 21, “Configuring
Management Access.”.
Note “Inbound” and “outbound” refer to the application of an access list on an interface, either to traffic
entering the FWSM on an interface or traffic exiting the FWSM on an interface. These terms do not refer
to the movement of traffic from a lower security interface to a higher security interface, commonly
known as inbound, or from a higher to lower interface, commonly known as outbound.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 11-1
Chapter 11 Permitting or Denying Network Access
Inbound and Outbound Access List Overview
You might want to use an outbound access list to simplify your access list configuration. For example,
if you want to allow three inside networks on three different interfaces to access each other, you can
create a simple inbound access list that allows all traffic on each inside interface (see Figure 11-1).
Web Server:
209.165.200.225
FWSM Outside
Inside Eng
132945
See the following commands for this example:
hostname(config)# access-list INSIDE extended permit ip any any
hostname(config)# access-group INSIDE in interface inside
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
11-2 OL-8123-01
Chapter 11 Permitting or Denying Network Access
Inbound and Outbound Access List Overview
Then, if you want to allow only certain hosts on the inside networks to access a web server on the outside
network, you can create a more restrictive access list that allows only the specified hosts and apply it to
the outbound direction of the outside interface (see Figure 11-1). See the “IP Addresses Used for Access
Lists When You Use NAT” section on page 10-3 for information about NAT and IP addresses. The
outbound access list prevents any other hosts from reaching the outside network.
Web Server:
209.165.200.225
FWSM Outside
ACL Outbound
Permit HTTP from 209.165.201.4, 209.165.201.6,
and 209.165.201.8 to 209.165.200.225
Deny all others
Inside HR Eng
132944
10.1.2.67 209.165.201.6
Static NAT
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 11-3
Chapter 11 Permitting or Denying Network Access
Applying an Access List to an Interface
You can apply one access list of each type (extended and EtherType) to both directions of the interface.
See the “Inbound and Outbound Access List Overview” section on page 11-1 for more information about
access list directions.
The per-user-override keyword allows dynamic access lists that are downloaded for user authorization
to override the access list assigned to the interface. For example, if the interface access list denies all
traffic from 10.0.0.0, but the dynamic access list permits all traffic from 10.0.0.0, then the dynamic
access list overrides the interface access list for that user. See the “Configuring RADIUS Authorization”
section for more information about per-user access lists. The per-user-override keyword is only
available for inbound access lists.
For connectionless protocols, you need to apply the access list to the source and destination interfaces
if you want traffic to pass in both directions. For example, you can allow BGP in an EtherType access
list in transparent mode, and you need to apply the access list to both interfaces.
The following example illustrates the commands required to enable access to an inside web server with
the IP address 209.165.201.12 (this IP address is the address visible on the outside interface after NAT):
hostname(config)# access-list ACL_OUT extended permit tcp any host 209.165.201.12 eq www
hostname(config)# access-group ACL_OUT in interface outside
For example, the following sample access list allows common EtherTypes originating on the inside
interface:
hostname(config)# access-list ETHER ethertype permit ipx
hostname(config)# access-list ETHER ethertype permit bpdu
hostname(config)# access-list ETHER ethertype permit mpls-unicast
hostname(config)# access-group ETHER in interface inside
The following access list allows some EtherTypes through the FWSM, but denies all others:
hostname(config)# access-list ETHER ethertype permit 0x1234
hostname(config)# access-list ETHER ethertype permit bpdu
hostname(config)# access-list ETHER ethertype permit mpls-unicast
hostname(config)# access-group ETHER in interface inside
hostname(config)# access-group ETHER in interface outside
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
11-4 OL-8123-01
Chapter 11 Permitting or Denying Network Access
Applying an Access List to an Interface
The following access list denies traffic with EtherType 0x1256 but allows all others on both interfaces:
hostname(config)# access-list nonIP ethertype deny 1256
hostname(config)# access-list nonIP ethertype permit any
hostname(config)# access-group ETHER in interface inside
hostname(config)# access-group ETHER in interface outside
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 11-5
Chapter 11 Permitting or Denying Network Access
Applying an Access List to an Interface
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
11-6 OL-8123-01
C H A P T E R 12
Configuring NAT
This chapter describes Network Address Translation. In routed firewall mode, the FWSM can perform
NAT between each network.
Note In transparent firewall mode, the FWSM does not support NAT except to set connection limits. See the
“Configuring Connection Limits for Transparent Firewall Mode and Non-NAT Configurations” section
on page 7-5.
NAT Overview
This section describes how NAT works on the FWSM, and includes the following topics:
• Introduction to NAT, page 12-2
• NAT Control, page 12-3
• NAT Types, page 12-5
• Policy NAT, page 12-9
• NAT and Same Security Level Interfaces, page 12-12
• Order of NAT Commands Used to Match Real Addresses, page 12-13
• Maximum Number of NAT Statements, page 12-13
• Mapped Address Guidelines, page 12-13
• DNS and NAT, page 12-14
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 12-1
Chapter 12 Configuring NAT
NAT Overview
Introduction to NAT
Address translation substitutes the real address in a packet with a mapped address that is routable on the
destination network. NAT is comprised of two steps: the process in which a real address is translated into
a mapped address, and then the process to undo translation for returning traffic.
The FWSM translates an address when a NAT rule matches the traffic. If no NAT rule matches,
processing for the packet continues. The exception is when you enable NAT control. NAT control
requires that packets traversing from a higher security interface (inside) to a lower security interface
(outside) match a NAT rule, or else processing for the packet stops. (See the “Security Level Overview”
section on page 6-1 for more information about security levels, and see “NAT Control” section on
page 12-3 for more information about NAT control).
Note In this document, all types of translation are generally referred to as NAT. When discussing NAT, the
terms inside and outside are relative, and represent the security relationship between any two interfaces.
The higher security level is inside and the lower security level is outside; for example, interface 1 is at
60 and interface 2 is at 50, so interface 1 is “inside” and interface 2 is “outside.”
Note See Table 20-1 on page 20-5 for information about protocols that do not support NAT.
Figure 12-1 shows a typical NAT scenario, with a private network on the inside. When the inside host at
10.1.2.27 sends a packet to a web server, the real source address, 10.1.2.27, of the packet is changed to
a mapped address, 209.165.201.10. When the server responds, it sends the response to the mapped
address, 209.165.201.10, and the FWSM receives the packet. The FWSM then undoes the translation of
the mapped address, 209.165.201.10 back to the real address, 10.1.2.27 before sending it on to the host.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
12-2 OL-8123-01
Chapter 12 Configuring NAT
NAT Overview
Web Server
www.cisco.com
Outside
209.165.201.2
Originating Responding
Packet Packet
Translation Undo Translation
10.1.2.27 209.165.201.10 209.165.201.10 10.1.2.27
10.1.2.1
Inside
132925
10.1.2.27
NAT Control
NAT control requires that packets traversing from an inside interface to an outside interface match a NAT
rule; for any host on the inside network to access a host on the outside network, you must configure NAT
to translate the inside host address (see Figure 12-2).
FWSM
10.1.2.1 No NAT
132947
Inside Outside
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 12-3
Chapter 12 Configuring NAT
NAT Overview
Interfaces at the same security level are not required to use NAT to communicate. However, if you
configure dynamic NAT or PAT on a same security interface with NAT control enabled, then all traffic
from the interface to a same security interface or an outside interface must match a NAT rule (see
Figure 12-3).
FWSM FWSM
Level 50 Level 50
132949
Level 50 Level 50
or
Outside
Similarly, if you enable outside dynamic NAT or PAT with NAT control, then all outside traffic must
match a NAT rule when it accesses an inside interface (see Figure 12-4).
FWSM FWSM
132948
Outside Inside Outside Inside
Static NAT with NAT control does not cause these restrictions.
By default, NAT control is disabled, so you do not need to perform NAT on any networks unless you
choose to perform NAT. If you upgraded from an earlier version of software, however, NAT control
might be enabled on your system.
Note Even if you do not configure NAT, the FWSM continues to create translation sessions for all traffic
automatically. In this case, the translation is from the real address to the same real address. See the show
xlate command to view translation sessions.
If you want the added security of NAT control but do not want to translate inside addresses in some cases,
you can apply a NAT exemption or identity NAT rule on those addresses. (See the “Bypassing NAT”
section on page 12-31 for more information).
To configure NAT control, see the “Configuring NAT Control” section on page 12-16.
Note In multiple context mode, the packet classifier relies on the NAT configuration in some cases to assign
packets to contexts. If you do not perform NAT because NAT control is disabled, then the classifier might
require changes in your network configuration. See the “How the FWSM Classifies Packets” section on
page 4-3 for more information about the relationship between the classifier and NAT.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
12-4 OL-8123-01
Chapter 12 Configuring NAT
NAT Overview
NAT Types
This section describes the available NAT types. You can implement address translation as dynamic NAT,
Port Address Translation (PAT; also known as NAT overloading) , static NAT, or static PAT or as a mix
of these types. You can also configure rules to bypass NAT, for example, if you enable NAT control but
do not want to perform NAT. This section includes the following topics:
• Dynamic NAT, page 12-5
• PAT, page 12-7
• Static NAT, page 12-7
• Static PAT, page 12-7
• Bypassing NAT when NAT Control is Enabled, page 12-8
Dynamic NAT
Dynamic NAT translates a group of real addresses to a pool of mapped addresses that are routable on the
destination network. The mapped pool can include fewer addresses than the real group. When a host you
want to translate accesses the destination network, the FWSM assigns it an IP address from the mapped
pool. The translation is added only when the real host initiates the connection. The translation is in place
only for the duration of the connection, and a given user does not keep the same IP address after the
translation times out (see the timeout xlate command in the Catalyst 6500 Series Switch and Cisco 7600
Series Router Firewall Services Module Command Reference). Users on the destination network,
therefore, cannot reliably initiate a connection to a host that uses dynamic NAT (even if the connection
is allowed by an access list), and the FWSM rejects any attempt to connect to a real host address directly.
See the following “Static NAT” or “Static PAT” sections for reliable access to hosts.
Figure 12-5 shows a remote host attempting to connect to the real address. The connection is denied
because the FWSM only allows returning connections to the mapped address.
Web Server
www.example.com
Outside
209.165.201.2
10.1.2.27
FWSM
Translation
10.1.2.27 209.165.201.10
10.1.2.1
Inside
132950
10.1.2.27
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 12-5
Chapter 12 Configuring NAT
NAT Overview
Figure 12-6 shows a remote host attempting to initiate a connection to a mapped address. This address
is not currently in the translation table, so the FWSM drops the packet.
Web Server
www.example.com
Outside
209.165.201.2
209.165.201.10
FWSM
10.1.2.1
Inside
132951
10.1.2.27
Note For the duration of the translation, a remote host can initiate a connection to the translated host if an
access list allows it. Because the address is unpredictable, a connection to the host is unlikely. However
in this case, you can rely on the security of the access list.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
12-6 OL-8123-01
Chapter 12 Configuring NAT
NAT Overview
PAT
PAT (also known as NAT overloading) translates multiple real addresses to a single mapped IP address.
Specifically, the FWSM translates the real address and source port (real socket) to the mapped address
and a unique port above 1024 (mapped socket). Each connection requires a separate translation, because
the source port differs for each connection. For example, 10.1.1.1:1025 requires a separate translation
from 10.1.1.1:1026.
After the connection expires, the port translation also expires after 30 seconds of inactivity. The timeout
is not configurable. Users on the destination network cannot reliably initiate a connection to a host that
uses PAT (even if the connection is allowed by an access list). Not only can you not predict the real or
mapped port number of the host, but the FWSM does not create a translation at all unless the translated
host is the initiator. See the following “Static NAT” or “Static PAT” sections for reliable access to hosts.
PAT lets you use a single mapped address, thus conserving routable addresses. You can even use the
FWSM interface IP address as the PAT address. PAT does not work with some multimedia applications
that have a data stream that is different from the control path. See the “Application Inspection Engine
Overview” section on page 20-2 for more information about NAT and PAT support.
Note For the duration of the translation, a remote host can initiate a connection to the translated host if an
access list allows it. Because the port address (both real and mapped) is unpredictable, a connection to
the host is unlikely. However in this case, you can rely on the security of the access list.
Static NAT
Static NAT creates a fixed translation of real address(es) to mapped address(es).With dynamic NAT and
PAT, each host uses a different address or port for each subsequent translation. Because the mapped
address is the same for each consecutive connection with static NAT, and a persistent translation rule
exists, static NAT allows hosts on the destination network to initiate traffic to a translated host (if there
is an access list that allows it).
The main difference between dynamic NAT and a range of addresses for static NAT is that static NAT
allows a remote host to initiate a connection to a translated host (if there is an access list that allows it),
while dynamic NAT does not. You also need an equal number of mapped addresses as real addresses with
static NAT.
Static PAT
Static PAT is the same as static NAT, except it lets you specify the protocol (TCP or UDP) and port for
the real and mapped addresses.
This feature lets you identify the same mapped address across many different static statements, so long
as the port is different for each statement (you cannot use the same mapped address for multiple static
NAT statements).
For applications that require application inspection for secondary channels (FTP, VoIP, etc.), the FWSM
automatically translates the secondary ports.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 12-7
Chapter 12 Configuring NAT
NAT Overview
For example, if you want to provide a single address for remote users to access FTP, HTTP, and SMTP,
but these are all actually different servers on the real network, you can specify static PAT statements for
each server that uses the same mapped IP address, but different ports (see Figure 12-7).
Host
Outside
Undo Translation
209.165.201.3:21 10.1.2.27
Undo Translation
209.165.201.3:25 10.1.2.29
Undo Translation
209.165.201.3:80 10.1.2.28
Inside
132933
HTTP server
10.1.2.28
You can also use static PAT to translate a well-known port to a non-standard port or vice versa. For
example, if your inside web servers use port 8080, you can allow outside users to connect to port 80, and
then undo translation to the original port 8080. Similarly, if you want to provide extra security, you can
tell your web users to connect to non-standard port 6785, and then undo translation to port 80.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
12-8 OL-8123-01
Chapter 12 Configuring NAT
NAT Overview
• Identity NAT (nat 0 command)—When you configure identity NAT (which is similar to dynamic
NAT), you do not limit translation for a host on specific interfaces; you must use identity NAT for
connections through all interfaces. Therefore, you cannot choose to perform normal translation on
real addresses when you access interface A, but use identity NAT when accessing interface B.
Regular dynamic NAT, on the other hand, lets you specify a particular interface on which to translate
the addresses. Make sure that the real addresses for which you use identity NAT are routable on all
networks that are available according to your access lists.
For identity NAT, even though the mapped address is the same as the real address, you cannot initiate
a connection from the outside to the inside (even if the interface access list allows it). Use static
identity NAT or NAT exemption for this functionality.
• Static identity NAT (static command)—Static identity NAT lets you specify the interface on which
you want to allow the real addresses to appear, so you can use identity NAT when you access
interface A, and use regular translation when you access interface B. Static identity NAT also lets
you use policy NAT, which identifies the real and destination addresses when determining the real
addresses to translate (see the “Policy NAT” section on page 12-9 for more information about policy
NAT). For example, you can use static identity NAT for an inside address when it accesses the
outside interface and the destination is server A, but use a normal translation when accessing the
outside server B.
• NAT exemption (nat 0 access-list command)—NAT exemption allows both translated and remote
hosts to initiate connections. Like identity NAT, you do not limit translation for a host on specific
interfaces; you must use NAT exemption for connections through all interfaces. However,
NAT exemption does let you specify the real and destination addresses when determining the real
addresses to translate (similar to policy NAT), so you have greater control using NAT exemption.
However unlike policy NAT, NAT exemption does not consider the ports in the access list.
Policy NAT
Policy NAT lets you identify real addresses for address translation by specifying the source and
destination addresses in an extended access list. You can also optionally specify the source and
destination ports. Regular NAT can only consider the real addresses. For example, you can use translate
the real address to mapped address A when it accesses server A, but translate the real address to mapped
address B when it accesses server B.
For applications that require application inspection for secondary channels (FTP, VoIP, etc.), the policy
specified in the policy NAT statement should include the secondary ports. Or, when the ports cannot be
predicted, the policy should specify only the IP addresses for the secondary channel. This way, the
FWSM translates the secondary ports.
Note All types of NAT support policy NAT except for NAT exemption. NAT exemption uses an access list to
identify the real addresses, but differs from policy NAT in that the ports are not considered. See the
“Bypassing NAT” section on page 12-31 for other differences. You can accomplish the same result as
NAT exemption using static identity NAT, which does support policy NAT.
Figure 12-8 shows a host on the 10.1.2.0/24 network accessing two different servers. When the host
accesses the server at 209.165.201.11, the real address is translated to 209.165.202.129. When the host
accesses the server at 209.165.200.225, the real address is translated to 209.165.202.130 so that the host
appears to be on the same network as the servers, which can help with routing.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 12-9
Chapter 12 Configuring NAT
NAT Overview
Server 1 Server 2
209.165.201.11 209.165.200.225
209.165.201.0/27 209.165.200.224/27
DMZ
Translation Translation
10.1.2.27 209.165.202.129 10.1.2.27 209.165.202.130
Inside
10.1.2.0/24
Packet Packet
Dest. Address: Dest. Address:
132941
209.165.201.11 209.165.200.225
10.1.2.27
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
12-10 OL-8123-01
Chapter 12 Configuring NAT
NAT Overview
Figure 12-9 shows the use of source and destination ports. The host on the 10.1.2.0/24 network accesses
a single host for both web services and Telnet services. When the host accesses the server for web
services, the real address is translated to 209.165.202.129. When the host accesses the same server for
Telnet services, the real address is translated to 209.165.202.130.
Internet
Translation Translation
10.1.2.27:80 209.165.202.129 10.1.2.27:23 209.165.202.130
Inside
10.1.2.0/24
132942
209.165.201.11:80 209.165.201.11:23
10.1.2.27
For policy static NAT (and for NAT exemption, which also uses an access list to identify traffic), both
translated and remote hosts can originate traffic. For traffic originated on the translated network, the
NAT access list specifies the real addresses and the destination addresses, but for traffic originated on
the remote network, the access list identifies the real addresses and the source addresses of remote hosts
who are allowed to connect to the host using this translation.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 12-11
Chapter 12 Configuring NAT
NAT Overview
Figure 12-10 shows a remote host connecting to a translated host. The translated host has a policy static
NAT translation that translates the real address only for traffic to and from the 209.165.201.0/27
network. A translation does not exist for the 209.165.200.224/27 network, so the translated host cannot
connect to that network, nor can a host on that network connect to the translated host.
209.165.201.11 209.165.200.225
209.165.201.0/27 209.165.200.224/27
DMZ
No Translation
Undo Translation
209.165.202.12910.1.2.27
Inside
10.1.2.0/27
132939
10.1.2.27
Note Policy NAT does not support SQL*Net, but it is supported by regular NAT. See the “Application
Inspection Engine Overview” section on page 20-2 for information about NAT support for other
protocols.
Note The FWSM does not support VoIP inspection engines when you configure NAT on same security
interfaces. These inspection engines include Skinny, SIP, and H.323. See the “Application Inspection
Engine Overview” section on page 20-2 for supported inspection engines.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
12-12 OL-8123-01
Chapter 12 Configuring NAT
NAT Overview
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 12-13
Chapter 12 Configuring NAT
NAT Overview
routes on the mapped interface, then the FWSM advertises the mapped addresses. If the mapped
interface is passive (not advertising routes) or you are using static routing, then you need to add a
static route on the upstream router that sends traffic destined for the mapped addresses to the FWSM.
Note A route needs to exist for the real IP address embedded in the DNS query response or the FWSM will
not NAT it. The necessary route can be learned via static routing or by any other routing protocol, such
as RIP or OSPF.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
12-14 OL-8123-01
Chapter 12 Configuring NAT
NAT Overview
DNS Server
1
DNS Query Outside
ftp.example.com?
2
DNS Reply
209.165.201.10
FWSM
3
DNS Reply Modification
209.165.201.10 10.1.3.14
Inside
4
DNS Reply
10.1.3.14
User ftp.example.com
10.1.3.14
Static Translation
on Outside to:
209.165.201.10
5
132946
FTP Request
10.1.3.14
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 12-15
Chapter 12 Configuring NAT
Configuring NAT Control
Figure 12-12 shows a web server and DNS server on the outside. The FWSM has a static translation for
the outside server. In this case, when an inside user requests the address for ftp.example.com from the
DNS server, the DNS server responds with the real address, 209.165.20.10. Because you want inside
users to use the mapped address for ftp.example.com (10.1.2.56) you need to configure DNS reply
modification for the static translation.
ftp.example.com
209.165.201.10
Static Translation on Inside to:
10.1.2.56
DNS Server
FTP Request
1 209.165.201.10
DNS Query Outside
ftp.example.com? 6
2
Dest Addr. Translation
DNS Reply 10.1.2.56 209.165.201.10
209.165.201.10
3
5
DNS Reply Modification
209.165.201.10 10.1.2.56 FTP Request
10.1.2.56
Inside
4
DNS Reply
10.1.2.56
132924
User
10.1.2.27
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
12-16 OL-8123-01
Chapter 12 Configuring NAT
Using Dynamic NAT and PAT
Web Server:
www.cisco.com
Outside
Global 1: 209.165.201.3-
209.165.201.10
Translation
10.1.2.27 209.165.201.3
NAT 1: 10.1.2.0/24
Inside
132929
10.1.2.27
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 12-17
Chapter 12 Configuring NAT
Using Dynamic NAT and PAT
You can enter a nat command for each interface using the same NAT ID; they all use the same global
command when traffic exits a given interface. For example, you can configure nat commands for Inside
and DMZ interfaces, both on NAT ID 1. Then you configure a global command on the Outside interface
that is also on ID 1. Traffic from the Inside interface and the DMZ interface share a mapped pool or a
PAT address when exiting the Outside interface (see Figure 12-14).
Web Server:
www.cisco.com
Outside Translation
10.1.1.15 209.165.201.4
Global 1: 209.165.201.3-
209.165.201.10
NAT 1: 10.1.1.0/24
Translation DMZ
10.1.2.27 209.165.201.3 10.1.1.15
NAT 1: 10.1.2.0/24
Inside
132930
10.1.2.27
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
12-18 OL-8123-01
Chapter 12 Configuring NAT
Using Dynamic NAT and PAT
You can also enter a global command for each interface using the same NAT ID. If you enter a global
command for the Outside and DMZ interfaces on ID 1, then the Inside nat command identifies traffic to
be translated when going to both the Outside and the DMZ interfaces. Similarly, if you also enter a nat
command for the DMZ interface on ID 1, then the global command on the Outside interface is also used
for DMZ traffic. (See Figure 12-15).
Web Server:
www.cisco.com
Outside Translation
10.1.1.15 209.165.201.4
Global 1: 209.165.201.3-
209.165.201.10
NAT 1: 10.1.1.0/24
Global 1: 10.1.1.23
Translation DMZ
10.1.2.27 209.165.201.3 10.1.1.15
NAT 1: 10.1.2.0/24
Inside
Translation
10.1.2.27 10.1.1.23:2024
132926
10.1.2.27
If you use different NAT IDs, you can identify different sets of real addresses to have different mapped
addresses. For example, on the Inside interface, you can have two nat commands on two different
NAT IDs. On the Outside interface, you configure two global commands for these two IDs. Then, when
traffic from Inside network A exits the Outside interface, the IP addresses are translated to pool A
addresses; while traffic from Inside network B are translated to pool B addresses (see Figure 12-16). If
you use policy NAT, you can specify the same real addresses for multiple nat commands, as long as the
the destination addresses and ports are unique in each access list.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 12-19
Chapter 12 Configuring NAT
Using Dynamic NAT and PAT
Web Server:
www.cisco.com
Outside
Global 1: 209.165.201.3-
209.165.201.10
Global 2: 209.165.201.11
Translation
192.168.1.14 209.165.201.11:4567
Inside
10.1.2.27
132927
192.168.1.14
You can enter multiple global commands for one interface using the same NAT ID; the FWSM uses the
dynamic NAT global commands first, in the order they are in the configuration, and then uses the PAT
global commands in order. You might want to enter both a dynamic NAT global command and a PAT
global command if you need to use dynamic NAT for a particular application, but want to have a backup
PAT statement in case all the dynamic NAT addresses are depleted. Similarly, you might enter two PAT
statements if you need more than the approximately 64,000 PAT sessions that a single PAT mapped
statement supports (see Figure 12-17).
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
12-20 OL-8123-01
Chapter 12 Configuring NAT
Using Dynamic NAT and PAT
Web Server:
www.cisco.com
Translation
10.1.2.27 209.165.201.3 Outside
Global 1: 209.165.201.3-
209.165.201.4
Global 1: 209.165.201.5
Translation
10.1.2.29 209.165.201.5:6096
Translation
10.1.2.28 209.165.201.4
NAT 1: 10.1.2.0/24
Inside
10.1.2.27 10.1.2.29
132928
10.1.2.28
For outside NAT, you need to identify the nat command for outside NAT (the outside keyword). If you
also want to translate the same traffic when it accesses an inside interface (for example, traffic on a DMZ
is translated when accessing the Inside and the Outside interfaces), then you must configure a separate
nat command without the outside option. In this case, you can identify the same addresses in both
statements and use the same NAT ID (see Figure 12-18). Note that for outside NAT (DMZ interface to
Inside interface), the inside host uses a static command to allow outside access, so both the source and
destination addresses are translated.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 12-21
Chapter 12 Configuring NAT
Using Dynamic NAT and PAT
Outside Translation
10.1.1.15 209.165.201.4
Global 1: 209.165.201.3-
209.165.201.10
Translation
10.1.1.15 10.1.2.30
Inside
Undo Translation
10.1.1.5 10.1.2.27
132940
10.1.2.27
When you specify a group of IP address(es) in a nat command, then you must perform NAT on that group
of addresses when they access any lower or same security level interface; you must apply a global
command with the same NAT ID on each interface, or use a static command. NAT is not required for
that group when it accesses a higher security interface, because to perform NAT from outside to inside,
you must create a separate nat command using the outside keyword. If you do apply outside NAT, then
the NAT requirements preceding come into effect for that group of addresses when they access all higher
security interfaces. Traffic identified by a static command is not affected.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
12-22 OL-8123-01
Chapter 12 Configuring NAT
Using Dynamic NAT and PAT
FWSM
10.1.1.1 209.165.201.1
10.1.1.2 209.165.201.2
132934
Inside Outside
Figure 12-20 shows a typical dynamic PAT scenario. Only translated hosts can create a NAT session, and
responding traffic is allowed back. The mapped address defined by the global command is the same for
each translation, but the port is dynamically assigned.
FWSM
10.1.1.1:1025 209.165.201.1:2020
10.1.1.1:1026 209.165.201.1:2021
10.1.1.2:1025 209.165.201.1:2022
132936
Inside Outside
For more information about dynamic NAT, see the “Dynamic NAT” section on page 12-5. For more
information about PAT, see the “PAT” section on page 12-7.
Note If you change the NAT configuration, and you do not want to wait for existing translations to time out
before the new NAT information is used, you can clear the translation table using the clear xlate
command. However, clearing the translation table disconnects all current connections that use
translations.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 12-23
Chapter 12 Configuring NAT
Using Dynamic NAT and PAT
Step 1 To identify the real addresses that you want to translate, enter one of the following commands:
• Policy NAT:
hostname(config)# nat (real_interface) nat_id access-list acl_name [dns] [outside]
[[tcp] tcp_max_conns [emb_limit]] [udp udp_max_conns] [norandomseq]
You can identify overlapping addresses in other nat commands. For example, you can identify
10.1.1.0 in one command, but 10.1.1.1 in another. The traffic is matched to a policy NAT command
in order, until the first match, or for regular NAT, using the best match.
See the following description about options for this command:
– access-list acl_name—Identify the real addresses and destination addresses using an extended
access list. Create the access list using the access-list command (see the “Adding an Extended
Access List” section on page 10-5). This access list should include only permit ACEs. You can
optionally specify the real and destination ports in the access list using the eq operator. Policy
NAT does not consider the inactive or time-range keywords; all ACEs are considered to be
active for policy NAT configuration.
– nat_id—An integer between 1 and 65535. The NAT ID should match a global command NAT
ID. See the “Dynamic NAT and PAT Implementation” section on page 12-17 for more
information about how NAT IDs are used. 0 is reserved for NAT exemption. (See the
“Configuring NAT Exemption” section on page 12-33 for more information about NAT
exemption.)
– dns—If your nat command includes the address of a host that has an entry in a DNS server, and
the DNS server is on a different interface from a client, then the client and the DNS server need
different addresses for the host; one needs the mapped address and one needs the real address.
This option rewrites the address in the DNS reply to the client. The translated host needs to be
on the same interface as either the client or the DNS server. Typically, hosts that need to allow
access from other interfaces use a static translation, so this option is more likely to be used with
the static command. (See the “DNS and NAT” section on page 12-14 for more information.)
– outside—If this interface is on a lower security level than the interface you identify by the
matching global statement, then you must enter outside to identify the NAT instance as
outside NAT.
– tcp tcp_max_conns—Sets the maximum number of simultaneous TCP connections for the
entire subnet up to 65,536. The default is 0, which means the maximum connections.
– emb_limit—Sets the maximum number of embryonic connections per host up to 65,536. The
default is 0, which means the maximum connections. You must enter the tcp tcp_max_conns
before you enter the emb_limit. If you want to use the default value for tcp_max_conns, but
change the emb_limit, then enter 0 for tcp_max_conns.
An embryonic connection is a connection request that has not finished the necessary handshake
between source and destination. Limiting the number of embryonic connections protects you
from a DoS attack. The FWSM uses the embryonic limit to trigger TCP Intercept. An embryonic
connection is a connection request that has not finished the necessary handshake between
source and destination. TCP Intercept uses the SYN cookies algorithm to prevent TCP
SYN-flooding attacks. A SYN-flooding attack consists of a series of SYN packets usually
originating from spoofed IP addresses. The constant flood of SYN packets keeps the server
SYN queue full, which prevents it from servicing connection requests. When the embryonic
connection threshold of a connection is crossed, the FWSM acts as a proxy for the server and
generates a SYN-ACK response to the client's SYN request. When the FWSM receives an ACK
back from the client, it can then authenticate the client and allow the connection to the server.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
12-24 OL-8123-01
Chapter 12 Configuring NAT
Using Dynamic NAT and PAT
– udp udp_max_conns—Sets the maximum number of simultaneous UDP connections for the
entire subnet up to 65,536. The default is 0, which means the maximum connections.
– norandomseq—Disables TCP Initial Sequence Number (ISN) randomization. TCP initial
sequence number randomization can be disabled if another in-line firewall is also randomizing
the initial sequence numbers, because there is no need for both firewalls to be performing this
action. However, leaving ISN randomization enabled on both firewalls does not affect the
traffic. Each TCP connection has two ISNs: one generated by the client and one generated by
the server. The security appliance randomizes the ISN of the TCP SYN passing in the outbound
direction. If the connection is between two interfaces with the same security level, then the ISN
will be randomized in the SYN in both directions. Randomizing the ISN of the protected host
prevents an attacker from predecting the next ISN for a new connection and potentially
hijacking the new session.
Note You can alternatively set connection limits (but not embryonic connection limits) using the
Modular Policy Framework. See the “Configuring Connection Limits and Timeouts” section on
page 19-3 for more information. You can only set embryonic connection limits using NAT. If you
configure these settings for the same traffic using both methods, then the FWSM uses the lower
limit. For TCP sequence randomization, if it is disabled using either method, then the FWSM
disables TCP sequence randomization.
• Regular NAT:
hostname(config)# nat (real_interface) nat_id real_ip [mask [dns] [outside]
[[tcp] tcp_max_conns [emb_limit]] [udp udp_max_conns] [norandomseq]]
The nat_id is an integer between 1 and 2147483647. The NAT ID must match a global command
NAT ID. See the “Dynamic NAT and PAT Implementation” section on page 12-17 for more
information about how NAT IDs are used. 0 is reserved for identity NAT. See the “Configuring
Identity NAT” section on page 12-31 for more information about identity NAT.
See the preceding policy NAT command for information about other options.
Step 2 To identify the mapped address(es) to which you want to translate the real addresses when they exit a
particular interface, enter the following command:
hostname(config)# global (mapped_interface) nat_id {mapped_ip[-mapped_ip]}
This NAT ID should match a nat command NAT ID. The matching nat command identifies the addresses
that you want to translate when they exit this interface.
You can specify a single address (for PAT) or a range of addresses (for NAT). The range can go across
subnet boundaries if desired. For example, you can specify the following “supernet”:
192.168.1.1-192.168.2.254
For example, to translate the 10.1.1.0/24 network on the inside interface, enter the following command:
hostname(config)# nat (inside) 1 10.1.1.0 255.255.255.0
hostname(config)# global (outside) 1 209.165.201.1-209.165.201.30
To identify a pool of addresses for dynamic NAT as well as a PAT address for when the NAT pool is
exhausted, enter the following commands:
hostname(config)# nat (inside) 1 10.1.1.0 255.255.255.0
hostname(config)# global (outside) 1 209.165.201.5
hostname(config)# global (outside) 1 209.165.201.10-209.165.201.20
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 12-25
Chapter 12 Configuring NAT
Using Static NAT
To translate the lower security DMZ network addresses so they appear to be on the same network as the
inside network (10.1.1.0), for example, to simplify routing, enter the following commands:
hostname(config)# nat (dmz) 1 10.1.2.0 255.255.255.0 outside dns
hostname(config)# global (inside) 1 10.1.1.45
To identify a single real address with two different destination addresses using policy NAT, enter the
following commands (see Figure 12-8 on page 12-10 for a related figure):
hostname(config)# access-list NET1 permit ip 10.1.2.0 255.255.255.0 209.165.201.0
255.255.255.224
hostname(config)# access-list NET2 permit ip 10.1.2.0 255.255.255.0 209.165.200.224
255.255.255.224
hostname(config)# nat (inside) 1 access-list NET1 tcp 0 2000 udp 10000
hostname(config)# global (outside) 1 209.165.202.129
hostname(config)# nat (inside) 2 access-list NET2 tcp 1000 500 udp 2000
hostname(config)# global (outside) 2 209.165.202.130
To identify a single real address/destination address pair that use different ports using policy NAT, enter
the following commands (see Figure 12-9 on page 12-11 for a related figure):
hostname(config)# access-list WEB permit tcp 10.1.2.0 255.255.255.0 209.165.201.11
255.255.255.255 eq 80
hostname(config)# access-list TELNET permit tcp 10.1.2.0 255.255.255.0 209.165.201.11
255.255.255.255 eq 23
hostname(config)# nat (inside) 1 access-list WEB
hostname(config)# global (outside) 1 209.165.202.129
hostname(config)# nat (inside) 2 access-list TELNET
hostname(config)# global (outside) 2 209.165.202.130
FWSM
10.1.1.1 209.165.201.1
10.1.1.2 209.165.201.2
132937
Inside Outside
You cannot use the same real or mapped address in multiple static commands between the same two
interfaces. Do not use a mapped address in the static command that is also defined in a global command
for the same mapped interface.
For more information about static NAT, see the “Static NAT” section on page 12-7.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
12-26 OL-8123-01
Chapter 12 Configuring NAT
Using Static NAT
Note If you remove a static command, existing connections that use the translation are not affected. To remove
these connections, enter the clear local-host command.
Static translations from the translation table can be removed using the clear xlate command; the
translation table will be cleared and all current translations are deleted.
Create the access list using the access-list command (see the “Adding an Extended Access List”
section on page 10-5). This access list should include only permit ACEs. The source subnet mask
used in the access list is also used for the mapped addresses. You can also specify the real and
destination ports in the access list using the eq operator. Policy NAT does not consider the inactive
or time-range keywords; all ACEs are considered to be active for policy NAT configuration. See the
“Policy NAT” section on page 12-9 for more information.
If you specify a network for translation (for example, 10.1.1.0 255.255.255.0), then the FWSM
translates the .0 and .255 addresses. If you want to prevent access to these addresses, be sure to
configure an access list to deny access.
See the “Configuring Dynamic NAT or PAT” section on page 12-23 for information about the other
options.
• To configure regular static NAT, enter the following command:
hostname(config)# static (real_interface,mapped_interface) mapped_ip real_ip
[netmask mask] [dns] [[tcp] tcp_max_conns [emb_limit]] [udp udp_max_conns]
[norandomseq]
See the “Configuring Dynamic NAT or PAT” section on page 12-23 for information about the
options.
For example, the following policy static NAT example shows a single real address that is translated to
two mapped addresses depending on the destination address (see Figure 12-8 on page 12-10 for a related
figure):
hostname(config)# access-list NET1 permit ip host 10.1.2.27 209.165.201.0 255.255.255.224
hostname(config)# access-list NET2 permit ip host 10.1.2.27 209.165.200.224
255.255.255.224
hostname(config)# static (inside,outside) 209.165.202.129 access-list NET1
hostname(config)# static (inside,outside) 209.165.202.130 access-list NET2
The following command maps an inside IP address (10.1.1.3) to an outside IP address (209.165.201.12):
hostname(config)# static (inside,outside) 209.165.201.12 10.1.1.3 netmask 255.255.255.255
The following command maps the outside address (209.165.201.15) to an inside address (10.1.1.6):
hostname(config)# static (outside,inside) 10.1.1.6 209.165.201.15 netmask 255.255.255.255
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 12-27
Chapter 12 Configuring NAT
Using Static PAT
FWSM
10.1.1.1:23 209.165.201.1:23
10.1.1.2:8080 209.165.201.2:80
132943
Inside Outside
For applications that require application inspection for secondary channels (FTP, VoIP, etc.), the FWSM
automatically translates the secondary ports.
You cannot use the same real or mapped address in multiple static statements between the same two
interfaces. Do not use a mapped address in the static command that is also defined in a global command
for the same mapped interface.
For more information about static PAT, see the “Static PAT” section on page 12-7.
Note If you remove a static command, existing connections that use the translation are not affected. To remove
these connections, enter the clear local-host command.
You cannot clear static translations from the translation table with the clear xlate command; you must
remove the static command instead. Only dynamic translations created by the nat and global commands
can be removed with the clear xlate command.
Create the access list using the access-list command (see the “Adding an Extended Access List”
section on page 10-5). The protocol in the access list must match the protocol you set in this
command. For example, if you specify tcp in the static command, then you must specify tcp in the
access list. Specify the port using the eq operator. This access list should include only permit ACEs.
The source subnet mask used in the access list is also used for the mapped addresses. Policy NAT
does not consider the inactive or time-range keywords; all ACEs are considered to be active for
policy NAT configuration.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
12-28 OL-8123-01
Chapter 12 Configuring NAT
Using Static PAT
If you specify a network for translation (for example, 10.1.1.0 255.255.255.0), then the FWSM
translates the .0 and .255 addresses. If you want to prevent access to these addresses, be sure to
configure an access list to deny access.
See the “Configuring Dynamic NAT or PAT” section on page 12-23 for information about the other
options.
• To configure regular static PAT, enter the following command:
hostname(config)# static (real_interface,mapped_interface) {tcp | udp} mapped_ip
mapped_port real_ip real_port [netmask mask] [dns] [[tcp] tcp_max_conns [emb_limit]]
[udp udp_max_conns] [norandomseq]
See the “Configuring Dynamic NAT or PAT” section on page 12-23 for information about the
options.
For example, for Telnet traffic initiated from hosts on the 10.1.3.0 network to the FWSM outside
interface (10.1.2.14), you can redirect the traffic to the inside host at 10.1.1.15 by entering the following
commands:
hostname(config)# access-list TELNET permit tcp host 10.1.1.15 eq telnet 10.1.3.0
255.255.255.0 eq telnet
hostname(config)# static (inside,outside) tcp 10.1.2.14 telnet access-list TELNET
For HTTP traffic initiated from hosts on the 10.1.3.0 network to the FWSM outside interface (10.1.2.14),
you can redirect the traffic to the inside host at 10.1.1.15 by entering:
hostname(config)# access-list HTTP permit tcp host 10.1.1.15 eq http 10.1.3.0
255.255.255.0 eq http
hostname(config)# static (inside,outside) tcp 10.1.2.14 http access-list HTTP
To redirect Telnet traffic from the FWSM outside interface (10.1.2.14) to the inside host at 10.1.1.15,
enter the following command:
hostname(config)# static (inside,outside) tcp 10.1.2.14 telnet 10.1.1.15 telnet netmask
255.255.255.255
If you want to allow the preceding real Telnet server to initiate connections, though, then you need to
provide additional translation. For example, to translate all other types of traffic, enter the following
commands. The original static command provides translation for Telnet to the server, while the nat and
global commands provide PAT for outbound connections from the server.
hostname(config)# static (inside,outside) tcp 10.1.2.14 telnet 10.1.1.15 telnet netmask
255.255.255.255
hostname(config)# nat (inside) 1 10.1.1.15 255.255.255.255
hostname(config)# global (outside) 1 10.1.2.14
If you also have a separate translation for all inside traffic, and the inside hosts use a different mapped
address from the Telnet server, you can still configure traffic initiated from the Telnet server to use the
same mapped address as the static statement that allows Telnet traffic to the server. You need to create
a more exclusive nat statement just for the Telnet server. Because nat statements are read for the best
match, more exclusive nat statements are matched before general statements. The following example
shows the Telnet static statement, the more exclusive nat statement for initiated traffic from the Telnet
server, and the statement for other inside hosts, which uses a different mapped address.
hostname(config)# static (inside,outside) tcp 10.1.2.14 telnet 10.1.1.15 telnet netmask
255.255.255.255
hostname(config)# nat (inside) 1 10.1.1.15 255.255.255.255
hostname(config)# global (outside) 1 10.1.2.14
hostname(config)# nat (inside) 2 10.1.1.0 255.255.255.0
hostname(config)# global (outside) 2 10.1.2.78
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 12-29
Chapter 12 Configuring NAT
Using Static PAT
To translate a well-known port (80) to another port (8080), enter the following command:
hostname(config)# static (inside,outside) tcp 10.1.2.45 80 10.1.1.16 8080 netmask
255.255.255.255
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
12-30 OL-8123-01
Chapter 12 Configuring NAT
Bypassing NAT
Bypassing NAT
This section describes how to bypass NAT. You might want to bypass NAT when you enable NAT control.
You can bypass NAT using identity NAT, static identity NAT, or NAT exemption. See the “Bypassing
NAT when NAT Control is Enabled” section on page 12-8 for more information about these methods.
This section includes the following topics:
• Configuring Identity NAT, page 12-31
• Configuring Static Identity NAT, page 12-32
• Configuring NAT Exemption, page 12-33
FWSM
209.165.201.1 209.165.201.1
209.165.201.2 209.165.201.2
132935
Inside Outside
Note If you change the NAT configuration, and you do not want to wait for existing translations to time out
before the new NAT information is used, you can clear the translation table using the clear xlate
command. However, clearing the translation table disconnects all current connections that use
translations.
See the “Configuring Dynamic NAT or PAT” section on page 12-23 for information about the options.
For example, to use identity NAT for the inside 10.1.1.0/24 network, enter the following command:
hostname(config)# nat (inside) 0 10.1.1.0 255.255.255.0
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 12-31
Chapter 12 Configuring NAT
Bypassing NAT
FWSM
209.165.201.1 209.165.201.1
209.165.201.2 209.165.201.2
132938
Inside Outside
Note If you remove a static command, existing connections that use the translation are not affected. To remove
these connections, enter the clear local-host command.
You cannot clear static translations from the translation table with the clear xlate command; you must
remove the static command instead. Only dynamic translations created by the nat and global commands
can be removed with the clear xlate command.
Create the access list using the access-list command (see the “Adding an Extended Access List”
section on page 10-5). This access list should include only permit ACEs. Make sure the source
address in the access list matches the real_ip in this command. Policy NAT does not consider the
inactive or time-range keywords; all ACEs are considered to be active for policy NAT
configuration. See the “Policy NAT” section on page 12-9 for more information.
See the “Configuring Dynamic NAT or PAT” section on page 12-23 for information about the other
options.
• To configure regular static identity NAT, enter the following command:
hostname(config)# static (real_interface,mapped_interface) real_ip real_ip
[netmask mask] [dns] [[tcp] tcp_max_conns [emb_limit]] [udp udp_max_conns]
[norandomseq]
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
12-32 OL-8123-01
Chapter 12 Configuring NAT
Bypassing NAT
For example, the following command uses static identity NAT for an inside IP address (10.1.1.3) when
accessed by the outside:
hostname(config)# static (inside,outside) 10.1.1.3 10.1.1.3 netmask 255.255.255.255
The following command uses static identity NAT for an outside address (209.165.201.15) when accessed
by the inside:
hostname(config)# static (outside,inside) 209.165.201.15 209.165.201.15 netmask
255.255.255.255
The following static identity policy NAT example shows a single real address that uses identity NAT
when accessing one destination address, and a translation when accessing another:
hostname(config)# access-list NET1 permit ip host 10.1.2.27 209.165.201.0 255.255.255.224
hostname(config)# access-list NET2 permit ip host 10.1.2.27 209.165.200.224
255.255.255.224
hostname(config)# static (inside,outside) 10.1.2.27 access-list NET1
hostname(config)# static (inside,outside) 209.165.202.130 access-list NET2
FWSM
209.165.201.1 209.165.201.1
209.165.201.2 209.165.201.2
132938
Inside Outside
Note If you remove a NAT exemption configuration, existing connections that use NAT exemption are not
affected. To remove these connections, enter the clear local-host command.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 12-33
Chapter 12 Configuring NAT
NAT Examples
Create the extended access list using the access-list extended command (see the “Adding an Extended
Access List” section on page 10-5). This access list can include both permit ACEs and deny ACEs. Do
not specify the real and destination ports in the access list; NAT exemption does not consider the ports.
NAT exemption also does not consider the inactive or time-range keywords; all ACEs are considered
to be active for NAT exemption configuration.
See the “Configuring Dynamic NAT or PAT” section on page 12-23 for information about the other
options.
By default, this command exempts traffic from inside to outside. If you want traffic from outside to
inside to bypass NAT, then add an additional nat command and enter outside to identify the NAT
instance as outside NAT. You might want to use outside NAT exemption if you configure dynamic NAT
for the outside interface and want to exempt other traffic.
For example, to exempt an inside network when accessing any destination address, enter the following
command:
hostname(config)# access-list EXEMPT permit ip 10.1.2.0 255.255.255.0 any
hostname(config)# nat (inside) 0 access-list EXEMPT
To use dynamic outside NAT for a DMZ network, and exempt another DMZ network, enter the following
command:
hostname(config)# nat (dmz) 1 10.1.2.0 255.255.255.0 outside dns
hostname(config)# global (inside) 1 10.1.1.45
hostname(config)# access-list EXEMPT permit ip 10.1.3.0 255.255.255.0 any
hostname(config)# nat (dmz) 0 access-list EXEMPT outside
To exempt an inside address when accessing two different destination addresses, enter the following
commands:
hostname(config)# access-list NET1 permit ip 10.1.2.0 255.255.255.0 209.165.201.0
255.255.255.224
hostname(config)# access-list NET1 permit ip 10.1.2.0 255.255.255.0 209.165.200.224
255.255.255.224
hostname(config)# nat (inside) 0 access-list NET1
NAT Examples
This section describes typical scenarios that use NAT solutions, and includes the following topics:
• Overlapping Networks, page 12-35
• Redirecting Ports, page 12-36
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
12-34 OL-8123-01
Chapter 12 Configuring NAT
NAT Examples
Overlapping Networks
In Figure 12-26, the FWSM connects two private networks with overlapping address ranges.
192.168.100.2 192.168.100.2
outside
10.1.1.2 dmz
inside
192.168.100.0/24 192.168.100.0/24
FWSM
192.168.100.1 192.168.100.3 10.1.1.1 192.168.100.3
132931
Two networks use an overlapping address space (192.168.100.0/24), but hosts on each network must
communicate (as allowed by access lists). Without NAT, when a host on the inside network tries to access
a host on the overlapping DMZ network, the packet never makes it past the FWSM, which sees the packet
as having a destination address on the inside network. Moreover, if the destination address is being used
by another host on the inside network, that host receives the packet.
To solve this problem, use NAT to provide non-overlapping addresses. If you want to allow access in
both directions, use static NAT for both networks. If you only want to allow the inside interface to access
hosts on the DMZ, then you can use dynamic NAT for the inside addresses, and static NAT for the DMZ
addresses you want to access. This example shows static NAT.
To configure static NAT for these two interfaces, perform the following steps. The 10.1.1.0/24 network
on the DMZ is not translated.
Step 1 Translate 192.168.100.0/24 on the inside to 10.1.2.0 /24 when it accesses the DMZ by entering the
following command:
hostname(config)# static (inside,dmz) 10.1.2.0 192.168.100.0 netmask 255.255.255.0
Step 2 Translate the 192.168.100.0/24 network on the DMZ to 10.1.3.0/24 when it accesses the inside by
entering the following command:
hostname(config)# static (dmz,inside) 10.1.3.0 192.168.100.0 netmask 255.255.255.0
Step 3 Configure the following static routes so that traffic to the DMZ network can be routed correctly by the
FWSM:
hostname(config)# route dmz 192.168.100.128 255.255.255.128 10.1.1.2 1
hostname(config)# route dmz 192.168.100.0 255.255.255.128 10.1.1.2 1
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 12-35
Chapter 12 Configuring NAT
NAT Examples
The FWSM already has a connected route for the inside network. These static routes allow the FWSM
to send traffic for the 192.168.100.0/24 network out the DMZ interface to the gateway router at 10.1.1.2.
(You need to split the network into two because you cannot create a static route with the exact same
network as a connected route.) Alternatively, you could use a more broad route for the DMZ traffic, such
as a default route.
If host 192.168.100.2 on the DMZ network wants to initiate a connection to host 192.168.100.2 on the
inside network, the following events occur:
1. The DMZ host 192.168.100.2 sends the packet to IP address 10.1.2.2.
2. When the FWSM receives this packet, the FWSM translates the source address from 192.168.100.2
to 10.1.3.2.
3. Then the FWSM translates the destination address from 10.1.2.2 to 192.168.100.2, and the packet
is forwarded.
Redirecting Ports
Figure 12-27 illustrates a typical network scenario in which the port redirection feature might be useful.
Telnet Server
10.1.1.6
FTP Server
10.1.1.3 10.1.1.1 209.165.201.25
Inside Outside
Web Server
10.1.1.5
FWSM
Web Server
10.1.1.7
132932
In the configuration described in this section, port redirection occurs for hosts on external networks as
follows:
• Telnet requests to IP address 209.165.201.5 are redirected to 10.1.1.6.
• FTP requests to IP address 209.165.201.5 are redirected to 10.1.1.3.
• HTTP request to FWSM outside IP address 209.165.201.25 are redirected to 10.1.1.5.
• HTTP port 8080 requests to PAT address 209.165.201.15 are redirected to 10.1.1.7 port 80.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
12-36 OL-8123-01
Chapter 12 Configuring NAT
NAT Examples
Step 1 Configure PAT for the inside network by entering the following commands:
hostname(config)# nat (inside) 1 0.0.0.0 0.0.0.0 0 0
hostname(config)# global (outside) 1 209.165.201.15
Step 2 Redirect Telnet requests for 209.165.201.5 to 10.1.1.6 by entering the following command:
hostname(config)# static (inside,outside) tcp 209.165.201.5 telnet 10.1.1.6 telnet netmask
255.255.255.255
Step 3 Redirect FTP requests for IP address 209.165.201.5 to 10.1.1.3 by entering the following command:
hostname(config)# static (inside,outside) tcp 209.165.201.5 ftp 10.1.1.3 ftp netmask
255.255.255.255
Step 4 Redirect HTTP requests for the FWSM outside interface address to 10.1.1.5 by entering the following
command:
hostname(config)# static (inside,outside) tcp interface www 10.1.1.5 www netmask
255.255.255.255
Step 5 Redirect HTTP requests on port 8080 for PAT address 209.165.201.15 to 10.1.1.7 port 80 by entering
the following command:
hostname(config)# static (inside,outside) tcp 209.165.201.15 8080 10.1.1.7 www netmask
255.255.255.255
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 12-37
Chapter 12 Configuring NAT
NAT Examples
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
12-38 OL-8123-01
C H A P T E R 13
Configuring Failover
This chapter describes FWSM failover feature, which lets you configure two FWSMs so that one will
take over operation if the other one fails. Failover is compatible with both routed and transparent firewall
modes, and with single and multiple context modes.
This chapter includes the following sections:
• Understanding Failover, page 13-1
• Configuring Failover, page 13-18
• Controlling and Monitoring Failover, page 13-37
For sample failover configurations, see the “Failover Example Configurations” section on page B-18.
Understanding Failover
The failover configuration requires two identical FWSMs connected to each other through a dedicated
failover link and, optionally, a state link. The health of the active interfaces and units is monitored to
determine if specific failover conditions are met. If those conditions are met, failover occurs.
FWSM supports two failover configurations, Active/Active failover and Active/Standby failover. Each
failover configuration has its own method for determining and performing failover.
With Active/Active failover, both units can pass network traffic. This lets you configure load balancing
on your network. Active/Active failover is only available on units running in multiple context mode.
With Active/Standby failover, only one unit passes traffic while the other unit waits in a standby state.
Active/Standby failover is available on units running in either single or multiple context mode.
Both failover configurations support stateful or stateless (regular) failover.
This section includes the following topics:
• Failover System Requirements, page 13-2
• Failover and State Links, page 13-2
• Intra- and Inter-Chassis Module Placement, page 13-3
• Transparent Firewall Requirements, page 13-7
• Active/Standby and Active/Active Failover, page 13-8
• Regular and Stateful Failover, page 13-16
• Failover Health Monitoring, page 13-17
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 13-1
Chapter 13 Configuring Failover
Understanding Failover
Software Requirements
The two units in a failover configuration must have the same major (first number) and minor (second
number) software version. However, you can use different versions of the software during an upgrade
process; for example, you can upgrade one unit from Version 3.1(1) to Version 3.1(2) and have failover
remain active. We recommend upgrading both units to the same version to ensure long-term
compatibility.
License Requirements
Both units must have the same license.
Failover Link
The two units in a failover pair constantly communicate over a failover link to determine the operating
status of each unit. The following information is communicated over the failover link:
• The unit state (active or standby).
• Hello messages (keep-alives).
• Network link status.
• MAC address exchange.
• Configuration replication and synchronization.
Caution All information sent over the failover and Stateful Failover links is sent in clear text unless you secure
the communication with a failover key.
The failover link uses a special VLAN interface that you do not configure as a normal networking
interface; rather, it exists only for failover communications. This VLAN should only be used for the
failover link (and optionally for the state link). Sharing the failover link VLAN with any other VLANs
can cause intermittent traffic problems and ping and ARP failures. For inter-chassis failover, use
dedicated interfaces on the switch for the failover link.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
13-2 OL-8123-01
Chapter 13 Configuring Failover
Understanding Failover
Note If failover and the interface are configured but the VLAN is not downloaded from the switch and the
failover is in disabled mode, then the FWSM doesn't send ARP requests by design because it could
confilct with another FWSM currently running as Active in the system.
On systems running in multiple context mode, the failover link resides in the system context. This
interface and the state link, if used, are the only interfaces that you can configure in the system context.
All other interfaces are allocated to and configured from within security contexts.
Note The IP address and MAC address for the failover link do not change at failover.
State Link
To use Stateful Failover, you must configure a state link to pass all state information. This link can be
the same as the failover link, but we recommend that you assign a separate VLAN and IP address for the
state link. The state traffic can be large, and performance is improved with separate links.
The state link interface is not configured as a normal networking interface; it exists only for Stateful
Failover communications and, optionally, for the failover communication if you share the state and
failover links.
In multiple context mode, the state link resides in the system context. This interface and the failover
interface are the only interfaces in the system context. All other interfaces are allocated to and configured
from within security contexts.
Note The IP address and MAC address for the state link do not change at failover.
Caution All information sent over the failover and Stateful Failover links is sent in clear text unless you secure
the communication with a failover key.
Intra-Chassis Failover
If you install the secondary FWSM in the same switch as the primary FWSM, you protect against
module-level failure. To protect against switch-level failure, as well as module-level failure, see the
“Inter-Chassis Failover” section on page 13-5.
Even though both FWSMs are assigned the same VLANs, only the active module takes part in
networking. The standby module does not pass any traffic.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 13-3
Chapter 13 Configuring Failover
Understanding Failover
Internet
VLAN 100
Switch
VLAN 200
Failover VLAN 10
Active Standby
FWSM FWSM
State VLAN 11
VLAN 201
132919
Inside
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
13-4 OL-8123-01
Chapter 13 Configuring Failover
Understanding Failover
Inter-Chassis Failover
To protect against switch-level failure, you can install the secondary FWSM in a separate switch. FWSM
does not coordinate failover directly with the switch, but it works harmoniously with the switch failover
operation. See the switch documentation to configure failover for the switch.
To accommodate the failover communications between FWSMs, we recommend that you configure a
trunk port between the two switches that carries the failover and state VLANs. The trunk ensures that
failover communication between the two units is subject to minimal failure risk.
For other VLANs, you must ensure that both switches have access to all firewall VLANs, and that
monitored VLANs can successfully pass hello packets between both switches.
Figure 13-2 shows a typical switch and FWSM redundancy configuration. The trunk between the two
switches carries the failover FWSM VLANs (VLANs 10 and 11).
Note FWSM failover is independent of the switch failover operation; however, FWSM works in any switch
failover scenario.
Internet
VLAN 100
Switch Switch
VLAN 200
Failover Links:
VLAN 10
Active Trunk: Standby
FWSM VLANs 10 & 11 FWSM
VLAN 11
Eng
VLAN 203
Mktg
VLAN 202
132920
Inside
VLAN 201
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 13-5
Chapter 13 Configuring Failover
Understanding Failover
If the primary FWSM fails, then the secondary FWSM becomes active and successfully passes the
firewall VLANs (Figure 13-3).
Internet
VLAN 100
Switch Switch
VLAN 200
Failover Links:
VLAN 10
Failed Trunk: Active
FWSM VLANs 10 & 11 FWSM
VLAN 11
Eng
VLAN 203
Mktg
VLAN 202
Inside 132921
VLAN 201
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
13-6 OL-8123-01
Chapter 13 Configuring Failover
Understanding Failover
If the entire switch fails, as well as the FWSM (such as in a power failure), then both the switch and the
FWSM fail over to their secondary units (Figure 13-4).
Internet
VLAN 100
VLAN 200
Trunk
Failed Active
FWSM FWSM
Eng
VLAN 203
Mktg
VLAN 202
132922
Inside
VLAN 201
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 13-7
Chapter 13 Configuring Failover
Understanding Failover
endlessly replicated by both FWSMs (see Figure 13-5). The spanning tree protocol can break such loops
if there is a timely exchange of BPDUs. To break the loop, BPDUs sent between VLAN 200 and VLAN
201 need to be bridged.
Internet
MSFC
VLAN 200
Failover VLAN 10
Active Active
FWSM FWSM
State VLAN 11
Inside
VLAN 201 132918
Active/Standby Failover
This section describes Active/Standby failover and includes the following topics:
• Active/Standby Failover Overview, page 13-9
• Primary/Secondary Status and Active/Standby Status, page 13-9
• Device Initialization and Configuration Synchronization, page 13-9
• Command Replication, page 13-10
• Failover Triggers, page 13-10
• Failover Actions, page 13-11
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
13-8 OL-8123-01
Chapter 13 Configuring Failover
Understanding Failover
Active/Standby failover lets you use a standby FWSM to take over the functionality of a failed unit.
When the active unit fails, it changes to the standby state while the standby unit changes to the active
state. The unit that becomes active assumes the IP addresses (or, for transparent firewall, the
management IP address) and the MAC address of the failed unit and begins passing traffic. The unit that
is now in standby state takes over the standby IP addresses and MAC address. Because network devices
see no change in the MAC to IP address pairing, no ARP entries change or time out anywhere on the
network.
Note For multiple context mode, FWSM can fail over the entire unit (including all contexts) but cannot fail
over individual contexts separately.
The main difference between the two units in a failover pair are related to which unit is active and which
unit is standby, namely which IP addresses to use and which unit actively passes traffic.
However, a few differences exist between the units based on which unit is primary (as specified in the
configuration) and which unit is secondary:
• The primary unit always becomes the active unit if both units start up at the same time (and are of
equal operational health).
• The primary unit MAC address is always coupled with the active IP addresses. The exception to this
rule occurs when the secondary unit is active, and cannot obtain the primary MAC address over the
failover link. In this case, the secondary MAC address is used.
Configuration synchronization occurs when one or both devices in the failover pair boot. Configurations
are always synchronized from the active unit to the standby unit. When the standby unit completes its
initial startup, it clears its running configuration (except for the failover commands needed to
communicate with the active unit), and the active unit sends its entire configuration to the standby unit.
The active unit is determined by the following:
• If a unit boots and detects a peer already running as active, it becomes the standby unit.
• If a unit boots and does not detect a peer, it becomes the active unit.
• If both units boot simultaneously, then the primary unit becomes the active unit and the secondary
unit becomes the standby unit.
Note If the secondary unit boots without detecting the primary unit, it becomes the active unit. It uses its own
MAC address for the active IP addresses. However, when the primary unit becomes available, the
secondary unit changes the MAC address to that of the primary unit, which can cause an interruption in
your network traffic.
When the configuration synchronization starts, the FWSM console on the active unit displays the
message “Beginning configuration replication: Sending to mate,” and when it is complete, the FWSM
console displays the message “End Configuration Replication to mate.” During the configuration
synchronization, commands entered on the active unit may not replicate properly to the standby unit, and
commands entered on the standby unit may be overwritten by the configuration being replicated from
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 13-9
Chapter 13 Configuring Failover
Understanding Failover
the active unit. Avoid entering commands on either unit in the failover pair during the configuration
replication process. Depending upon the size of the configuration, replication can take from a few
seconds to several minutes.
If you enter the write standby command on the active unit, the standby unit clears its running
configuration (except for the failover commands used to communicate with the active unit), and the
active unit sends its entire configuration to the standby unit.
In multiple context mode, when you enter the write standby command in the system execution space,
all contexts are replicated. If you enter the write standby command within a context, the command
replicates only the context configuration.
On the standby unit, the replicated configuration exists only in running memory. To save the
configuration to Flash memory after synchronization:
• In single context mode, enter the write memory command on the active unit. The command is
replicated to the standby unit, which proceeds to write its configuration to Flash memory.
• In multiple context mode, enter the write memory all command on the active unit from the system
execution space. This command saves the system configuration and all context configurations. The
command is replicated to the standby unit, which proceeds to write its configurations to Flash
memory. Contexts with startup configurations on external servers are accessible from either unit
over the network and do not need to be saved separately for each unit. Alternatively, you can copy
the contexts on disk from the active unit to an external server, and then copy them to disk on the
standby unit, where they become available when the unit reloads.
Command Replication
As commands are entered on the active unit, they are sent across the failover link to the standby unit.
Command replication always flows from the active unit to the standby unit. Replicated commands are
stored in the running configuration of the standby unit. Saving the running configuration to the startup
configuration on the active unit causes the running configuration to be saved to the startup configuration
on the standby unit; however, you do not have to save the active configuration to Flash memory to
replicate the commands.
Note The RSA keys are not synchronized from the primary to the secondary unit in FWSM.
Changes made on the standby unit are not replicated to the active unit. If you enter a command on the
standby unit, FWSM displays the message **** WARNING **** Configuration Replication is NOT
performed from Standby unit to Active unit. Configurations are no longer synchronized.
This message displays even when you enter many commands that do not affect the configuration.
Failover Triggers
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
13-10 OL-8123-01
Chapter 13 Configuring Failover
Understanding Failover
Failover Actions
In Active/Standby failover, failover occurs on a unit basis. Even on systems running in multiple context
mode you cannot fail over individual or groups of contexts with Active/Standby failover.
Table 13-1 shows the failover action for each failure event. For each failure event, the table shows the
failover policy (failover or no failover), the action taken by the active unit, the action taken by the
standby unit, and any special notes about the failover condition and actions.
Active/Active Failover
This section describes Active/Active failover. This section includes the following topics:
• Active/Active Failover Overview, page 13-12
• Primary/Secondary Status and Active/Standby Status, page 13-12
• Device Initialization and Configuration Synchronization, page 13-12
• Command Replication, page 13-13
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 13-11
Chapter 13 Configuring Failover
Understanding Failover
Note A failover group failing on a unit does not mean that the unit has failed. The unit may still have another
failover group passing traffic on it.
When creating the failover groups, you should create them on the unit that will have failover group 1 in
the active state.
As in Active/Standby failover, one unit in an Active/Active failover pair is designated the primary unit,
and the other unit the secondary unit. Unlike Active/Standby failover, this designation does not indicate
which unit becomes active when both units start simultaneously. Instead, the primary/secondary
designation determines which unit provides the running configuration to the pair and on which unit each
failover group appears in the active state when both units start simultaneously.
Each failover group in the configuration is given a primary or secondary unit preference. This preference
determines on which unit in the failover pair the contexts in the failover group appear in the active state
when both units start simultaneously. You can have both failover groups be in the active state on a single
unit in the pair, with the other unit containing the failover groups in the standby state. However, a more
typical configuration is to assign each failover group a different role preference to make each one active
on a different unit, balancing the traffic across the devices.
Note FWSM does not provide load balancing services. Load balancing must be handled by a router passing
traffic to FWSM.
Configuration synchronization occurs when one or both units in a failover pair boot.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
13-12 OL-8123-01
Chapter 13 Configuring Failover
Understanding Failover
When a unit boots while the peer unit is not available, then both failover groups become active on the
unit regardless of the primary or secondary designation for the failover groups and the unit.
Configuration synchronization does not occur. Some reasons a peer unit may not be available are that
the peer unit is powered down, the peer unit is in a failed state, or the failover link between the units has
not been established.
When a unit boots while the peer unit is active (with both failover groups active on it), the booting unit
contacts the active unit to obtain the running configuration. By default, the failover groups will remain
active on the active unit regardless of the primary or secondary preference of each failover group and
unit designation (unless configured with the preempt command). The failover groups remain active on
the first unit until one of the following occurs:
• A failover condition causes the failover group to become active on the peer unit.
• You manually force a failover group to become active on the peer unit using the no failover active
command.
• The preempt command forces the failover group to become active on its preferred unit when that
unit becomes available.
When both units boot at the same time, the primary unit becomes the active unit. The secondary unit
obtains the running configuration from the primary unit. Once the configuration has been synchronized,
each failover group becomes active on its preferred unit.
Command Replication
After both units are running, commands are replicated from one unit to the other as follows:
• Commands entered within a security context are replicated from the unit on which the security
context appears in the active state to the peer unit.
Note A context is considered in the active state on a unit if the failover group to which it belongs is
in the active state on that unit.
• Commands entered in the system execution space are replicated from the unit on which failover
group 1 is in the active state to the unit on which failover group 1 is in the standby state.
• Commands entered in the admin context are replicated from the unit on which failover group 1 is in
the active state to the unit on which failover group 1 is in the standby state.
Failure to enter the commands on the appropriate unit for command replication to occur will cause the
configurations to become out of synchronization. Those changes may be lost the next time configuration
synchronization occurs.
You can use the write standby command to resynchronize configurations that have become out of sync.
For Active/Active failover, the write standby command behaves as follows:
• If you enter the write standby command in the system execution space, the system configuration
and the configurations for all of the security contexts on FWSM is written to the peer unit. This
includes configuration information for security contexts that are in the standby state. You must enter
the command in the system execution space on the unit that has failover group 1 in the active state.
• If you enter the write standby command in a security context, only the configuration for the security
context is written to the peer unit. You must enter the command in the security context on the unit
where the security context appears in the active state.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 13-13
Chapter 13 Configuring Failover
Understanding Failover
Replicated commands are not saved to the Flash memory when replicated to the peer unit. They are
added to the running configuration. To save replicated commands to Flash memory on both units, use
the write memory or copy running-config startup-config command on the unit that you made the
changes on. The command will be replicated to the peer unit and cause the configuration to be saved to
Flash memory on the peer unit.
Failover Triggers
In Active/Active failover, failover can be triggered at the unit level if one of the following events occurs:
• The unit has a hardware failure.
• The unit has a power failure.
• The unit has a software failure.
• The no failover active or the failover active command is entered in the system execution space.
Failover is triggered at the failover group level when one of the following events occurs:
• Too many monitored interfaces in the contexts that belong to the failover group fail.
• The no failover active group group_id command is entered.
You configure the failover threshold for each failover group by specifying the number or percentage of
interfaces within the failover group that must fail before the group fails. Because a failover group can
contain multiple contexts, and each context can contain multiple interfaces, it is possible for all
interfaces in a single context to fail without causing the associated failover group to fail.
See the “Failover Health Monitoring” section on page 13-17 for more information about interface and
unit monitoring.
Failover Actions
In an Active/Active failover configuration, failover occurs on a failover group basis, not a system basis.
For example, if you designate both failover groups as active on the primary unit, and failover group 1
fails, then failover group 2 remains active on the primary unit while failover group 1 becomes active on
the secondary unit.
Note When configuring Active/Active failover, make sure that the combined traffic for both units is within the
capacity of each unit.
Table 13-2 shows the failover action for each failure event. For each failure event, the policy (whether
or not failover occurs), actions for the active failover group, and actions for the standby failover group
are given.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
13-14 OL-8123-01
Chapter 13 Configuring Failover
Understanding Failover
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 13-15
Chapter 13 Configuring Failover
Understanding Failover
Regular Failover
When a failover occurs, all active connections are dropped. Clients need to reestablish connections when
the new active unit takes over.
Stateful Failover
When Stateful Failover is enabled, the active unit continually passes per-connection state information to
the standby unit. After a failover occurs, the same connection information is available at the new active
unit. Supported end-user applications are not required to reconnect to keep the same communication
session.
The state information passed to the standby unit includes the following:
• NAT translation table.
• TCP connection states.
• UDP connection states.
• The ARP table.
• The Layer 2 bridge table (when running in transparent firewall mode).
• The HTTP connection states (if HTTP replication is enabled).
• The ISAKMP and IPSec SA table.
• GTP PDP connection database.
The information that is not passed to the standby unit when Stateful Failover is enabled includes the
following:
• The HTTP connection table (unless HTTP replication is enabled).
• The user authentication (uauth) table.
• The routing tables.
• Multicast traffic information.
Note If failover occurs during an active Cisco IP SoftPhone session, the call will remain active because the
call session state information is replicated to the standby unit. When the call is terminated, the IP
SoftPhone client will lose connection with the CallManager. This occurs because there is no session
information for the CTIQBE hangup message on the standby unit. When the IP SoftPhone client does
not receive a response back from the CallManager within a certain time period, it considers the
CallManager unreachable and unregisters itself.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
13-16 OL-8123-01
Chapter 13 Configuring Failover
Understanding Failover
Note If a failed unit does not recover and you believe it should not be failed, you can reset the state by entering
the failover reset command. If the failover condition persists, however, the unit will fail again.
Interface Monitoring
You can monitor up to 250 interfaces divided between all contexts. You can configure one context to
monitor a shared interface (because the interface is shared, all contexts benefit from the monitoring).
When a unit does not receive hello messages on a monitored interface, it runs the following tests:
1. Link Up/Down test—A test of the interface status. If the Link Up/Down test indicates that the
interface is operational, then FWSM performs network tests. The purpose of these tests is to
generate network traffic to determine which (if either) unit has failed. At the start of each test, each
unit clears its received packet count for its interfaces. At the conclusion of each test, each unit looks
to see if it has received any traffic. If it has, the interface is considered operational. If one unit
receives traffic for a test and the other unit does not, the unit that received no traffic is considered
failed. If neither unit has received traffic, then the next test is used.
2. Network Activity test—A received network activity test. The unit counts all received packets for up
to 5 seconds. If any packets are received at any time during this interval, the interface is considered
operational and testing stops. If no traffic is received, the ARP test begins.
3. ARP test—A reading of the unit ARP cache for the 2 most recently acquired entries. One at a time,
the unit sends ARP requests to these machines, attempting to stimulate network traffic. After each
request, the unit counts all received traffic for up to 5 seconds. If traffic is received, the interface is
considered operational. If no traffic is received, an ARP request is sent to the next machine. If at the
end of the list no traffic has been received, the ping test begins.
4. Broadcast Ping test—A ping test that consists of sending out a broadcast ping request. The unit then
counts all received packets for up to 5 seconds. If any packets are received at any time during this
interval, the interface is considered operational and testing stops.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 13-17
Chapter 13 Configuring Failover
Configuring Failover
If all network tests fail for an interface, but this interface on the other unit continues to successfully pass
traffic, then the interface is considered to be failed. If the threshold for failed interfaces is met, then a
failover occurs. If the other unit interface also fails all the network tests, then both interfaces go into the
“Unknown” state and do not count towards the failover limit.
An interface becomes operational again if it receives any traffic. A failed FWSM returns to standby mode
if the interface failure threshold is no longer met.
Note If a failed unit does not recover and you believe it should not be failed, you can reset the state by entering
the failover reset command. If the failover condition persists, however, the unit will fail again.
Configuring Failover
This section describes how to configure failover and includes the following topics:
• Using Active/Standby Failover, page 13-18
• Using Active/Active Failover, page 13-23
• Configuring Failover Communication Authentication/Encryption, page 13-27
• Verifying the Failover Configuration, page 13-28
Prerequisites
Before you begin, verify the following:
• Both units have the proper license.
• If the primary unit is in single context mode, the secondary unit must also be in single context mode
and also be in the same firewall mode as the primary unit.
• If the primary unit is in multiple context mode, the secondary unit must also be in multiple context
mode. You do not need configure the firewall mode of the security contexts on the secondary unit
because the failover and state links reside in the system context. The secondary unit obtains the
security context configuration from the primary unit.
Note The mode command does not get replicated to the secondary unit.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
13-18 OL-8123-01
Chapter 13 Configuring Failover
Configuring Failover
Follow these steps to configure the primary unit in an Active/Standby failover configuration. These steps
provide the minimum configuration needed to enable failover on the primary unit. For multiple context
mode, all steps are performed in the system execution space unless otherwise noted.
To configure the primary unit in an Active/Standby failover pair, perform the following steps:
Step 1 If you have not done so already, configure the active and standby IP addresses for each interface (routed
mode) or for the management address (transparent mode). The standby IP address is used on the FWSM
that is currently the standby unit. It must be in the same subnet as the active IP address.
Note Do not configure an IP address for the failover link or for the state link (if you are going to use
Stateful Failover).
Note In multiple context mode, you must configure the interface addresses from within each context.
Use the changeto context command to switch between contexts. The command prompt changes
to hostname/context(config-if)#, where context is the name of the current context.
The if_name argument assigns a name to the interface specified by the vlan argument.
b. Assign the active and standby IP address to the failover link:
hostname(config)# failover interface ip if_name ip_addr mask standby ip_addr
The standby IP address must be in the same subnet as the active IP address. You do not need to
identify the standby address subnet mask.
The failover link IP address and MAC address do not change at failover. The active IP address for
the failover link always stays with the primary unit, while the standby IP address stays with the
secondary unit.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 13-19
Chapter 13 Configuring Failover
Configuring Failover
Step 4 (Optional) To enable Stateful Failover, configure the state link. The state link must be configured on an
unused interface.
a. Specify the interface to be used as state link:
hostname(config)# failover link if_name [vlan vlan]
Note If the state link uses the failover link, then you only need to supply the if_name argument.
The if_name argument assigns a logical name to the interface specified by the vlan argument. This
interface should not be used for any other purpose except, optionally, the failover link.
b. Assign an active and standby IP address to the state link.
Note If the state link uses the failover link, skip this step. You have already defined the failover
link active and standby IP addresses.
The standby IP address must be in the same subnet as the active IP address. You do not need to
identify the standby address subnet mask.
The state link IP address and MAC address do not change at failover. The active IP address always
stays with the primary unit, while the standby IP address stays with the secondary unit.
Step 5 To enable monitoring on an interface, enter the following command:
hostname(config)# monitor-interface interface_name
The maximum number of interfaces to monitor on the FWSM (divided between all contexts) is 250.
Note In multiple context mode, you must configure interface monitoring from within each context.
Use the changeto context command to switch between contexts. The command prompt changes
to hostname/context(config)#, where context is the name of the current context.
Note In multiple context mode, enter write memory all in the system execution space to save all
context configurations.
The only configuration required on the secondary unit is for the failover interface. The secondary unit
requires these commands to initially communicate with the primary unit. After the primary unit sends
its configuration to the secondary unit, the only permanent difference between the two configurations is
the failover lan unit command, which identifies each unit as primary or secondary.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
13-20 OL-8123-01
Chapter 13 Configuring Failover
Configuring Failover
For multiple context mode, all steps are performed in the system execution space unless noted otherwise.
To configure the secondary unit, perform the following steps:
Step 1 Define the failover interface. Use the same settings as you used for the primary unit.
a. Specify the interface to be used as the failover interface:
hostname(config)# failover lan interface if_name vlan vlan
The if_name argument assigns a name to the interface specified by the vlan argument.
b. Assign the active and standby IP address to the failover link:
hostname(config)# failover interface ip if_name ip_addr mask standby ip_addr
Note Enter this command exactly as you entered it on the primary unit when you configured the
failover interface on the primary unit.
Note This step is optional because by default units are designated as secondary unless previously
configured.
After you enable failover, the active unit sends the configuration in running memory to the standby unit.
As the configuration synchronizes, the messages “Beginning configuration replication: Sending to mate”
and “End Configuration Replication to mate” appear on the active unit console.
Step 4 After the running configuration has completed replication, save the configuration to Flash memory:
hostname(config)# write memory
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 13-21
Chapter 13 Configuring Failover
Configuring Failover
To allow HTTP connections to be included in the state information replication, you need to enable HTTP
replication. Because HTTP connections are typically short-lived, and because HTTP clients typically
retry failed connection attempts, HTTP connections are not automatically included in the replicated state
information.
Enter the following command in global configuration mode to enable HTTP state replication when
Stateful Failover is enabled:
hostname(config)# failover replication http
FWSM monitors both unit and interface health for failover. You can configure the amount of time
between hello messages when monitoring interface and unit health. Decreasing the poll time allows an
interface or unit failure to be detected more quickly, but consumes more system resources.
To change the interface poll time, enter the following command in global configuration mode:
hostname(config)# failover polltime interface seconds
To change the unit poll time, enter the following command in global configuration mode:
hostname(config)# failover polltime seconds
To change the unit hold time, enter the following command in global configuration mode:
hostname(config)# failover holdtime seconds
Note You cannot enter a holdtime value that is less than 3 times the unit poll time. With a faster poll time, the
FWSM can detect failure and trigger failover faster. However, faster detection can cause unnecessary
switchovers when the network is temporarily congested.
By default, failure of 50% of monitored interfaces causes failover. You can specify a specific number of
interfaces or a percentage of monitored interfaces that must fail before a failover occurs.
To change the default failover criteria, enter the following command in global configuration mode:
hostname(config)# failover interface-policy num[%]
When specifying a specific number of interfaces, the num argument can be from 1 to 250. When
specifying a percentage of interfaces, the num argument can be from 1 to 100.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
13-22 OL-8123-01
Chapter 13 Configuring Failover
Configuring Failover
Prerequisites
Before you begin, verify the following:
• Both units have the proper license.
• Both units are in multiple context mode. You do not need configure the firewall mode of the security
contexts on the secondary unit because the failover and state links reside in the system context. The
secondary unit obtains the security context configuration from the primary unit.
Note The mode command does not get replicated to the secondary unit.
To configure the primary unit in an Active/Active failover configuration, perform the following steps:
Step 1 Configure the basic failover parameters in the system execution space.
a. Designate the unit as the primary unit:
hostname(config)# failover lan unit primary
The if_name argument assigns a logical name to the interface specified by the vlan argument. This
interface should not be used for any other purpose (except, optionally, the state link).
c. Specify the failover link active and standby IP addresses:
hostname(config)# failover interface ip if_name ip_addr mask standby ip_addr
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 13-23
Chapter 13 Configuring Failover
Configuring Failover
The standby IP address must be in the same subnet as the active IP address. You do not need to
identify the standby IP address subnet mask. The failover link IP address does not change at failover.
The active IP address always stays with the primary unit, while the standby IP address stays with
the secondary unit.
Step 2 (Optional) To enable Stateful Failover, configure the state link. The state link must be configured on an
unused interface.
a. Specify the interface to be used as state link:
hostname(config)# failover link if_name [vlan vlan]
The if_name argument assigns a logical name to the interface specified by the vlan argument. This
interface should not be used for any other purpose (except, optionally, the failover link).
Note If the state link uses the failover link, then you only need to supply the if_name argument.
Note If the state link uses the failover link, skip this step. You have already defined the failover
link active and standby IP addresses.
The standby IP address must be in the same subnet as the active IP address. You do not need to
identify the standby address subnet mask.
The state link IP address does not change at failover. The active IP address always stays with the
primary unit, while the standby IP address stays with the secondary unit.
Step 3 Configure the failover groups. You can have at most two failover groups. The failover group command
creates the specified failover group if it does not exist and enters the failover group configuration mode.
For each failover group, you need to specify whether the failover group has primary or secondary
preference using the primary or secondary command. You can assign the same preference to both
failover groups. For load balancing configurations, you should assign each failover group a different unit
preference.
The following example assigns failover group 1 a primary preference and failover group 2 a secondary
preference:
hostname(config)# failover group 1
hostname(config-fover-group)# primary
hostname(config-fover-group)# exit
hostname(config)# failover group 2
hostname(config-fover-group)# secondary
hostname(config-fover-group)# exit
Step 4 Assign each context to a failover group using the join-failover-group command in context configuration
mode.
Any unassigned contexts are automatically assigned to failover group 1. The admin context is always a
member of failover group 1.
Enter the following commands to assign each context to a failover group:
hostname(config)# context context_name
hostname(config-context)# join-failover-group {1 | 2}
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
13-24 OL-8123-01
Chapter 13 Configuring Failover
Configuring Failover
Step 6 To enable monitoring on an interface, change to the context and enter the following command:
hostname(config)# changeto context context_name
hostname(config)# monitor-interface interface_name
The maximum number of interfaces to monitor on the FWSM (divided between all contexts) is 250.
You need to configure the secondary unit to recognize the failover link. This allows the secondary unit
to communicate with and receive the running configuration from the primary unit.
To configure the secondary unit in an Active/Active failover configuration, perform the following steps:
Step 1 Define the failover interface. Use the same settings as you used for the primary unit.
a. Specify the interface to be used as the failover interface:
hostname(config)# failover lan interface if_name vlan vlan
The if_name argument assigns a logical name to the interface specified by the vlan argument.
b. Assign the active and standby IP address to the failover link:
hostname(config)# failover interface ip if_name ip_addr mask standby ip_addr
Note Enter this command exactly as you entered it on the primary unit when you configured the
failover interface.
The standby IP address must be in the same subnet as the active IP address. You do not need to
identify the standby address subnet mask.
Step 2 (Optional) Designate this unit as the secondary unit:
hostname(config)# failover lan unit secondary
Note This step is optional because by default units are designated as secondary unless previously
configured otherwise.
After you enable failover, the active unit sends the configuration in running memory to the standby unit.
As the configuration synchronizes, the messages Beginning configuration replication: Sending to
mate and End Configuration Replication to mate appear on the active unit console.
Step 4 After the running configuration has completed replication, enter the following command to save the
configuration to Flash memory:
hostname(config)# write memory
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 13-25
Chapter 13 Configuring Failover
Configuring Failover
Step 5 If necessary, force any failover group that is active on the primary to the active state on the secondary
unit. To force a failover group to become active on the secondary unit, enter the following command in
the system execution space on the primary unit:
hostname# no failover active group group_id
The group_id argument specifies the group you want to become active on the secondary unit.
Assigning a primary or secondary priority to a failover group specifies which unit the failover group
becomes active on when both units boot simultaneously. However, if one unit boots before the other, then
both failover groups become active on that unit. When the other unit comes online, any failover groups
that have the unit as a priority do not become active on that unit unless manually forced over, a failover
occurs, or the failover group is configured with the preempt command. The preempt command causes
a failover group to become active on the designated unit automatically when that unit becomes available.
Enter the following commands to configure preemption for the specified failover group:
hostname(config)# failover group {1 | 2}
hostname(config-fover-group)# preempt [delay]
You can enter an optional delay value, which specifies the number of seconds the failover group remains
active on the current unit before automatically becoming active on the designated unit.
To allow HTTP connections to be included in the state information, you need to enable HTTP
replication. Because HTTP connections are typically short-lived, and because HTTP clients typically
retry failed connection attempts, HTTP connections are not automatically included in the replicated state
information. You can use the replication http command to cause a failover group to replicate HTTP state
information when Stateful Failover is enabled.
To enable HTTP state replication for a failover group, enter the following command. This command only
affects the failover group in which it was configured. To enable HTTP state replication for both failover
groups, you must enter this command in each group. This command should be entered in the system
execution space.
hostname(config)# failover group {1 | 2}
hostname(config-fover-group)# replication http
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
13-26 OL-8123-01
Chapter 13 Configuring Failover
Configuring Failover
You can configure the amount of time between hello messages when monitoring the health of the
interfaces in a failover group. Decreasing the interface poll time allows failover to occur faster when an
interface fails, but consumes more system resources.
To change the default interface poll time, enter the following commands:
hostname(config)# failover group {1 | 2}
hostname(config-fover-group)# polltime interface seconds
The unit poll time specifies the amount of time between hello messages sent across the failover link to
determine the health of the peer unit. Decreasing the unit poll time allows a failed unit to be detected
faster, but consumes more system resources. To change the unit poll time, enter the following command
in global configuration mode of the system execution space:
hostname(config)# failover polltime seconds
By default, failure of 50% of monitored interfaces causes failover. You can specify a specific number of
interfaces or a percentage of monitored interfaces that must fail before a failover occurs. The failover
criteria is specified on a failover group basis.
To change the default failover criteria for the specified failover group, enter the following commands:
hostname(config)# failover group {1 | 2}
hostname(config-fover-group)# interface-policy num[%]
When specifying a specific number of interfaces, the num argument can be from 1 to 250. When
specifying a percentage of interfaces, the num argument can be from 1 to 100.
Caution All information sent over the failover and Stateful Failover links is sent in clear text unless you secure
the communication with a failover key. If FWSM is used to terminate VPN tunnels, this information
includes any usernames, passwords and preshared keys used for establishing the tunnels. Transmitting
this sensitive data in clear text could pose a significant security risk. We recommend securing the failover
communication with a failover key if you are using FWSM to terminate VPN tunnels.
Enter the following command on the active unit of an Active/Standby failover pair or on the unit that has
failover group 1 in the active state of an Active/Active failover pair:
hostname(config)# failover key {secret | hex key}
The secret argument specifies a shared secret that is used to generate the encryption key. It can be from
1 to 63 characters. The characters can be any combination of numbers, letters, or punctuation. The hex
key argument specifies a hexadecimal encryption key. The key must be 32 hexadecimal characters (0-9,
a-f).
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 13-27
Chapter 13 Configuring Failover
Configuring Failover
Note To prevent the failover key from being replicated to the peer unit in clear text for an existing failover
configuration, disable failover on the active unit (or in the system execution space on the unit that has
failover group 1 in the active state), enter the failover key on both units, and then reenable failover. When
failover is reenabled, the failover communication will be encrypted with the key.
For new failover configurations, the failover key command should be part of the initial failover pair
configuration.
The following is sample output from the show failover command for Active/Standby failover.
Table 13-4 provides descriptions for the information shown.
hostname# show failover
Failover On
Failover unit Primary
Failover LAN Interface: fover Vlan 100(up)
Unit Poll frequency 1 seconds, holdtime 3 seconds
Interface Poll frequency 15 seconds
Interface Policy 1
Monitored Interfaces 2 of 250 maximum
failover replication http
Last Failover at: 22:44:03 UTC Dec 8 2004
This host: Primary - Active
Active time: 13434 (sec)
Interface inside (10.130.9.3): Normal
Interface outside (10.132.9.3): Normal
Other host: Secondary - Standby Ready
Active time: 0 (sec)
Interface inside (10.130.9.4): Normal
Interface outside (10.132.9.4): Normal
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
13-28 OL-8123-01
Chapter 13 Configuring Failover
Configuring Failover
In multiple context mode, using the show failover command in a security context displays the failover
information for that context. The information is similar to the information shown when using the
command in single context mode. Instead of showing the active/standby status of the unit, it displays the
active/standby status of the context. Table 13-4 provides descriptions for the information shown.
Failover On
Last Failover at: 04:03:11 UTC Jan 4 2003
This context: Negotiation
Active time: 1222 (sec)
Interface outside (192.168.5.121): Normal
Interface inside (192.168.0.1): Normal
Peer context: Not Detected
Active time: 0 (sec)
Interface outside (192.168.5.131): Normal
Interface inside (192.168.0.11): Normal
Field Options
Failover • On
• Off
Failover Unit Primary or Secondary.
Failover LAN Interface Displays the name of the failover link.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 13-29
Chapter 13 Configuring Failover
Configuring Failover
Field Options
Unit Poll frequency Displays the number of seconds between hello messages sent to the
peer unit and the number of seconds during which the unit must receive
a hello message on the failover link before declaring the peer failed.
Interface Poll frequency n seconds
The number of seconds you set with the failover polltime interface
command. The default is 15 seconds.
Interface Policy Displays the number or percentage of interfaces that must fail to trigger
failover.
Monitored Interfaces Displays the number of interfaces monitored out of the maximum
possible.
failover replication http Displays if HTTP state replication is enabled for Stateful Failover.
Last Failover at: The date and time of the last failover in the following form:
hh:mm:ss UTC DayName Month Day yyyy
UTC (Coordinated Universal Time) is equivalent to GMT (Greenwich
Mean Time).
This host: For each host, the display shows the following information.
Other host:
Primary or Secondary • Active
• Standby
Active time: n (sec)
The amount of time the unit has been active. This time is cumulative,
so the standby unit, if it was active in the past, will also show a value.
Interface name (n.n.n.n): For each interface, the display shows the IP address currently being
used on each unit, as well as one of the following conditions:
• Failed—The interface has failed.
• No Link—The interface line protocol is down.
• Normal—The interface is working correctly.
• Link Down—The interface has been administratively shut down.
• Unknown—FWSM cannot determine the status of the interface.
• Waiting—Monitoring of the network interface on the other unit has
not yet started.
Stateful Failover Logical The following fields relate to the Stateful Failover feature. If the Link
Update Statistics field shows an interface name, the Stateful Failover statistics are shown.
Link • interface_name—The interface used for the Stateful Failover link.
• Unconfigured—You are not using Stateful Failover.
• up—The interface is up and functioning.
• down—The interface is either administratively shutdown or is
physically down.
• failed—The interface has failed and is not passing stateful data.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
13-30 OL-8123-01
Chapter 13 Configuring Failover
Configuring Failover
Field Options
Stateful Obj For each field type, the following statistics are shown. They are
counters for the number of state information packets sent between the
two units; the fields do not necessarily show active connections through
the unit.
• xmit—Number of transmitted packets to the other unit.
• xerr—Number of errors that occurred while transmitting packets to
the other unit.
• rcv—Number of received packets.
• rerr—Number of errors that occurred while receiving packets from
the other unit.
General Sum of all stateful objects.
sys cmd Logical update system commands; for example, LOGIN and Stay
Alive.
up time Up time, which the active unit passes to the standby unit.
RPC services Remote Procedure Call connection information.
TCP conn TCP connection information.
UDP conn Dynamic UDP connection information.
ARP tbl Dynamic ARP table information.
L2BRIDGE tbl Layer 2 bridge table information (transparent firewall mode only).
Xlate_Timeout Indicates connection translation timeout information.
VPN IKE upd IKE connection information.
VPN IPSEC upd IPSec connection information.
VPN CTCP upd cTCP tunnel connection information.
VPN SDI upd SDI AAA connection information.
VPN DHCP upd Tunneled DHCP connection information.
GTP PDP GTP PDP update information. This information appears only if inspect
GTP is enabled.
GTP PDPMCB GTP PDPMCB update information. This information appears only if
inspect GTP is enabled.
Logical Update Queue For each field type, the following statistics are used:
Information • Cur—Current number of packets
• Max—Maximum number of packets
• Total—Total number of packets
Recv Q The status of the receive queue.
Xmit Q The status of the transmit queue.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 13-31
Chapter 13 Configuring Failover
Configuring Failover
The following is sample output from the show failover command for Active/Active failover. Table 13-5
provides descriptions for the information shown.
hostname# show failover
Failover On
Failover unit Primary
Failover LAN Interface: fover Vlan 100 (up)
Unit Poll frequency 1 seconds, holdtime 15 seconds
Interface Poll frequency 4 seconds
Interface Policy 1
Monitored Interfaces 8 of 250 maximum
failover replication http
Group 1 last failover at: 13:40:18 UTC Dec 9 2004
Group 2 last failover at: 13:40:06 UTC Dec 9 2004
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
13-32 OL-8123-01
Chapter 13 Configuring Failover
Configuring Failover
The following is sample output from the show failover group command for Active/Active failover. The
information displayed is similar to that of the show failover command, but limited to the specified
group. Table 13-5 provides descriptions for the information shown.
Field Options
Failover • On
• Off
Failover Unit Primary or Secondary.
Failover LAN Interface Displays the name of the failover link.
Unit Poll frequency Displays the number of seconds between hello messages sent to the
peer unit and the number of seconds during which the unit must receive
a hello message on the failover link before declaring the peer failed.
Interface Poll frequency n seconds
The number of seconds you set with the failover polltime interface
command. The default is 15 seconds.
Interface Policy Displays the number or percentage of interfaces that must fail before
triggering failover.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 13-33
Chapter 13 Configuring Failover
Configuring Failover
Field Options
Monitored Interfaces Displays the number of interfaces monitored out of the maximum
possible.
Group 1 Last Failover at: The date and time of the last failover for each group in the following
form:
Group 2 Last Failover at:
hh:mm:ss UTC DayName Month Day yyyy
UTC (Coordinated Universal Time) is equivalent to GMT (Greenwich
Mean Time).
This host: For each host, the display shows the following information.
Other host:
Role Primary or Secondary
System State • Active or Standby Ready
• Active Time in seconds
Group 1 State • Active or Standby Ready
Group 2 State • Active Time in seconds
context Interface name For each interface, the display shows the IP address currently being
(n.n.n.n): used on each unit, as well as one of the following conditions:
• Failed—The interface has failed.
• No link—The interface line protocol is down.
• Normal—The interface is working correctly.
• Link Down—The interface has been administratively shut down.
• Unknown—FWSM cannot determine the status of the interface.
• Waiting—Monitoring of the network interface on the other unit has
not yet started.
Stateful Failover Logical The following fields relate to the Stateful Failover feature. If the Link
Update Statistics field shows an interface name, the Stateful Failover statistics are shown.
Link • interface_name—The interface used for the Stateful Failover link.
• Unconfigured—You are not using Stateful Failover.
• up—The interface is up and functioning.
• down—The interface is either administratively shutdown or is
physically down.
• failed—The interface has failed and is not passing stateful data.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
13-34 OL-8123-01
Chapter 13 Configuring Failover
Configuring Failover
Field Options
Stateful Obj For each field type, the following statistics are used. They are counters
for the number of state information packets sent between the two units;
the fields do not necessarily show active connections through the unit.
• xmit—Number of transmitted packets to the other unit
• xerr—Number of errors that occurred while transmitting packets to
the other unit
• rcv—Number of received packets
• rerr—Number of errors that occurred while receiving packets from
the other unit
General Sum of all stateful objects.
sys cmd Logical update system commands; for example, LOGIN and Stay
Alive.
up time Up time, which the active unit passes to the standby unit.
RPC services Remote Procedure Call connection information.
TCP conn TCP connection information.
UDP conn Dynamic UDP connection information.
ARP tbl Dynamic ARP table information.
L2BRIDGE tbl Layer 2 bridge table information (transparent firewall mode only).
Xlate_Timeout Indicates connection translation timeout information.
VPN IKE upd IKE connection information.
VPN IPSEC upd IPSec connection information.
VPN CTCP upd cTCP tunnel connection information.
VPN SDI upd SDI AAA connection information.
VPN DHCP upd Tunneled DHCP connection information.
GTP PDP GTP PDP update information. This information appears only if inspect
GTP is enabled.
GTP PDPMCB GTP PDPMCB update information. This information appears only if
inspect GTP is enabled.
Logical Update Queue For each field type, the following statistics are used:
Information • Cur—Current number of packets
• Max—Maximum number of packets
• Total—Total number of packets
Recv Q The status of the receive queue.
Xmit Q The status of the transmit queue.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 13-35
Chapter 13 Configuring Failover
Configuring Failover
For example:
hostname/context(config)# show monitor-interface
This host: Primary - Active
Interface outside (192.168.1.2): Normal
Interface inside (10.1.1.91): Normal
Other host: Secondary - Standby
Interface outside (192.168.1.3): Normal
Interface inside (10.1.1.100): Normal
All of the failover commands are displayed. On units running multiple context mode, enter this command
in the system execution space. Entering show running-config all failover displays the failover
commands in the running configuration and includes commands for which you have not changed the
default value.
Step 1 Test that your active unit or failover group is passing traffic as expected by using FTP (for example) to
send a file between hosts on different interfaces.
Step 2 Force a failover to the standby unit by entering the following command:
• For Active/Standby failover, enter the following command on the active unit:
hostname(config)# no failover active
• For Active/Active failover, enter the following command on the unit where failover group containing
the interface connecting your hosts is active:
hostname(config)# no failover active group group_id
Step 3 Use FTP to send another file between the same two hosts.
Step 4 If the test was not successful, enter the show failover command to check the failover status.
Step 5 When you are finished, you can restore the unit or failover group to active status by enter the following
command:
• For Active/Standby failover, enter the following command on the active unit:
hostname(config)# failover active
• For Active/Active failover, enter the following command on the unit where the failover group
containing the interface connecting your hosts is active:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
13-36 OL-8123-01
Chapter 13 Configuring Failover
Controlling and Monitoring Failover
Forcing Failover
To force the standby unit or failover group to become active, enter one of the following commands:
• For Active/Standby failover:
Enter the following command on the standby unit:
hostname# failover active
Or, enter the following command in the system execution space of the unit where the failover group
is in the active state:
hostname# no failover active group group_id
Entering the following command in the system execution space causes all failover groups to become
active:
hostname# failover active
Disabling Failover
To disable failover, enter the following command:
hostname(config)# no failover
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 13-37
Chapter 13 Configuring Failover
Controlling and Monitoring Failover
Disabling failover on an Active/Standby pair causes the active and standby state of each unit to be
maintained until you restart. For example, the standby unit remains in standby mode so that both units
do not start passing traffic. To make the standby unit active (even with failover disabled), see the
“Forcing Failover” section on page 13-37.
Disabling failover on an Active/Active pair causes the failover groups to remain in the active state on
whichever unit they are currently active on, no matter which unit they are configured to prefer. The no
failover command should be entered in the system execution space.
To restore a failed Active/Active failover group to an unfailed state, enter the following command:
hostname(config)# failover reset group group_id
Restoring a failed unit or group to an unfailed state does not automatically make it active; restored units
or groups remain in the standby state until made active by failover (forced or natural). An exception is a
failover group configured with the preempt command. If previously active, a failover group will become
active if it is configured with the preempt command and if the unit on which it failed is its preferred unit.
Monitoring Failover
When a failover occurs, both FWSMs send out system messages. This section includes the following
topics:
• Failover System Messages, page 13-39
• Debug Messages, page 13-39
• SNMP, page 13-39
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
13-38 OL-8123-01
Chapter 13 Configuring Failover
Controlling and Monitoring Failover
Note During switchover, failover will logically shut down and then bring up interfaces, generating system log
messages 411001 and 411002. This is normal activity.
Debug Messages
To see debug messages, enter the debug fover command. See the Catalyst 6500 Series Switch and Cisco
7600 Series Router Firewall Services Module Command Reference for more information.
Note Because debugging output is assigned high priority in the CPU process, it can drastically affect system
performance. For this reason, use the debug fover commands only to troubleshoot specific problems or
during troubleshooting sessions with Cisco TAC.
SNMP
To receive SNMP syslog traps for failover, configure the SNMP agent to send SNMP traps to SNMP
management stations, define a syslog host, and compile the Cisco syslog MIB into your SNMP
management station. See the snmp-server and logging commands in the Catalyst 6500 Series Switch
and Cisco 7600 Series Router Firewall Services Module Command Reference for more information.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 13-39
Chapter 13 Configuring Failover
Controlling and Monitoring Failover
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
13-40 OL-8123-01
C H A P T E R 14
Configuring AAA Servers and the Local Database
This chapter describes support for AAA (pronounced “triple A”) and how to configure AAA servers and
the local database.
This chapter contains the following sections:
• AAA Overview, page 14-1
• AAA Server and Local Database Support, page 14-3
• Configuring the Local Database, page 14-9
• Identifying AAA Server Groups and Servers, page 14-11
AAA Overview
AAA enables the FWSM to determine who the user is (authentication), what the user can do
(authorization), and what the user did (accounting).
AAA provides an extra level of protection and control for user access than using access lists alone. For
example, you can create an access list allowing all outside users to access Telnet on a server on an inside
interface. If you want only some users to access the server and you might not always know IP addresses
of these users, you can enable AAA to allow only authenticated and/or authorized users to make it
through the FWSM. (The Telnet server enforces authentication, too; the FWSM prevents unauthorized
users from attempting to access the server.)
You can use authentication alone or with authorization and accounting. Authorization always requires a
user to be authenticated first. You can use accounting alone, or with authentication and authorization.
If you use multiple security contexts, AAA settings are discrete per context, not shared between contexts.
This provides you the opportunity to control access, authorize resources and commands, and perform
accounting differently among contexts.
This section includes the following topics:
• About Authentication, page 14-2
• About Authorization, page 14-2
• About Accounting, page 14-2
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 14-1
Chapter 14 Configuring AAA Servers and the Local Database
AAA Overview
About Authentication
Authentication controls access by requiring valid user credentials, which are typically a username and
password. You can configure the FWSM to authenticate the following items:
• All administrative connections to the FWSM including the following sessions:
– Telnet
– SSH
– Serial console
– ASDM (using HTTPS)
– VPN management access
• The enable command
• Network access
About Authorization
Authorization controls access per user after users authenticate. You can configure the FWSM to
authorize the following items:
• Management commands
• Network access
• VPN access for management connections
Authorization controls the services and commands available to each authenticated user. Were you not to
enable authorization, authentication alone would provide the same access to services for all
authenticated users.
Note If command authorization is turned on, then all TFTP server commands are checked by the AAA server
for authorization. This could result in delays if you have many access lists configured for your network.
If you need the control that authorization provides, you can configure a broad authentication rule, and
then have a detailed authorization configuration. For example, you authenticate inside users who attempt
to access any server on the outside network and then limit the outside servers that a particular user can
access using authorization.
The FWSM caches the first 16 authorization requests per user, so if the user accesses the same services
during the current authentication session, the FWSM does not resend the request to the authorization
server.
About Accounting
Accounting tracks traffic that passes through the FWSM, enabling you to have a record of user activity.
If you enable authentication for that traffic, you can account for traffic per user. If you do not
authenticate the traffic, you can account for traffic per IP address. Accounting information includes
when sessions start and stop, username, the number of bytes that pass through the FWSM for the session,
the service used, and the duration of each session.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
14-2 OL-8123-01
Chapter 14 Configuring AAA Servers and the Local Database
AAA Server and Local Database Support
Summary of Support
Table 14-1 summarizes the support for each AAA service by each AAA server type, including the local
database. For more information about support for a specific AAA server type, see the topics following
the table.
Database Type
AAA Service Local RADIUS TACACS+ SDI NT Kerberos LDAP
Authentication of. . .
VPN users1 Yes Yes Yes Yes Yes Yes No
Firewall sessions Yes Yes Yes No No No No
Administrators Yes Yes Yes No No No No
Authorization of. . .
VPN users1 Yes Yes No No No No Yes
2
Firewall sessions No Yes Yes No No No No
Administrators Yes3 No Yes No No No No
Accounting of. . .
VPN connections1 No Yes Yes No No No No
Firewall sessions No Yes Yes No No No No
Administrators No No Yes No No No No
1. VPN is available for management connections only.
2. For firewall sessions, RADIUS authorization is supported with user-specific access lists only, which are
received or specified in a RADIUS authentication response.
3. Local command authorization is supported by privilege level only.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 14-3
Chapter 14 Configuring AAA Servers and the Local Database
AAA Server and Local Database Support
Authentication Methods
The FWSM supports the following authentication methods with RADIUS:
• PAP
• CHAP
• MS-CHAPv1
• MS-CHAPv2 (including password aging), for IPSec users only
Attribute Support
The FWSM supports the following sets of RADIUS attributes:
• Authentication attributes defined in RFC 2138.
• Accounting attributes defined in RFC 2139.
• RADIUS attributes for tunneled protocol support, defined in RFC 2868.
• Cisco IOS VSAs, identified by RADIUS vendor ID 9.
• Cisco VPN-related VSAs, identified by RADIUS vendor ID 3076.
• Microsoft VSAs, defined in RFC 2548.
RADIUS Functions
The FWSM can use RADIUS servers for the functionality described in Table 14-2.
Functions Description
User authentication for CLI access When a user attempts to access the FWSM with Telnet, SSH, HTTP, or a serial
console connection and the traffic matches an authentication statement, the FWSM
challenges the user for a username and password, sends these credentials to the
RADIUS server, and grants or denies user CLI access based on the response from the
server.
User authentication for the enable When a user attempts to access the enable command, the FWSM challenges the user
command for a password, sends to the RADIUS server the username and enable password, and
grants or denies user access to enable mode based on the response from the server.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
14-4 OL-8123-01
Chapter 14 Configuring AAA Servers and the Local Database
AAA Server and Local Database Support
Functions Description
User authentication for network When a user attempts to access networks through the FWSM and the traffic matches
access an authentication statement, the FWSM sends to the RADIUS server the user
credentials (typically a username and password) and grants or denies user network
access based on the response from the server.
User authorization for network access To implement dynamic access lists, you must configure the RADIUS server to
using dynamic access lists per user support it. When the user authenticates, the RADIUS server sends a downloadable
access list to the FWSM. Access to a given service is either permitted or denied by
the access list. The FWSM deletes the access list when the authentication session
expires.
User authorization for network access To implement downloaded access list names, you must configure the RADIUS server
using a downloaded access list name to support it. When the user authenticates, the RADIUS server sends a name of an
per user access list. If an access list with the name specified exists on the FWSM, access to a
given service is either permitted or denied by the access list. You can specify the same
access list for multiple users.
VPN authentication When a user attempts to establish a management connection using VPN and the
applicable tunnel-group record specifies a RADIUS authentication server group, the
FWSM sends to the RADIUS server the username and password, and then grants or
denies user access based on the response from the server.
VPN authorization When user authentication for VPN access has succeeded and the applicable
tunnel-group record specifies a RADIUS authorization server group, the FWSM
sends a request to the RADIUS authorization server and applies to the VPN session
the authorizations received.
VPN accounting When user authentication for VPN access has succeeded and the applicable
tunnel-group record specifies a RADIUS accounting server group, the FWSM sends
the RADIUS server group accounting data about the VPN session.
Accounting for network access per You can configure the FWSM to send accounting information to a RADIUS server
user or IP address about any traffic that passes through the FWSM.
Functions Description
User authentication for CLI access When a user attempts to access the FWSM with Telnet, SSH, HTTP, or a serial
console connection and the traffic matches an authentication statement, the FWSM
challenges the user for a username and password, sends these credentials to the
TACACS+ server, and grants or denies user CLI access based on the response from
the server.
User authentication for the enable When a user attempts to access the enable command, the FWSM challenges the user
command for a password, sends to the TACACS+ server the username and enable password, and
grants or denies user access to enable mode based on the response from the server.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 14-5
Chapter 14 Configuring AAA Servers and the Local Database
AAA Server and Local Database Support
Functions Description
Accounting for CLI access You can configure the FWSM to send accounting information to a TACACS+ server
about administrative sessions.
User authentication for network When a user attempts to access networks through the FWSM and the traffic matches
access an authentication statement, the FWSM sends to the TACACS+ server the user
credentials (typically a username and password) and grants or denies user network
access based on the response from the server.
User authorization for network access When a user matches an authorization statement on the FWSM after authenticating,
the FWSM consults the TACACS+ server for user access privileges.
VPN authentication When a user attempts to establish a management connection using VPN and the
applicable tunnel-group record specifies a TACACS+ authentication server group, the
FWSM sends to the TACACS+ server the username and password, and then grants or
denies user access based on the response from the server.
VPN accounting When user authentication for VPN access has succeeded and the applicable
tunnel-group record specifies a TACACS+ accounting server group, the FWSM sends
the TACACS+ server group accounting data about the VPN session.
User authorization for management On the TACACS+ server, configure the commands that a user can use after
commands. authenticating for CLI access. Each command that a user enters at the CLI is checked
by the TACACS+ server.
Accounting for network access per You can configure the FWSM to send accounting information to the TACACS+ server
user or IP address about any traffic that passes through the FWSM.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
14-6 OL-8123-01
Chapter 14 Configuring AAA Servers and the Local Database
AAA Server and Local Database Support
NT Server Support
The FWSM supports authentication of VPN-based management connections with Microsoft Windows
server operating systems that support NTLM Version 1, which we collectively refer to as NT servers.
When a user attempts to establish VPN access and the applicable tunnel-group record specifies an NT
authentication server group, the FWSM uses NTLM Version 1 to for user authentication with the
Microsoft Windows domain server. The FWSM grants or denies user access based on the response from
the domain server.
Note NT servers have a maximum length of 14 characters for user passwords. Longer passwords are truncated.
This is a limitation of NTLM Version 1.
Note The FWSM does not support changing user passwords during tunnel negotiation. To avoid this situation
happening inadvertently, disable password expiration on the Kerberos/Active Directory server for users
connecting to the FWSM.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 14-7
Chapter 14 Configuring AAA Servers and the Local Database
AAA Server and Local Database Support
User Profiles
User profiles contain, at a minimum, a username. Typically, a password is assigned to each username,
although passwords are optional.
The username attributes command enables you to enter the username mode. In this mode, you can add
other information to a specific user profile. The information you can add includes VPN-related
attributes, such as a VPN session timeout value.
Functions Description
User authentication for CLI access When a user attempts to access the FWSM with Telnet, SSH, HTTP, or a serial
console connection and the traffic matches an authentication statement, the FWSM
challenges the user for a username and password, checks these credentials against the
local database, and grants or denies user CLI access based on the result.
User authentication for the enable or When a user attempts to access the enable command, the FWSM challenges the user
login command for a password, checks the username and password against the local database, and
grants or denies user access to enable mode based on the result.
User authorization for management When a user authenticates with the enable command (or logs in with the login
commands. command), the FWSM places that user in the privilege level defined by the local
database. You can configure each command to belong to privilege level between 0 and
15 on the FWSM.
User authentication for network When a user attempts to access networks through the FWSM and the traffic matches
access an authentication statement, the FWSM challenges the user for a username and
password, checks these credentials against the local database, and grants or denies
user network access based on the result.
VPN authentication When a user attempts to establish a management connection using VPN and the
traffic matches an authentication statement, the FWSM checks the username and
password received against the local user database, and grants or denies VPN access
based on the result.
VPN authorization When user authentication for VPN access has succeeded, the FWSM applies to the
VPN session the attributes from the local database that are associated with the
username and the applicable group policy.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
14-8 OL-8123-01
Chapter 14 Configuring AAA Servers and the Local Database
Configuring the Local Database
Fallback Support
With the exception of fallback for network access authentication, the local database can act as a fallback
method for the functions in Table 14-4. This behavior is designed to help you prevent accidental lockout
from the FWSM.
For users who need fallback support, we recommend that their usernames and passwords in the local
database match their usernames and passwords in the AAA servers. This provides transparent fallback
support. Because the user cannot determine whether a AAA server or the local database is providing the
service, using usernames and passwords on AAA servers that are different than the usernames and
passwords in the local database means that the user cannot be certain which username and password
should be given.
The local database supports the following fallback functions:
• Console and enable password authentication—When you use the aaa authentication console
command, you can add the LOCAL keyword after the AAA server group tag. If the servers in the
group all are unavailable, the FWSM uses the local database to authenticate administrative access.
This can include enable password authentication, too.
• Command authorization—When you use the aaa authorization command command, you can
add the LOCAL keyword after the AAA server group tag. If the TACACS+ servers in the group all
are unavailable, the local database is used to authorize commands based on privilege levels.
• VPN authentication and authorization—VPN authentication and authorization are supported to
enable remote access to the FWSM if AAA servers that normally support these VPN services are
unavailable. The authentication-server-group command, available in tunnel-group general
attributes mode, lets you specify the LOCAL keyword when you are configuring attributes of a
tunnel group. When VPN client of an administrator specifies a tunnel group configured to fallback
to the local database, the VPN tunnel can be established even if the AAA server group is unavailable,
provided that the local database is configured with the necessary attributes.
Caution If you add to the local database users who can gain access to the CLI but who should not be allowed to
enter privileged mode, enable command authorization. (See the “Configuring Local Command
Authorization” section on page 21-14.) Without command authorization, users can access privileged
mode (and all commands) at the CLI using their own password if their privilege level is 2 or greater (2 is
the default). Alternatively, you can use RADIUS or TACACS+ authentication so that the user will not
be able to use the login command, or you can set all local users to level 1 so you can control who can
use the system enable password to access privileged mode.
To define a user account in the local database, perform the following steps:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 14-9
Chapter 14 Configuring AAA Servers and the Local Database
Configuring the Local Database
Step 1 Create the user account. To do so, enter the following command:
hostname/contexta(config)# username username {nopassword | password password} [encrypted]
[privilege level]
When you enter the username attributes command, you enter username mode. The commands
available in this mode are as follows:
• group-lock
• password-storage
• vpn-access-hours
• vpn-filter
• vpn-framed-ip-address
• vpn-group-policy
• vpn-idle-timeout
• vpn-session-timeout
• vpn-simultaneous-logins
• vpn-tunnel-protocol
Use these commands as needed to configure the user profile. For more information about these
commands, see the Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services
Module Command Reference.
b. When you have finished configuring the user profiles, enter exit to return to config mode.
For example, the following command assigns a privilege level of 15 to the admin user account:
hostname/contexta(config)# username admin password passw0rd privilege 15
The following commands creates a user account with a password, enters username mode, and specifies
a few VPN attributes:
hostname/contexta(config)# username rwilliams password gOgeOus
hostname/contexta(config)# username rwilliams attributes
hostname/contexta(config-username)# vpn-tunnel-protocol IPSec
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
14-10 OL-8123-01
Chapter 14 Configuring AAA Servers and the Local Database
Identifying AAA Server Groups and Servers
hostname/contexta(config-username)# vpn-simultaneous-logins 6
hostname/contexta(config-username)# exit
Step 1 For each AAA server group you need to create, perform the following steps:
a. Identify the server group name and the protocol. To do so, enter the following command:
hostname/contexta(config)# aaa-server server_group protocol {kerberos | ldap | nt |
radius | sdi | tacacs+}
For example, to use RADIUS to authenticate network access and TACACS+ to authenticate CLI
access, you need to create at least two server groups, one for RADIUS servers and one for TACACS+
servers.
You can have up to 15 single-mode server groups or 4 multi-mode server groups. Each server group
can have up to 16 servers in single mode or up to 4 servers in multi-mode.
When you enter a aaa-server protocol command, you enter group mode.
b. If you want to specify the maximum number of requests sent to a AAA server in the group before
trying the next server, enter the following command:
hostname/contexta(config-aaa-server-group)# max-failed-attempts number
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 14-11
Chapter 14 Configuring AAA Servers and the Local Database
Identifying AAA Server Groups and Servers
d. If you want to indicate whether accounting messages are sent to a single server (single mode) or sent
to all servers in the group (simultaneous mode), use the accounting-mode command. For more
information about this command, see the Catalyst 6500 Series Switch and Cisco 7600 Series Router
Firewall Services Module Command Reference.
e. When you have finished configuring the AAA server group, enter exit.
Step 2 For each AAA server on your network, perform the following steps:
a. Identify the server, including the AAA server group it belongs to. To do so, enter the following
command:
hostname/contexta(config)# aaa-server server_group (interface_name) host server_ip
When you enter a aaa-server host command, you enter host mode.
b. As needed, use host mode commands to further configure the AAA server.
The commands in host mode do not apply to all AAA server types. Table 14-5 lists the available
commands, the server types they apply to, and whether a new AAA server definition has a default
value for that command. Where a command is applicable to the server type you specified and no
default value is provided (indicated by “—”), use the command to specify the value. For more
information about these commands, see the Catalyst 6500 Series Switch and Cisco 7600 Series
Router Firewall Services Module Command Reference.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
14-12 OL-8123-01
Chapter 14 Configuring AAA Servers and the Local Database
Identifying AAA Server Groups and Servers
Table 14-5 Host Mode Commands, Server Types, and Defaults (continued)
c. When you have finished configuring the AAA server host, enter exit.
For example, to add one TACACS+ group with one primary and one backup server, one RADIUS group
with a single server, and an NT domain server, enter the following commands:
hostname/contexta(config)# aaa-server AuthInbound protocol tacacs+
hostname/contexta(config-aaa-server-group)# max-failed-attempts 2
hostname/contexta(config-aaa-server-group)# reactivation-mode depletion deadtime 20
hostname/contexta(config-aaa-server-group)# exit
hostname/contexta(config)# aaa-server AuthInbound (inside) host 10.1.1.1
hostname/contexta(config-aaa-server-host)# key TACPlusUauthKey
hostname/contexta(config-aaa-server-host)# exit
hostname/contexta(config)# aaa-server AuthInbound (inside) host 10.1.1.2
hostname/contexta(config-aaa-server-host)# key TACPlusUauthKey2
hostname/contexta(config-aaa-server-host)# exit
hostname/contexta(config)# aaa-server AuthOutbound protocol radius
hostname/contexta(config-aaa-server-group)# exit
hostname/contexta(config)# aaa-server AuthOutbound (inside) host 10.1.1.3
hostname/contexta(config-aaa-server-host)# key RadUauthKey
hostname/contexta(config-aaa-server-host)# exit
hostname/contexta(config)# aaa-server NTAuth protocol nt
hostname/contexta(config-aaa-server-group)# exit
hostname/contexta(config)# aaa-server NTAuth (inside) host 10.1.1.4
hostname/contexta(config-aaa-server-host)# nt-auth-domain-controller primary1
hostname/contexta(config-aaa-server-host)# exit
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 14-13
Chapter 14 Configuring AAA Servers and the Local Database
Identifying AAA Server Groups and Servers
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
14-14 OL-8123-01
C H A P T E R 15
Applying AAA for Network Access
This chapter describes how to enable AAA (pronounced “triple A”) for network access.
For information about AAA for management access, see the “AAA for System Administrators” section
on page 21-11.
This chapter contains the following sections:
• AAA Performance, page 15-1
• Configuring Authentication for Network Access, page 15-1
• Configuring Authorization for Network Access, page 15-6
• Configuring Accounting for Network Access, page 15-10
• Using MAC Addresses to Exempt Traffic from Authentication and Authorization, page 15-11
AAA Performance
The FWSM uses “cut-through proxy” to significantly improve performance compared to a traditional
proxy server. The performance of a traditional proxy server suffers because it analyzes every packet at
the application layer of the OSI model. The FWSM cut-through proxy challenges a user initially at the
application layer and then authenticates against standard RADIUS, TACACS+, or the local database.
After the FWSM authenticates the user, it shifts the session flow, and all traffic flows directly and
quickly between the source and destination while maintaining session state information.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 15-1
Chapter 15 Applying AAA for Network Access
Configuring Authentication for Network Access
Authentication Overview
The FWSM lets you configure network access authentication using AAA servers.
A user at a given IP address only needs to authenticate one time for all rules and types, until the
authentication session expires. (See the timeout uauth command in the Catalyst 6500 Series Switch and
Cisco 7600 Series Router Firewall Services Module Command Reference for timeout values.) For
example, if you configure the FWSM to authenticate Telnet and FTP and a user first successfully
authenticates for Telnet, then as long as the authentication session exists, the user does not also have to
authenticate for FTP.
Although you can configure the FWSM to require authentication for network access to any protocol or
service, users can authenticate directly with HTTP(S), Telnet, or FTP only. A user must first authenticate
with one of these services before the FWSM allows other traffic requiring authentication.
If you do not want to allow HTTP(S), Telnet, or FTP through the FWSM but want to authenticate other
types of traffic, you can configure virtual Telnet. With virtual Telnet, the user Telnets to a given IP
address configured on the FWSM and the FWSM provides a Telnet prompt. For more information about
the virtual telnet command, see the Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall
Services Module Command Reference.
For Telnet, HTTP(S), and FTP, the FWSM generates an authentication prompt. If the destination server
also has its own authentication, the user enters another username and password.
Note If you use HTTP authentication without using the aaa authentication secure-http-client command, the
username and password are sent in clear text to the destination web server, and not just to the AAA
server. For example, if you authenticate inside users when they access outside web servers, anyone on
the outside can learn valid usernames and passwords. We recommend that you use the aaa
authentication secure-http-client command whenever you enable HTTP authentication.
For FTP, a user has the option of entering the FWSM username followed by an at sign (@) and then the
FTP username (name1@name2). For the password, the user enters the FWSM password followed by an
at sign (@) and then the FTP password (password1@password2). For example, enter the following text.
name> terryc@jchrichton
password> letmein@he110
This feature is useful when you have cascaded firewalls that require multiple logins. You can separate
several names and passwords by multiple at signs (@).
Step 1 Using the aaa-server command, identify your AAA servers. If you have already identified your AAA
servers, continue to the next step.
For more information about identifying AAA servers, see the “Identifying AAA Server Groups and
Servers” section on page 14-11.
Step 2 Using the access-list command, create an access list that identifies the source addresses and destination
addresses of traffic you want to authenticate. For steps, see the “Adding an Extended Access List”
section on page 10-5.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
15-2 OL-8123-01
Chapter 15 Applying AAA for Network Access
Configuring Authentication for Network Access
The permit ACEs mark matching traffic for authentication, while deny entries exclude matching traffic
from authentication. Be sure to include the destination ports for either HTTP(S), Telnet, or FTP in the
access list because the user must authenticate with one of these services before other services are allowed
through the FWSM.
Step 3 To configure authentication, enter the following command:
hostname/contexta(config)# aaa authentication match acl_name interface_name server_group
where acl_name is the name of the access list you created in Step 2, interface_name is the name of the
interface as specified with the nameif command, and server_group is the AAA server group you created
in Step 1.
Note You can alternatively use the aaa authentication include command (which identifies traffic
within the command). However, you cannot use both methods in the same configuration. See the
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Command
Reference for more information.
Step 4 (Optional) If you are using the local database for network access authentication and you want to limit
the number of consecutive failed login attempts that the FWSM allows any given user account, use the
aaa local authentication attempts max-fail command. For example:
hostname/contexta(config)# aaa local authentication attempts max-fail 7
Tip To clear the lockout status of a specific user or all users, use the clear aaa local user lockout command.
For example, the following commands authenticate all inside HTTP traffic and SMTP traffic:
hostname/contexta(config)# aaa-server AuthOutbound protocol tacacs+
hostname/contexta(config-aaa-server-group)# exit
hostname/contexta(config)# aaa-server AuthOutbound (inside) host 10.1.1.1
hostname/contexta(config-aaa-server-host)# key TACPlusUauthKey
hostname/contexta(config-aaa-server-host)# exit
hostname/contexta(config)# access-list MAIL_AUTH extended permit tcp any any eq smtp
hostname/contexta(config)# access-list MAIL_AUTH extended permit tcp any any eq www
hostname/contexta(config)# aaa authentication match MAIL_AUTH inside AuthOutbound
The following commands authenticate Telnet traffic from the outside interface to a particular server
(209.165.201.5):
hostname/contexta(config)# aaa-server AuthInbound protocol tacacs+
hostname/contexta(config-aaa-server-group)# exit
hostname/contexta(config)# aaa-server AuthInbound (inside) host 10.1.1.1
hostname/contexta(config-aaa-server-host)# key TACPlusUauthKey
hostname/contexta(config-aaa-server-host)# exit
hostname/contexta(config)# access-list TELNET_AUTH extended permit tcp any host
209.165.201.5 eq telnet
hostname/contexta(config)# aaa authentication match TELNET_AUTH outside AuthInbound
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 15-3
Chapter 15 Applying AAA for Network Access
Configuring Authentication for Network Access
Note The Cisco Systems text field shown in this example was customized using the auth-prompt command.
For the detailed syntax of this command refer to the Catalyst 6500 Series Switch and Cisco 7600 Series
Router Firewall Services Module Command Reference. If you do not enter a string using the
auth-prompt command, this field will be blank.
After the user enters a valid username and password, an “Authentication Successful” page appears and
closes automatically. If the user fails to enter a valid username and password, an “Authentication Failed”
page appears.
Secured web-client authentication has the following limitations:
• A maximum of 128 concurrent HTTPS authentication sessions are allowed. If all 128 HTTPS
authentication processes are running, a new connection requiring authentication will not succeed.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
15-4 OL-8123-01
Chapter 15 Applying AAA for Network Access
Configuring Authentication for Network Access
• When uauth timeout 0 is configured (the uauth timeout is set to 0), HTTPS authentication might
not work. If a browser initiates multiple TCP connections to load a web page after HTTPS
authentication, the first connection is let through, but the subsequent connections trigger
authentication. As a result, users are continuously presented with an authentication page, even if the
correct username and password are entered each time. To work around this, set the uauth timeout
to 1 second with the timeout uauth 0:0:1 command. However, this workaround opens a 1-second
window of opportunity that might allow non-authenticated users to go through the firewall if they
are coming from the same source IP address.
• Because HTTPS authentication occurs on the SSL port 443, users must not configure an access-list
command statement to block traffic from the HTTP client to HTTP server on port 443. Furthermore,
if static PAT is configured for web traffic on port 80, it must also be configured for the SSL port. In
the following example, the first line configures static PAT for web traffic and the second line must
be added to support the HTTPS authentication configuration.
static (inside,outside) tcp 10.132.16.200 www 10.130.16.10 www
static (inside,outside) tcp 10.132.16.200 443 10.130.16.10 443
• HTTP users see a pop-up window generated by the browser itself if aaa authentication
secure-http-client is not configured. If aaa authentication secure-http-client is configured, a
form loads in the browser to collect username and password. In either case, if a user enters an
incorrect password, the user is prompted again. When the web server and the authentication server
are on different hosts, use the virtual command to get the correct authentication behavior.
To enable secure authentication of web clients, perform the following steps:
Step 1 Enable HTTP authentication. For more information about enabling authentication, see the “Enabling
Network Access Authentication” section on page 15-2.
Step 2 To enable secure authentication of web clients, enter this command:
aaa authentication secure-http-client
Note Use of the aaa authentication secure-http-client command is not dependent upon enabling HTTP
authentication. If you prefer, you can enter this command before you enable HTTP authentication so that
if you later enable HTTP authentication, usernames and passwords are already protected by secured
web-client authentication.
For example, to disable the username and password challenge for new connections using FTP, enter the
following command:
hostname/contexta(config)# aaa authentication ftp challenge disable
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 15-5
Chapter 15 Applying AAA for Network Access
Configuring Authorization for Network Access
If you disable challenge authentication for a particular protocol, traffic using that protocol is allowed
only if the traffic belongs to a session previously authenticated. This authentication can be accomplished
by traffic using a protocol whose authentication challenge remains enabled. For example, if you disable
challenge authentication for FTP, the FWSM denies new session using FTP if the traffic is included in
an authentication rule. If the user establishes the session with a protocol whose authentication challenge
is enabled (such as HTTP), FTP traffic is allowed.
Tip Using access lists to identify traffic to be authorized can greatly reduced the number of authorization
commands you must enter. This is because each authorization rule you enter can specify only one source
and destination subnet and service, whereas an access list can include many entries.
Authentication and authorization statements are independent; however, any unauthenticated traffic
matched by an authorization statement will be denied. For authorization to succeed, a user must first
authenticate with the FWSM. Because a user at a given IP address only needs to authenticate one time
for all rules and types, if the authentication session has not expired, authorization can occur even if the
traffic is matched by an authentication statement.
After a user authenticates, the FWSM checks the authorization rules for matching traffic. If the traffic
matches the authorization statement, the FWSM sends the username to the TACACS+ server. The
TACACS+ server responds to the FWSM with a permit or a deny for that traffic, based on the user
profile. The FWSM enforces the authorization rule in the response.
See the documentation for your TACACS+ server for information about configuring network access
authorizations for a user.
To configure TACACS+ authorization, perform the following steps:
Step 1 Enable authentication. For more information, see the “Enabling Network Access Authentication” section
on page 15-2. If you have already enabled authentication, continue to the next step.
Step 2 Using the access-list command, create an access list that identifies the source addresses and destination
addresses of traffic you want to authorize. For steps, see the “Adding an Extended Access List” section
on page 10-5.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
15-6 OL-8123-01
Chapter 15 Applying AAA for Network Access
Configuring Authorization for Network Access
The permit ACEs mark matching traffic for authorization, while deny entries exclude matching traffic
from authorization. The access list you use for authorization matching should contain rules that are equal
to or a subset of the rules in the access list used for authentication matching.
Note If you have configured authentication and want to authorize all the traffic being authenticated,
you can use the same access list you created for use with the aaa authentication match
command.
where acl_name is the name of the access list you created in Step 2, interface_name is the name of the
interface as specified with the nameif command or by default, and server_group is the AAA server group
you created when you enabled authentication.
Note Alternatively, you can use the aaa authorization include command (which identifies traffic
within the command) but you cannot use both methods in the same configuration. See the
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Command
Reference for more information.
The following commands authenticate and authorize inside Telnet traffic. Telnet traffic to servers other
than 209.165.201.5 can be authenticated alone, but traffic to 209.165.201.5 requires authorization.
hostname/contexta(config)# access-list TELNET_AUTH extended permit tcp any any eq telnet
hostname/contexta(config)# access-list SERVER_AUTH extended permit tcp any host
209.165.201.5 eq telnet
hostname/contexta(config)# aaa-server AuthOutbound protocol tacacs+
hostname/contexta(config-aaa-server-group)# exit
hostname/contexta(config)# aaa-server AuthOutbound (inside) host 10.1.1.1
hostname/contexta(config-aaa-server-host)# key TACPlusUauthKey
hostname/contexta(config-aaa-server-host)# exit
hostname/contexta(config)# aaa authentication match TELNET_AUTH inside AuthOutbound
hostname/contexta(config)# aaa authorization match SERVER_AUTH inside AuthOutbound
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 15-7
Chapter 15 Applying AAA for Network Access
Configuring Authorization for Network Access
Note If you have used the access-group command to apply access lists to interfaces, be aware of the following
effects of the per-user-override keyword on authorization by user-specific access lists:
• Without the per-user-override keyword, traffic for a user session must be permitted by both the
interface access list and the user-specific access list.
• With the per-user-override keyword, the user-specific access list determines what is permitted.
For more information, see the access-group command entry in the Catalyst 6500 Series Switch and
Cisco 7600 Series Router Firewall Services Module Command Reference.
You can configure downloadable access lists on Cisco Secure ACS as a shared profile component and
then assign the access list to a group or to an individual user.
The access list definition consists of one or more FWSM commands that are similar to the extended
access-list command, except without the following prefix:
access-list acl_name extended
The following example is a downloadable access list definition on Cisco Secure ACS Version 3.3:
+--------------------------------------------+
| Shared profile Components |
| |
| Downloadable IP ACLs Content |
| |
| Name: acs_ten_acl |
| |
| ACL Definitions |
| |
| permit tcp any host 10.0.0.254 |
| permit udp any host 10.0.0.254 |
| permit icmp any host 10.0.0.254 |
| permit tcp any host 10.0.0.253 |
| permit udp any host 10.0.0.253 |
| permit icmp any host 10.0.0.253 |
| permit tcp any host 10.0.0.252 |
| permit udp any host 10.0.0.252 |
| permit icmp any host 10.0.0.252 |
| permit ip any any |
+--------------------------------------------+
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
15-8 OL-8123-01
Chapter 15 Applying AAA for Network Access
Configuring Authorization for Network Access
For more information about creating downloadable access lists and associating them with users, see the
user guide for your version of Cisco Secure ACS.
On the FWSM, the downloaded access list has the following name:
#ACSACL#-ip-acl_name-number
The acl_name argument is the name that is defined on Cisco Secure ACS (acs_ten_acl in the preceding
example), and number is a unique version ID generated by Cisco Secure ACS.
The downloaded access list on the FWSM consists of the following lines:
access-list #ACSACL#-ip-xxx-acs_ten_acl-3b5385f7 permit tcp any host 10.0.0.254
access-list #ACSACL#-ip-xxx-acs_ten_acl-3b5385f7 permit udp any host 10.0.0.254
access-list #ACSACL#-ip-xxx-acs_ten_acl-3b5385f7 permit icmp any host 10.0.0.254
access-list #ACSACL#-ip-xxx-acs_ten_acl-3b5385f7 permit tcp any host 10.0.0.253
access-list #ACSACL#-ip-xxx-acs_ten_acl-3b5385f7 permit udp any host 10.0.0.253
access-list #ACSACL#-ip-xxx-acs_ten_acl-3b5385f7 permit icmp any host 10.0.0.253
access-list #ACSACL#-ip-xxx-acs_ten_acl-3b5385f7 permit tcp any host 10.0.0.252
access-list #ACSACL#-ip-xxx-acs_ten_acl-3b5385f7 permit udp any host 10.0.0.252
access-list #ACSACL#-ip-xxx-acs_ten_acl-3b5385f7 permit icmp any host 10.0.0.252
access-list #ACSACL#-ip-xxx-acs_ten_acl-3b5385f7 permit ip any any
You can configure any RADIUS server that supports Cisco IOS RADIUS VSAs to send user-specific
access lists to the FWSM in a Cisco IOS RADIUS cisco-av-pair VSA (VSA number 1). Cisco IOS
RADIUS VSAs are identified by RADIUS vendor ID 9.
In the cisco-av-pair VSA, configure one or more ACEs that are similar to the access-list extended
command, except that you replace the following command prefix:
access-list acl_name extended
The nnn argument is a number in the range from 0 to 999999999 that identifies the order of the command
statement to be configured on the FWSM. If this parameter is omitted, the sequence value is 0, and the
order of the ACEs inside the cisco-av-pair RADIUS VSA is used.
The following example is an access list definition as it should be configured for a cisco-av-pair VSA on
a RADIUS server:
ip:inacl#1=permit tcp 10.1.0.0 255.0.0.0 10.0.0.0 255.0.0.0
ip:inacl#99=deny tcp any any
ip:inacl#2=permit udp 10.1.0.0 255.0.0.0 10.0.0.0 255.0.0.0
ip:inacl#100=deny udp any any
ip:inacl#3=permit icmp 10.1.0.0 255.0.0.0 10.0.0.0 255.0.0.0
For information about making unique per user the access lists that are sent in the cisco-av-pair attribute,
see the documentation for your RADIUS server.
On the FWSM, the downloaded access list name has the following format:
AAA-user-username
The username argument is the name of the user that is being authenticated.
The downloaded access list on the FWSM consists of the following lines. Notice the order based on the
numbers identified on the RADIUS server.
access-list AAA-user-bcham34-79AD4A08 permit tcp 10.1.0.0 255.0.0.0 10.0.0.0 255.0.0.0
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 15-9
Chapter 15 Applying AAA for Network Access
Configuring Accounting for Network Access
Downloaded access lists have two spaces between the word “access-list” and the name. These spaces
serve to differentiate a downloaded access list from a local access list. In this example, “79AD4A08” is
a hash value generated by the FWSM to help determine when access list definitions have changed on the
RADIUS server.
Note In Cisco Secure ACS, the value for filter-id attributes are specified in boxes in the HTML interface,
omitting filter-id= and entering only acl_name.
For information about making unique per user the filter-id attribute value, see the documentation for your
RADIUS server.
See the “Adding an Extended Access List” section on page 10-5 to create an access list on the FWSM.
Step 1 If you want the FWSM to provide accounting data per user, you must enable authentication. For more
information, see the “Enabling Network Access Authentication” section on page 15-2. If you want the
FWSM to provide accounting data per IP address, enabling authentication is not necessary and you can
continue to the next step.
Step 2 Using the access-list command, create an access list that identifies the source addresses and destination
addresses of traffic you want accounted. For steps, see the “Adding an Extended Access List” section on
page 10-5.
The permit ACEs mark matching traffic for authorization, while deny entries exclude matching traffic
from authorization.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
15-10 OL-8123-01
Chapter 15 Applying AAA for Network Access
Using MAC Addresses to Exempt Traffic from Authentication and Authorization
Note If you have configured authentication and want accounting data for all the traffic being
authenticated, you can use the same access list you created for use with the aaa authentication
match command.
Note Alternatively, you can use the aaa accounting include command (which identifies traffic within
the command) but you cannot use both methods in the same configuration. See the Catalyst 6500
Series Switch and Cisco 7600 Series Router Firewall Services Module Command Reference for
more information.
The following commands authenticate, authorize, and account for inside Telnet traffic. Telnet traffic to
servers other than 209.165.201.5 can be authenticated alone, but traffic to 209.165.201.5 requires
authorization and accounting.
hostname/contexta(config)# aaa-server AuthOutbound protocol tacacs+
hostname/contexta(config-aaa-server-group)# exit
hostname/contexta(config)# aaa-server AuthOutbound (inside) host 10.1.1.1
hostname/contexta(config-aaa-server-host)# key TACPlusUauthKey
hostname/contexta(config-aaa-server-host)# exit
hostname/contexta(config)# access-list TELNET_AUTH extended permit tcp any any eq telnet
hostname/contexta(config)# access-list SERVER_AUTH extended permit tcp any host
209.165.201.5 eq telnet
hostname/contexta(config)# aaa authentication match TELNET_AUTH inside AuthOutbound
hostname/contexta(config)# aaa authorization match SERVER_AUTH inside AuthOutbound
hostname/contexta(config)# aaa accounting match SERVER_AUTH inside AuthOutbound
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 15-11
Chapter 15 Applying AAA for Network Access
Using MAC Addresses to Exempt Traffic from Authentication and Authorization
To use MAC addresses to exempt traffic from authentication and authorization, perform the following
steps:
where id is the alphanumeric string with which you name the MAC list, mac is the MAC address of the
computer whose traffic you want to permit or deny, and macmask is a MAC address mask. For more
information about the mac-list command, see the Catalyst 6500 Series Switch and Cisco 7600 Series
Router Firewall Services Module Command Reference.
Step 2 To exempt traffic for the MAC addresses specified in a particular MAC list, enter the following
command:
hostname/contexta(config)# aaa mac-exempt match id
where id is the string identifying the MAC list containing the MAC addresses whose traffic is to be
exempt from authentication and authorization.
The following commands create two MAC lists, each consisting of a single MAC address. One permits
traffic from its MAC address while the other denies traffic from its MAC address. The final two
commands configure the FWSM to exempt from authentication and authorization any traffic originating
from the MAC addresses in the two lists.
hostname/contexta(config)# mac-list adc permit 00a0.cp5d.0282 ffff.ffff.ffff
hostname/contexta(config)# mac-list ac deny 0061.54ff.b440 ffff.ffff.ffff
hostname/contexta(config)# aaa mac-exempt match adc
hostname/contexta(config)# aaa mac-exempt match ac
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
15-12 OL-8123-01
C H A P T E R 16
Applying Filtering Services
This chapter describes ways to filter web traffic to reduce security risks or prevent inappropriate use.
This chapter contains the following sections:
• Filtering Overview, page 16-1
• Filtering ActiveX Objects, page 16-1
• Filtering Java Applets, page 16-3
• Filtering URLs and FTP Requests with an External Server, page 16-3
• Viewing Filtering Statistics and Configuration, page 16-9
Filtering Overview
This section describes how filtering can provide greater control over traffic passing through the FWSM.
Filtering can be used in two ways:
• Filtering ActiveX objects or Java applets
• Filtering URLs with an external filtering server
Instead of blocking access altogether, you can remove specific undesirable objects from HTTP traffic,
such as ActiveX objects or Java applets, that may pose a security threat in certain situations.
You can also use URL filtering to direct specific traffic to an external filtering server, such an N2H2
Sentian or Websense filtering server. Filtering servers can block traffic to specific sites or types of sites,
as specified by the security policy.
Because URL filtering is CPU-intensive, using an external filtering server ensures that the throughput of
other traffic is not affected. However, depending on the speed of your network and the capacity of your
URL filtering server, the time required for the initial connection may be noticeably slower when filtering
traffic with an external filtering server.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 16-1
Chapter 16 Applying Filtering Services
Filtering ActiveX Objects
Caution This command also blocks any Java applets, image files, or multimedia objects that are embedded in
object tags.
If the <object> or </object> HTML tags split across network packets or if the code in the tags is longer
than the number of bytes in the MTU, FWSM cannot block the tag.
ActiveX blocking does not occur when users access an IP address referenced by the alias command.
To use this command, replace port with the TCP port to which filtering is applied. Typically, this is port
80, but other values are accepted. The http or url literal can be used for port 80. You can specify a range
of ports by using a hyphen between the starting port number and the ending port number.
To create an exception to a previous filter condition, specify the keyword except.
The local IP address and mask identify one or more internal hosts that are the source of the traffic to be
filtered. The foreign address and mask specify the external destination of the traffic to be filtered.
You can set either address to 0.0.0.0 (or in shortened form, 0) to specify all hosts. You can use 0.0.0.0
for either mask (or in shortened form, 0) to specify all hosts.
The following example specifies that ActiveX objects are blocked on all outbound connections:
hostname(config)# filter activex 80 0 0 0 0
This command specifies that the ActiveX object blocking applies to web traffic on port 80 from any local
host and for connections to any foreign host.
To remove the configuration, use the no form of the command, as in the following example:
hostname(config)# no filter activex 80 0 0 0 0
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
16-2 OL-8123-01
Chapter 16 Applying Filtering Services
Filtering Java Applets
Note Use the filter activex command to remove Java applets that are embedded in <object> tags.
To remove Java applets in HTTP traffic passing through the FWSM, enter the following command in
global configuration mode:
hostname(config)# filter java {port[-port] | except} local_ip local_mask foreign_ip
foreign_mask
To use this command, replace port with the TCP port to which filtering is applied. Typically, this is port
80, but other values are accepted. The http or url literal can be used for port 80. You can specify a range
of ports by using a hyphen between the starting port number and the ending port number.
To create an exception to a previous filter condition, specify the keyword except.
The local IP address and mask identify one or more internal hosts that are the source of the traffic to be
filtered. The foreign address and mask specify the external destination of the traffic to be filtered.
You can set either address to 0.0.0.0 (or in shortened form, 0) to specify all hosts. You can use 0.0.0.0
for either mask (or in shortened form, 0) to specify all hosts.
You can set either address to 0.0.0.0 (or in shortened form, 0) to specify all hosts. You can use 0.0.0.0
for either mask (or in shortened form, 0) to specify all hosts.
The following example specifies that Java applets are blocked on all outbound connections:
hostname(config)# filter java 80 0 0 0 0
This command specifies that the Java applet blocking applies to web traffic on port 80 from any local
host and for connections to any foreign host.
The following example blocks downloading of Java applets to a host on a protected network:
hostname(config)# filter java http 192.168.3.3 255.255.255.255 0 0
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 16-3
Chapter 16 Applying Filtering Services
Filtering URLs and FTP Requests with an External Server
Note You must add the filtering server before you can configure filtering for HTTP or HTTPS with the filter
command. You must also remove all filtering command before you remove the filtering servers from the
configuration.
Identify the address of the filtering server using the url-server command:
For Websense:
hostname(config)# url-server (if_name) host local_ip [timeout seconds] [protocol TCP
connections number| UDP version 1|4]
For N2H2:
hostname(config)# url-server (if_name) vendor n2h2 host local_ip[:port number] [timeout
seconds] [protocol TCP connections number | UDP]
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
16-4 OL-8123-01
Chapter 16 Applying Filtering Services
Filtering URLs and FTP Requests with an External Server
Replace if_name with the name of the FWSM interface that is connected to the filtering server. Replace
local_ip with the IP address of the filtering server. Replace seconds with the number of seconds the
FWSM should keep trying to connect to the filtering server.
Note The default port is 4005. This is the default port used by the N2H2 server to communicate to the FWSM
via TCP or UDP. For information on changing the default port, please refer to the Filtering by N2H2
Administrator's Guide.
For example, to identify a single Websense filtering server, enter the following command:
hostname(config)# url-server (perimeter) host 10.0.1.1 protocol TCP version 4
This identifies a Websense filtering server with the IP address 10.0.1.1 on a perimeter interface of the
FWSM. Version 4, which is enabled in this example, is recommended by Websense because it supports
caching.
To identify redundant N2H2 Sentian servers, enter the following commands:
hostname(config)# url-server (perimeter) vendor n2h2 host 10.0.1.1
hostname(config)# url-server (perimeter) vendor n2h2 host 10.0.1.2
This identifies two Sentian filtering servers, both on a perimeter interface of the FWSM.
Step 1 To enable buffering of responses for HTTP or FTP requests that are pending a response from the filtering
server, enter the following command:
hostname(config)# url-block block block-buffer-limit
Replace block-buffer-limit with the maximum number of blocks that will be buffered.
Note Buffering URLs longer than 1159 bytes is only supported for the Websense filtering server.
Step 2 To configure the maximum memory available for buffering pending URLs (and for buffering long URLs
with Websense), enter the following command:
hostname(config)# url-block url-mempool memory-pool-size
Replace memory-pool-size with a value from 2 to 10240 for a maximum memory allocation of 2 KB to
10 MB.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 16-5
Chapter 16 Applying Filtering Services
Filtering URLs and FTP Requests with an External Server
Note Requests for cached IP addresses are not passed to the filtering server and are not logged. As a result,
this activity does not appear in any reports. You can accumulate Websense run logs before using the
url-cache command.
Replace size with a value for the cache size within the range 1 to 128 (KB).
Use the dst keyword to cache entries based on the URL destination address. Select this mode if all users
share the same URL filtering policy on the Websense server.
Use the src_dst keyword to cache entries based on both the source address initiating the URL request as
well as the URL destination address. Select this mode if users do not share the same URL filtering policy
on the Websense server.
Replace port with one or more port numbers if a different port than the default port for HTTP (80) is
used. Replace local_ip and local_mask with the IP address and subnet mask of a user or subnetwork
making requests. Replace foreign_ip and foreign_mask with the IP address and subnet mask of a server
or subnetwork responding to requests.
To create an exception to a previous filter condition, specify the keyword except.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
16-6 OL-8123-01
Chapter 16 Applying Filtering Services
Filtering URLs and FTP Requests with an External Server
The allow option causes the FWSM to forward HTTP traffic without filtering when the primary filtering
server is unavailable. Use the proxy-block command to drop all requests to proxy servers.
Replace long_url_size with a value from 2 to 4 for a maximum URL size of 2 KB to 4 KB. The default
value is 2.
(Websense only) You can also configure the maximum size of the URL buffer memory pool with the
following command:
hostname(config)# url-block url-mempool memory_pool_size
Replace memory_pool_size with a value from 2 to 10240 for a URL buffer memory pool size of 2 KB to
10,240 KB.
The longurl-truncate option causes the FWSM to send only the hostname or IP address portion of the
URL for evaluation to the filtering server when the URL is longer than the maximum length permitted.
Use the longurl-deny option to deny outbound URL traffic if the URL is longer than the maximum
permitted.
Use the cgi-truncate option to truncate CGI URLs to include only the CGI script location and the script
name without any parameters. Many long HTTP requests are CGI requests. If the parameters list is very
long, waiting and sending the complete CGI request including the parameter list can use up memory
resources and affect firewall performance.
For example, the following commands cause all HTTP requests to be forwarded to the filtering server
except for those from 10.0.2.54.
hostname(config)# filter url http 0 0 0 0
hostname(config)# filter url except 10.0.2.54 255.255.255.255 0 0
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 16-7
Chapter 16 Applying Filtering Services
Filtering URLs and FTP Requests with an External Server
Note Filtering HTTPS URLs is only supported for Websense filtering servers.
Because HTTPS content is encrypted, the FWSM sends the URL lookup without directory and filename
information. When the filtering server approves an HTTPS connection request, the FWSM allows the
completion of SSL connection negotiation and allows the reply from the web server to reach the
originating client. If the filtering server denies the request, the FWSM prevents the completion of SSL
connection negotiation. The browser displays an error message such as “The Page or the content cannot
be displayed.”
Note The FWSM does not provide an authentication prompt for HTTPS, so a user must authenticate with the
FWSM using HTTP or FTP before accessing HTTPS servers.
Replace port with the port number if a different port than the default port for HTTPS (443) is used.
Note Because both HTTPS and HTTP traffic have the same GET request, the HTTPS protocol inspector will
also filter HTTP traffic on the port number that you specify.
Replace local_ip and local_mask with the IP address and subnet mask of a user or subnetwork making
requests. Replace foreign_ip and foreign_mask with the IP address and subnet mask of a server or
subnetwork responding to requests.
The allow option causes the FWSM to forward HTTPS traffic without filtering when the primary
filtering server is unavailable.
Note Filtering FTP URLs is only supported for Websense filtering servers.
When the filtering server approves an FTP connection request, the FWSM allows the successful FTP
return code to reach originating client. For example, a successful return code is “250: CWD command
successful.” If the filtering server denies the request, alters the FTP return code to show that the
connection was denied. For example, the FWSM changes code 250 to “550 Requested file is prohibited
by URL filtering policy.”
To enable FTP filtering, enter the following command:
hostname(config)# filter ftp {port[-port] | except} localIP local_mask foreign_IP
foreign_mask [allow] [interact-block]
Replace port with the port number if a different port than the default port for FTP (21) is used. Replace
local_ip and local_mask with the IP address and subnet mask of a user or subnetwork making requests.
Replace foreign_ip and foreign_mask with the IP address and subnet mask of a server or subnetwork
responding to requests.
To create an exception to a previous filter condition, specify the keyword except.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
16-8 OL-8123-01
Chapter 16 Applying Filtering Services
Viewing Filtering Statistics and Configuration
The allow option causes the FWSM to forward FTP traffic without filtering when the primary filtering
server is unavailable.
Use the interact-block option to prevent interactive FTP sessions that do not provide the entire directory
path. An interactive FTP client allows the user to change directories without typing the entire path. For
example, the user might enter cd ./files instead of cd /public/files.
The following is sample output from the show running-config url-server command:
hostname# show running-config url-server
url-server (outside) vendor n2h2 host 128.107.254.202 port 4005 timeout 5 protocol TCP
To show information about the filtering server or to show statistics, enter the following command:
hostname# show url-server statistics
The following is sample output from the show url-server statistics command, which shows filtering
statistics:
hostname# show url-server statistics
URL Server Statistics:
----------------------
Vendor websense
URLs total/allowed/denied 50/35/15
HTTPSs total/allowed/denied 1/1/0
FTPs total/allowed/denied 3/1/2
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 16-9
Chapter 16 Applying Filtering Services
Viewing Filtering Statistics and Configuration
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
16-10 OL-8123-01
Chapter 16 Applying Filtering Services
Viewing Filtering Statistics and Configuration
This shows URL filtering performance statistics, along with other performance statistics. The filtering
statistics are shown in the URL Access and URL Server Req rows.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 16-11
Chapter 16 Applying Filtering Services
Viewing Filtering Statistics and Configuration
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
16-12 OL-8123-01
C H A P T E R 17
Configuring ARP Inspection and Bridging
Parameters
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 17-1
Chapter 17 Configuring ARP Inspection and Bridging Parameters
Configuring ARP Inspection
ARP inspection prevents malicious users from impersonating other hosts or routers (known as ARP
spoofing). ARP spoofing can enable a “man-in-the-middle” attack. For example, a host sends an
ARP request to the gateway router; the gateway router responds with the gateway router MAC address.
The attacker, however, sends another ARP response to the host with the attacker MAC address instead
of the router MAC address. The attacker can now intercept all the host traffic before forwarding it on to
the router.
ARP inspection ensures that an attacker cannot send an ARP response with the attacker MAC address,
so long as the correct MAC address and the associated IP address are in the static ARP table.
Where the interface_name is the source interface for the ARP packets. The ip_address is the source
address, and mac_address is the associated MAC address.
For example, to allow ARP responses from the router at 10.1.1.1 with the MAC address 0009.7cbe.2100
on the outside interface, enter the following command:
hostname(config)# arp outside 10.1.1.1 0009.7cbe.2100
Note The transparent firewall uses dynamic ARP entries in the ARP table for traffic to and from the FWSM,
such as management traffic.
Where the interface_name is the interface on which you want to enable ARP inspection. The flood
keyword forwards non-matching ARP packets out all interfaces, and no-flood drops non-matching
packets.
Note The default setting is to flood non-matching packets. To restrict ARP through the FWSM to only static
entries, then set this command to no-flood.
For example, to enable ARP inspection on the outside interface, and to drop all non-matching ARP
packets, enter the following command:
hostname(config)# arp-inspection outside enable no-flood
To view the current settings for ARP inspection on all interfaces, enter the show arp-inspection
command.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
17-2 OL-8123-01
Chapter 17 Configuring ARP Inspection and Bridging Parameters
Customizing the MAC Address Table
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 17-3
Chapter 17 Configuring ARP Inspection and Bridging Parameters
Customizing the MAC Address Table
The timeout_value (in minutes) is between 5 and 720 (12 hours). 5 minutes is the default.
The no form of this command reenables MAC address learning. The clear configure mac-learn
command reenables MAC address learning on all interfaces.
The following is sample output from the show mac-address-table command that shows the entire table:
hostname# show mac-address-table
interface mac address type Age min) Group
-----------------------------------------------------------------------
outside 0009.7cbe.2100 static - Eng
inside 0010.7cbe.6101 static - Eng
inside 0009.7cbe.5101 dynamic 10 Eng
The following is sample output from the show mac-address-table command that shows the table for the
inside interface:
hostname# show mac-address-table inside
interface mac address type Age min) Group
-----------------------------------------------------------------------
inside 0010.7cbe.6101 static - Eng
inside 0009.7cbe.5101 dynamic 10 Eng
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
17-4 OL-8123-01
C H A P T E R 18
Using Modular Policy Framework
This chapter describes how to use Modular Policy Framework to create security policies for TCP and
general connection settings and inspections.
This chapter includes the following sections:
• Modular Policy Framework Overview, page 18-1
• Identifying Traffic Using a Class Map, page 18-2
• Defining Actions Using a Policy Map, page 18-3
• Applying a Policy to an Interface Using a Service Policy, page 18-6
• Modular Policy Framework Examples, page 18-7
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 18-1
Chapter 18 Using Modular Policy Framework
Identifying Traffic Using a Class Map
Step 3 Define the traffic to include in the class by matching one of the following characteristics. Unless
otherwise specified, you can include only one match command in the class map.
• Any traffic—You match the class to all traffic.
hostname(config-cmap)# match any
• Access list—You can match the class to traffic specified by an extended access list. If the FWSM is
operating in transparent firewall mode, you can use an EtherType access list.
hostname(config-cmap)# match access-list acl_ID
For more information about creating access lists, see the “Adding an Extended Access List” section
on page 10-5 or the “Adding an EtherType Access List” section on page 10-8.
For information about creating access lists with NAT, see the “IP Addresses Used for Access Lists
When You Use NAT” section on page 10-3.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
18-2 OL-8123-01
Chapter 18 Using Modular Policy Framework
Defining Actions Using a Policy Map
• TCP or UDP destination ports—You can match the class to a single port or a contiguous range of
ports.
hostname(config-cmap)# match port {tcp | udp} {eq port_num | range port_num port_num}
Tip For applications that use multiple, non-contiguous ports, use the match access-list command
and define an ACE to match each port.
For a list of ports you can specify, see the “TCP and UDP Ports” section on page D-12.
For example, enter the following command to match TCP packets on port 80 (HTTP):
hostname(config-cmap)# match tcp eq 80
• Default traffic for inspection—You can match the class to the traffic that the FWSM inspects by
default.
hostname(config-cmap)# match default-inspection-traffic
See the “Application Engine Defaults” section on page 20-5 for a list of default ports. The FWSM
includes a default global policy that matches the default inspection traffic, and applies common
inspections to the traffic on all interfaces. Not all applications whose ports are included in the match
default-inspection-traffic command are enabled by default in the policy map.
You can specify a match access-list command along with the match default-inspection-traffic
command to narrow the matched traffic. Because the match default-inspection-traffic command
specifies the ports to match, any ports in the access list are ignored.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 18-3
Chapter 18 Using Modular Policy Framework
Defining Actions Using a Policy Map
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
18-4 OL-8123-01
Chapter 18 Using Modular Policy Framework
Defining Actions Using a Policy Map
Step 3 Specify a previously configured class maps using the following command:
hostname(config-pmap)# class class_map_name
See the “Identifying Traffic Using a Class Map” section on page 18-2 to add a class map.
Step 4 Specify one or more actions for this class map.
• Connection limits. See the “Configuring Connection Limits and Timeouts” section on page 19-3.
• Application inspection. See Chapter 20, “Applying Application Layer Protocol Inspection.”
Note If there is no match default_inspection_traffic command in a class map, then at most one
inspect command is allowed to be configured under the class.
Step 5 Repeat Step 4 for each class map you want to include in this policy map.
The following is an example of a policy-map command for connection policy. It limits the number of
connections allowed to the web server 10.1.1.1:
hostname(config)# access-list http-server permit tcp any host 10.1.1.1
hostname(config)# class-map http-server
hostname(config-cmap)# match access-list http-server
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 18-5
Chapter 18 Using Modular Policy Framework
Applying a Policy to an Interface Using a Service Policy
The following example shows how traffic matches the first available class map, and will not match any
subsequent class maps that specify actions in the same feature domain:
hostname(config)# class-map telnet_traffic
hostname(config-cmap)# match port tcp eq 23
hostname(config)# class-map ftp_traffic
hostname(config-cmap)# match port tcp eq 21
hostname(config)# class-map tcp_traffic
hostname(config-cmap)# match port tcp range 1 65535
hostname(config)# class-map udp_traffic
hostname(config-cmap)# match port udp range 0 65535
hostname(config)# policy-map global_policy
hostname(config-pmap)# class telnet_traffic
hostname(config-pmap-c)# set connection timeout tcp 0:0:0
hostname(config-pmap-c)# set connection conn-max 100
hostname(config-pmap)# class ftp_traffic
hostname(config-pmap-c)# set connection timeout tcp 0:5:0
hostname(config-pmap-c)# set connection conn-max 50
hostname(config-pmap)# class tcp_traffic
hostname(config-pmap-c)# set connection timeout tcp 2:0:0
hostname(config-pmap-c)# set connection conn-max 2000
When a Telnet connection is initiated, it matches class telnet_traffic. Similarly, if an FTP connection is
initiated, it matches class ftp_traffic. For any TCP connection other than Telnet and FTP, it will match
class tcp_traffic. Even though a Telnet or FTP connection can match class tcp_traffic, the FWSM does
not make this match because they previously matched other classes.
• To create a service policy that applies to all interfaces that do not have a specific policy, enter the
following command:
hostname(config)# service-policy policy_map_name global
By default, the configuration includes a global policy that matches all default application inspection
traffic and applies inspection to the traffic globally. You can only apply one global policy, so if you
want to alter the global policy, you need to either edit the default policy or disable it and apply a new
one.
The default service policy includes the following command:
service-policy global_policy global
For example, the following command enables the inbound_policy policy map on the outside interface:
hostname(config)# service-policy inbound_policy interface outside
The following commands disable the default global policy, and enables a new one called
new_global_policy on all other FWSM interfaces:
hostname(config)# no service-policy global_policy global
hostname(config)# service-policy new_global_policy global
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
18-6 OL-8123-01
Chapter 18 Using Modular Policy Framework
Modular Policy Framework Examples
FWSM
port 80
insp.
A port 80 insp.
143413
inside outside
Host A Host B
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 18-7
Chapter 18 Using Modular Policy Framework
Modular Policy Framework Examples
Server A Host A
192.168.1.1 10.1.1.1
port 80
insp. inside outside
132872
Host B Server B
192.168.1.1 10.1.1.2
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
18-8 OL-8123-01
Chapter 18 Using Modular Policy Framework
Modular Policy Framework Examples
FWSM
port 80
insp. inside outside
143415
Host Server
Real IP: 10.1.1.1 209.165.200.250
Mapped IP: 209.165.200.225
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 18-9
Chapter 18 Using Modular Policy Framework
Modular Policy Framework Examples
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
18-10 OL-8123-01
C H A P T E R 19
Preventing Network Attacks
This chapter describes how to prevent network attacks and includes the following sections:
• Configuring Connection Limits and Timeouts, page 19-3
• Preventing IP Spoofing, page 19-5
• Configuring the Fragment Size, page 19-5
• Blocking Unwanted Connections, page 19-6
Note You can also configure maximum connections and TCP sequence randomization in the NAT
configuration. If you configure these settings for the same traffic using both methods, then the FWSM
uses the lower limit. For TCP sequence randomization, if it is disabled using either method, then the
FWSM disables TCP sequence randomization.
NAT also lets you configure embryonic connection limits, which triggers TCP Intercept to prevent a DoS
attack. To configure connection limits, TCP randomization, and embryonic limits, see “Configuring
Connection Limits for Transparent Firewall Mode and Non-NAT Configurations” section on page 7-5
and Chapter 12, “Configuring NAT.”
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 19-1
Chapter 19 Preventing Network Attacks
Configuring Connection Limits and Timeouts
Step 1 To identify the traffic, add a class map using the class-map command. See the “Identifying Traffic Using
a Class Map” section on page 18-2 for more information.
For example, you can match all traffic using the following commands:
hostname(config)# class-map CONNS
hostname(config-cmap)# match any
Step 2 To add or edit a policy map that sets the actions to take with the class map traffic, enter the following
commands:
hostname(config)# policy-map name
hostname(config-pmap)# class class_map_name
hostname(config-pmap-c)#
Step 3 To set maximum connection limits or whether TCP sequence randomization is enabled, enter the
following command:
hostname(config-pmap-c)# set connection {[conn-max n] [random-sequence-number {enable |
disable}]}
where the conn-max n argument sets the maximum number of simultaneous TCP and/or UDP
connections that are allowed, between 0 and 65535. The default is 0, which allows unlimited
connections.
The random-sequence-number {enable | disable} keyword enables or disables TCP sequence number
randomization.
You can enter this command all on one line (in any order), or you can enter each attribute as a separate
command. The FWSM combines the command into one line in the running configuration.
Step 4 To set connection timeouts, enter the following command:
hostname(config-pmap-c)# set connection timeout {[embryonic hh:mm:ss] [half-closed
hh:mm:ss] [tcp hh:mm:ss [reset]]}
where the embryonic hh:mm:ss keyword sets the timeout period until a TCP embryonic (half-open)
connection is closed, between 0:0:1 and 0:4:15. The default is 0:0:20. You can also set this value to 0,
which means the connection never times out.
The half-closed hh:mm:ss keyword sets the idle timeout between 0:0:1 and 0:4:15. The default is 0:0:20.
You can also set this value to 0, which means the connection never times out. The FWSM does not send
a reset when taking down half-closed connections.
The tcp hh:mm:ss keyword sets the idle timeout between 0:5:0 and 1092:15:0. The default is 0:60:0 .
You can also set this value to 0, which means the connection never times out. The reset keyword sends
a reset to TCP endpoints when the connection times out. The FWSM sends the reset packet only in
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
19-2 OL-8123-01
Chapter 19 Preventing Network Attacks
Configuring Connection Limits and Timeouts
response to a host sending another packet for the timed-out flow (on the same source and destination
port). The host then removes the connection from its connection table after receiving the reset packet.
The host application can then attempt to establish a new connection using a SYN packet.
You can enter this command all on one line (in any order), or you can enter each attribute as a separate
command. The command is combined onto one line in the running configuration.
Step 5 To activate the policy map on one or more interfaces, enter the following command:
hostname(config)# service-policy policymap_name {global | interface interface_name}
where policy_map_name is the policy map you configured in Step 2. To apply the policy map to traffic
on all the interfaces, use the global keyword. To apply the policy map to traffic on a specific interface,
use the interface interface_name option, where interface_name is the name assigned to the interface
with the nameif command.
Only one global policy is allowed. You can override the global policy on an interface by applying a
service policy to that interface. You can only apply one policy map to each interface.
The following example sets the maximum TCP and UDP connections to 5000, and sets the maximum
embryonic timeout to 40 seconds, the half-closed timeout to 20 minutes, and the TCP timeout to 2 hours
for traffic going to 10.1.1.1:
hostname(config)# access-list CONNS permit ip any host 10.1.1.1
You can enter set connection commands with multiple parameters or you can enter each parameter as a
separate command. The FWSM combines the commands into one line in the running configuration. For
example, if you entered the following two commands in class configuration mode:
hostname(config-pmap-c)# set connection timeout embryonic 0:0:40
hostname(config-pmap-c)# set connection timeout half-closed 0:20:0
the output of the show running-config policy-map command would display the result of the two
commands in a single, combined command:
set connection timeout embryonic 0:0:40 half-closed 0:20:0
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 19-3
Chapter 19 Preventing Network Attacks
Configuring Connection Limits and Timeouts
Each TCP connection has two ISNs: one generated by the client and one generated by the server. The
security appliance randomizes the ISN of the TCP SYN passing in the outbound direction. If the
connection is between two interfaces with the same security level, then the ISN will be randomized in
the SYN in both directions.
Randomizing the ISN of the protected host prevents an attacker from predecting the next ISN for a new
connection and potentially hijacking the new session.
Note You can also configure maximum connections and TCP sequence randomization in the NAT
configuration. If you configure these settings for the same traffic using both methods, then the FWSM
uses the lower limit. For TCP sequence randomization, if it is disabled using either method, then the
FWSM disables TCP sequence randomization.
NAT also lets you configure embryonic connection limits, which triggers TCP Intercept to prevent a DoS
attack. To configure connection limits, TCP randomization, and embryonic limits, see the “Configuring
Connection Limits for Transparent Firewall Mode and Non-NAT Configurations” section on page 7-5
and Chapter 12, “Configuring NAT.”
Step 1 To identify the traffic, add a class map using the class-map command. See the “Identifying Traffic Using
a Class Map” section on page 18-2 for more information.
Step 2 To add or edit a policy map that sets the actions to take with the class map traffic, enter the following
command:
hostname(config)# policy-map name
Step 3 To identify the class map from Step 1 to which you want to assign an action, enter the following
command:
hostname(config-pmap)# class class_map_name
Step 4 To set the maximum connections (both TCP and UDP), or to enable or disable TCP sequence
randomization, enter the following command:
hostname(config-pmap-c)# set connection {[conn-max number] [random-sequence-number
{enable | disable}]}
Where number is an integer between 0 and 65535. The default is 0, which means no limit on connections.
You can enter this command all on one line (in any order), or you can enter each attribute as a separate
command. The command is combined onto one line in the running configuration.
Step 5 To set the timeout for connections, embryonic connections (half-opened), and half-closed connections,
enter the following command:
hostname(config-pmap-c)# set connection timeout {[embryonic seconds] [half-closed minutes]
[tcp minutes]}
Where embryonic seconds is a time between 1 and 255, in seconds. The default is 20 seconds. You can
also set the value to 0, which means the connection never times out. Although you cannot set the
maximum embryonic connections using the set connection command, you can set the timeout.
Where the half-closed minutes is between 1 and 255, in minutes. The default is 10 minutes. You can also
set the value to 0, which means the connection never times out.
The tcp minutes is between 5 and 65535, in minutes. The default is 60 minutes. You can also set the value
to 0, which means the connection never times out.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
19-4 OL-8123-01
Chapter 19 Preventing Network Attacks
Preventing IP Spoofing
You can enter this command all on one line (in any order), or you can enter each attribute as a separate
command. The command is combined onto one line in the running configuration.
Step 6 To activate the policy map on one or more interfaces, enter the following command:
hostname(config)# service-policy policymap_name {global | interface interface_name}
Where global applies the policy map to all interfaces, and interface applies the policy to one interface.
Only one global policy is allowed. You can override the global policy on an interface by applying a
service policy to that interface. You can only apply one policy map to each interface.
Preventing IP Spoofing
This section lets you enable Unicast Reverse Path Forwarding on an interface. Unicast RPF guards
against IP spoofing (a packet uses an incorrect source IP address to obscure its true source) by ensuring
that all packets have a source IP address that matches the correct source interface according to the
routing table.
Normally, the FWSM only looks at the destination address when determining where to forward the
packet. Unicast RPF instructs the FWSM to also look at the source address; this is why it is called
Reverse Path Forwarding. For any traffic that you want to allow through the FWSM, the FWSM routing
table must include a route back to the source address. See RFC 2267 for more information.
For outside traffic, for example, the FWSM can use the default route to satisfy the Unicast RPF
protection. If traffic enters from an outside interface, and the source address is not known to the routing
table, the FWSM uses the default route to correctly identify the outside interface as the source interface.
If traffic enters the outside interface from an address that is known to the routing table, but is associated
with the inside interface, then the FWSM drops the packet. Similarly, if traffic enters the inside interface
from an unknown source address, the FWSM drops the packet because the matching route (the default
route) indicates the outside interface.
Unicast RPF is implemented as follows:
• ICMP packets have no session, so each packet is checked.
• UDP and TCP have sessions, so the initial packet requires a reverse route lookup. Subsequent
packets arriving during the session are checked using an existing state maintained as part of the
session. Non-initial packets are checked to ensure they arrived on the same interface used by the
initial packet.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 19-5
Chapter 19 Preventing Network Attacks
Blocking Unwanted Connections
Enter an interface name if you want to prevent fragmentation on a specific interface. By default, this
command applies to all interfaces.
Note If you have an IPS that monitors traffic, then the IPS can shun connections automatically.
Step 1 If necessary, view information about the connection by entering the following command:
hostname# show conn
The FWSM shows information about each connection, such as the following:
TCP out 64.101.68.161:4300 in 10.86.194.60:23 idle 0:00:00 bytes 1297 flags UIO
Step 2 To shun connections from the source IP address, enter the following command:
hostname(config)# shun src_ip [dst_ip src_port dest_port [protocol]] [vlan vlan_id]
This command drops the existing connection and blocks future connections. By default, the protocol is
0 for IP.
For multiple context mode, you can enter this command in the admin context, and by specifying a
VLAN ID that is assigned to an interface in other contexts, you can shun the connection in other
contexts.
Step 3 To remove the shun, enter the following command:
hostname(config)# no shun src_ip [vlan vlan_id]
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
19-6 OL-8123-01
C H A P T E R 20
Applying Application Layer Protocol Inspection
This chapter describes how to use and configure application inspection. This chapter includes the
following sections:
• Application Inspection Engine Overview, page 20-2
– How Inspection Engines Work, page 20-2
– NAT, PAT, and Application Inspection, page 20-4
– Supported Protocols, page 20-4
– Application Engine Defaults, page 20-5
• About Application Inspection Configuration, page 20-6
• Default Application Inspection, page 20-7
• CTIQBE Inspection, page 20-8
• DNS Inspection, page 20-13
• FTP Inspection, page 20-22
• GTP Inspection, page 20-27
• H.323 Inspection, page 20-31
• HTTP Inspection, page 20-42
• ICMP Inspection, page 20-45
• ILS Inspection, page 20-45
• MGCP Inspection, page 20-45
• NetBIOS Inspection, page 20-54
• PPTP Inspection, page 20-54
• RSH Inspection, page 20-54
• RTSP Inspection, page 20-54
• SIP Inspection, page 20-57
• Skinny (SCCP) Inspection, page 20-65
• SMTP and Extended SMTP Inspection, page 20-70
• SNMP Inspection, page 20-73
• SQL*Net Inspection, page 20-75
• Sun RPC Inspection, page 20-75
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-1
Chapter 20 Applying Application Layer Protocol Inspection
Application Inspection Engine Overview
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-2 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
Application Inspection Engine Overview
ACL
FWSM
1 6
Client 7 5 Server
3 4
132875
XLATE Inspection
CONN
In Figure 20-1, operations are numbered in the order they occur, and are described as follows:
1. A TCP SYN packet arrives at the FWSM to establish a new connection.
2. The FWSM checks the access list database to determine if the connection is permitted.
3. The FWSM creates a new entry in the connection database (XLATE and CONN tables).
4. The FWSM checks the Inspections database to determine if the connection requires
application-level inspection.
5. After the application inspection engine completes any required operations for the packet, the FWSM
forwards the packet to the destination system.
6. The destination system responds to the initial request.
7. The FWSM receives the reply packet, looks up the connection in the connection database, and
forwards the packet because it belongs to an established session.
The default configuration of the FWSM includes a set of application inspection entries that associate
supported protocols with specific TCP or UDP port numbers and that identify any special handling
required.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-3
Chapter 20 Applying Application Layer Protocol Inspection
Application Inspection Engine Overview
Supported Protocols
The FWSM supports the following inspection engines:
• CTIQBE—See the “CTIQBE Inspection” section on page 20-8
• DNS—See the “DNS Inspection” section on page 20-13
• FTP—See the “FTP Inspection” section on page 20-22
• GTP—See the “GTP Inspection” section on page 20-27
• H.323—See the “H.323 Inspection” section on page 20-31
• HTTP—See the “HTTP Inspection” section on page 20-42
• ICMP—See the inspect icmp and inspect icmp error command pages in the Catalyst 6500 Series
Switch and Cisco 7600 Series Router Firewall Services Module Command Reference.
• ILS—See the inspect ils command page in the Catalyst 6500 Series Switch and Cisco 7600 Series
Router Firewall Services Module Command Reference.
• MGCP—See the “MGCP Inspection” section on page 20-45
• NetBIOS—See the inspect netbios command page in the Catalyst 6500 Series Switch and Cisco
7600 Series Router Firewall Services Module Command Reference.
• PPTP—See the inspect pptp command page in the Catalyst 6500 Series Switch and Cisco 7600
Series Router Firewall Services Module Command Reference.
• RSH—See the inspect rsh command page in the Catalyst 6500 Series Switch and Cisco 7600 Series
Router Firewall Services Module Command Reference.
• RTSP—See the “RTSP Inspection” section on page 20-54
• SIP—See the “SIP Inspection” section on page 20-57
• Skinny—See the “Skinny (SCCP) Inspection” section on page 20-65
• SMTP/ESMTP—See the “SMTP and Extended SMTP Inspection” section on page 20-70
• SNMP—See the “SNMP Inspection” section on page 20-73
• SQL*Net—See the inspect sqlnet command page in the Catalyst 6500 Series Switch and Cisco
7600 Series Router Firewall Services Module Command Reference.
• SunRPC—See the “Sun RPC Inspection” section on page 20-75
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-4 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
Application Inspection Engine Overview
• TFTP—See the inspect tftp command page in the Catalyst 6500 Series Switch and Cisco 7600
Series Router Firewall Services Module Command Reference.
• XDMCP—See the inspect xdmcp command page in the Catalyst 6500 Series Switch and Cisco
7600 Series Router Firewall Services Module Command Reference.
Enabled
by Configure
Application Default? PAT? NAT (1-1)? Port? Default Port Standards Comments
CTIQBE No Yes Yes Yes TCP/2748 — —
1
DNS Yes Yes Yes No UDP/53 RFC 1123 Only forward NAT. No PTR
records are changed.
Default maximum packet
length is 512 bytes.
FTP Yes Yes Yes Yes TCP/21 RFC 959 Default FTP inspection does
not enforce compliance with
RFC standards. To do so,
configure the inspect ftp
command with the strict
keyword.
GTP No Yes Yes Yes UDP/3386 — Requires a special license.
UDP/2123
H.323 Yes Yes Yes Yes TCP/1720 ITU-T H.323, By default, both RAS and
UDP/1718 H.245, H225.0, H.225 inspection are enabled.
UDP (RAS) Q.931, Q.932
1718-1719
HTTP No Yes Yes Yes TCP/80 RFC 2616 Beware of MTU limitations
when stripping ActiveX and
Java.2
ICMP No Yes Yes No — — —
ICMP ERROR No Yes Yes No — — —
ILS (LDAP) No Yes Yes Yes — — —
MGCP No Yes Yes Yes 2427, 2727 RFC2705bis-05 —
NetBIOS Yes Yes Yes No UDP/138 — —
Datagram
Service / UDP
NetBIOS Yes No No No UDP/137 — No WINS support.
Name Service /
UDP
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-5
Chapter 20 Applying Application Layer Protocol Inspection
About Application Inspection Configuration
Enabled
by Configure
Application Default? PAT? NAT (1-1)? Port? Default Port Standards Comments
NetBIOS over Yes No No No — — —
IP3
PPTP No Yes Yes Yes 1723 RFC2637 —
RSH Yes Yes Yes Yes TCP/514 Berkeley UNIX —
RTSP No No No Yes TCP/554 RFC 2326, RFC No handling for HTTP
2327, RFC 1889 cloaking.
SIP Yes Yes Yes Yes TCP/5060 RFC 2543 —
UDP/5060
SKINNY Yes Yes Yes Yes TCP/2000 — Does not handle TFTP
(SCCP) uploaded Cisco IP Phone
configurations under certain
circumstances.
SNMP Yes No No Yes UDP/161, RFC 1155, 1157, v.2 RFC 1902-1908; v.3 RFC
162 1212, 1213, 1215 2570-2580.
SMTP/ESMTP Yes Yes Yes Yes TCP/25 RFC 821, 1123 By default, SMTP inspection
is enabled rather than ESMTP
inspection.
SQL*Net Yes Yes Yes Yes TCP/1521 — V.1 and v.2.
(v.1)
Sun RPC Yes No Yes No UDP/111 — Payload not NATed.
TCP/111
TFTP Yes Yes Yes Yes TCP/69 RFC 1530 —
UDP/69
XDCMP Yes No No No UDP/177 — —
1. No NAT support is available for name resolution through WINS.
2. If the MTU is too small to allow the Java or ActiveX tag to be included in one packet, stripping may not occur.
3. NetBIOS is supported by performing NAT of the packets for NetBIOS Name Service UDP port 137 and NetBIOS Datagram Service UDP port 138.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-6 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
Default Application Inspection
Chapter 18, “Using Modular Policy Framework,” provides more overview information about these three
elements of configuring MPF and thus of configuring application inspection. For the inspection engines
discussed in this chapter, we provide a detailed configuration procedure and a simple example
configuration. For inspection engines not discussed in this chapter, see the applicable inspect command
entry in the Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module
Command Reference.
Application inspection maps are an exception, though. They are unique to application inspection
configuration. Application inspection maps let you create a named set of inspection parameters for a
particular inspection engine. When you configure a policy map for an application inspection engine that
supports an inspection map, you can specify the inspection map by name.
The inspection engines for the following protocols support application maps:
• FTP—For more information, see the “The request-command deny Command” section on
page 20-23.
• GTP—For more information, see the “GTP Maps and Commands” section on page 20-28.
• HTTP—For more information, see the “Enhanced HTTP Inspection Commands” section on
page 20-43.
• MGCP—For more information, see the “Configuring MGCP Call Agents and Gateways” section on
page 20-48.
• SIP—For more information, see the “IP Address Privacy” section on page 20-59.
• SNMP—For more information, see the “SNMP Inspection Overview” section on page 20-73.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-7
Chapter 20 Applying Application Layer Protocol Inspection
CTIQBE Inspection
CTIQBE Inspection
This section describes how to enable CTIQBE application inspection and change the default port
configuration. This section includes the following topics:
• CTIQBE Inspection Overview, page 20-8
• Limitations and Restrictions, page 20-8
• Enabling and Configuring CTIQBE Inspection, page 20-9
• Verifying and Monitoring CTIQBE Inspection, page 20-10
• CTIQBE Sample Configurations, page 20-11
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-8 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
CTIQBE Inspection
Step 1 Create a class map or modify an existing class map to identify CTIQBE traffic. Use the class-map
command to do so, as follows:
hostname(config)# class-map class_map_name
hostname(config-cmap)#
where class_map_name is the name of the traffic class. When you enter the class-map command, the
CLI enters class map configuration mode.
Step 2 Use the match port command to identify CTIQBE traffic, as follows:
hostname(config-cmap)# match port tcp eq 2748
Step 3 Create a policy map or modify an existing policy map that you want to use to apply the CTIQBE
inspection engine to FTP traffic. To do so, use the policy-map command, as follows:
hostname(config-cmap)# policy-map policy_map_name
hostname(config-pmap)#
where policy_map_name is the name of the policy map. The CLI enters the policy map configuration
mode and the prompt changes accordingly.
Step 4 Specify the class map, created in Step 1, that identifies the CTIQBE traffic. Use the class command to
do so, as follows:
hostname(config-pmap)# class class_map_name
hostname(config-pmap-c)#
where class_map_name is the name of the class map you created in Step 1. The CLI enters the policy
map class configuration mode and the prompt changes accordingly.
Step 5 Enable CTIQBE application inspection.
hostname(config-pmap-c)# inspect ctiqbe
Step 6 Use the service-policy command to apply the policy map globally or to a specific interface, as follows:
hostname(config-pmap-c)# service-policy policy_map_name [global | interface interface_ID]
hostname(config)#
where policy_map_name is the policy map you configured in Step 3. If you want to apply the policy map
to traffic on all the interfaces, use the global option. If you want to apply the policy map to traffic on a
specific interface, use the interface interface_ID option, where interface_ID is the name assigned to the
interface with the nameif command.
The FWSM begins inspecting CTIQBE traffic, as specified.
The following examples creates a class map to match CTIQBE traffic on the default port (2748) and
enables CTIQBE inspection in the policy using the class matching CTIQBE traffic. The service policy
is then applied to the outside interface.
hostname(config)# class-map ctiqbe_port
hostname(config-cmap)# match port tcp eq 2748
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-9
Chapter 20 Applying Application Layer Protocol Inspection
CTIQBE Inspection
Total: 1
LOCAL FOREIGN STATE HEARTBEAT
---------------------------------------------------------------
1 10.0.0.99/1117 172.29.1.77/2748 1 120
----------------------------------------------
RTP/RTCP: PAT xlates: mapped to 172.29.1.99(1028 - 1029)
----------------------------------------------
MEDIA: Device ID 27 Call ID 0
Foreign 172.29.1.99 (1028 - 1029)
Local 172.29.1.88 (26822 - 26823)
----------------------------------------------
The CTI device has already registered with the CallManager. The device internal address and RTP
listening port is PATed to 172.29.1.99 UDP port 1028. Its RTCP listening port is PATed to UDP 1029.
The line beginning with RTP/RTCP: PAT xlates: appears only if an internal CTI device has registered
with an external CallManager and the CTI device address and ports are PATed to that external interface.
This line does not appear if the CallManager is located on an internal interface, or if the internal CTI
device address and ports are NATed to the same external interface that is used by the CallManager.
The output indicates a call has been established between this CTI device and another phone at
172.29.1.88. The RTP and RTCP listening ports of the other phone are UDP 26822 and 26823. The other
phone locates on the same interface as the CallManager because the FWSM does not maintain a CTIQBE
session record associated with the second phone and CallManager. The active call leg on the CTI device
side can be identified with Device ID 27 and Call ID 0.
The following is sample output from the show xlate debug command for these CTIBQE connections:
hostname# show xlate debug
3 in use, 3 most used
Flags: D - DNS, d - dump, I - identity, i - inside, n - no random,
r - portmap, s - static
TCP PAT from inside:10.0.0.99/1117 to outside:172.29.1.99/1025 flags ri idle 0:00:22
timeout 0:00:30
UDP PAT from inside:10.0.0.99/16908 to outside:172.29.1.99/1028 flags ri idle 0:00:00
timeout 0:04:10
UDP PAT from inside:10.0.0.99/16909 to outside:172.29.1.99/1029 flags ri idle 0:00:23
timeout 0:04:10
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-10 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
CTIQBE Inspection
The show conn state ctiqbe command displays the status of CTIQBE connections. In the output, the
media connections allocated by the CTIQBE inspection engine are denoted by a ‘C’ flag. The following
is sample output from the show conn state ctiqbe command:
hostname# show conn state ctiqbe
1 in use, 10 most used
hostname# show conn state ctiqbe detail
1 in use, 10 most used
Flags: A - awaiting inside ACK to SYN, a - awaiting outside ACK to SYN,
B - initial SYN from outside, C - CTIQBE media, D - DNS, d - dump,
E - outside back connection, F - outside FIN, f - inside FIN,
G - group, g - MGCP, H - H.323, h - H.225.0, I - inbound data,
i - incomplete, J - GTP, j - GTP data, k - Skinny media,
M - SMTP data, m - SIP media, O - outbound data, P - inside back connection,
q - SQL*Net data, R - outside acknowledged FIN,
R - UDP RPC, r - inside acknowledged FIN, S - awaiting inside SYN,
s - awaiting outside SYN, T - SIP, t - SIP transient, U - up
Inside Outside
FireWall
Service module
(FWSM)
vlan50 vlan100
PC PC
100.0.0.21/8 100.0.0.23/8
M
191376
100.0.0.101/8
CallManager 3.3
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-11
Chapter 20 Applying Application Layer Protocol Inspection
CTIQBE Inspection
Note TCP port 1503 must be allowed to pass through the security appliance for virtual conference room
collaboration to work with Softphone through the security appliance.
The following is a sample configuration for a single transparent firewall for Softphone with NetMeeting
enabled. Softphone is configured with the collaboration setting of NetMeeting.
Figure 20-3 Single Transparent Firewall for Softphone (Virtual Conference) with NetMeeting
FireWall
Service module
(FWSM)
vlan50 vlan100
PC (Inside) PC (Outside)
100.0.0.23/8 100.0.0.21/8
191375
100.0.0.101/8
CallManager 3.3
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-12 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
DNS Inspection
Note To allow successful collaboration and application sharing, TCP ports 1503 and 1720 must be allowed to
pass through.
The following is sample output for this configuration using the show conn detail command:
hostname# show conn detail
25 in use, 33 most used
Flags: A - awaiting inside ACK to SYN,a - awaiting outside ACK to SYN
B - initial SYN from outsideC - CTIQBE media, D - DNS, d - dump,
E - outside back connection, F - outside FIN, f - inside FIN,
G - group, g - MGCP, H - H.323, h - H.225.0, I - inbound data,
i - incomplete, J - GTP, j - GTP data, k - Skinny media,
M - SMTP data, m - SIP media, O - outbound data, P - inside back connection,
q - SQL*Net data, R - outside acknowledged FIN,
R - UDP SUNRPC, r - inside acknowledged FIN, S - awaiting inside SYN,
s - awaiting outside SYN, T - SIP, t - SIP transient, U - up
Network Processor 1 connection
TCP out 100.0.0.101:2748 in 100.0.0.23:3598 idle 0:00:09 Bytes 103065 FLAGS - UOI
UDP out 100.0.0.21:30504 in 100.0.0.23:3650 idle 0:00:00 Bytes 4810406
FLAGS - C
UDP out 100.0.0.21:1436 in 100.0.0.23:19972 idle 0:00:00 Bytes 4813240
FLAGS - C
TCP out 100.0.0.21:1437 in 100.0.0.23:1720 idle 0:07:04 Bytes 1027 FLAGS - UBOIh
UDP out 100.0.0.21:49608 in 100.0.0.23:49608 idle 0:00:10 Bytes 241836
FLAGS - H
UDP out 100.0.0.21:49609 in 100.0.0.23:49609 idle 0:00:01 Bytes 17480
FLAGS - H
TCP out 100.0.0.21:1440 in 100.0.0.23:1503 idle 0:06:58 Bytes 4488 FLAGS - UBOI
TCP out 100.0.0.21:1441 in 100.0.0.23:1503 idle 0:04:50 Bytes 17888 FLAGS - UBOI
TCP out 100.0.0.21:1442 in 100.0.0.23:1503 idle 0:04:50 Bytes 471135 FLAGS - UBOI
Network Processor 2 connections
Multicast sessions:
Network Processor 1 connections
Network Processor 2 connections
IPv6 connections:
DNS Inspection
This section describes how to manage DNS application inspection. This section includes the following
topics:
• How DNS Application Inspection Works, page 20-14
• How DNS Rewrite Works, page 20-14
• Configuring DNS Rewrite, page 20-15
• Configuring DNS Inspection, page 20-20
• Verifying and Monitoring DNS Inspection, page 20-21
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-13
Chapter 20 Applying Application Layer Protocol Inspection
DNS Inspection
Note DNS Rewrite is not applicable for PAT because multiple PAT rules are applicable for each
A-record and the PAT rule to use is ambiguous.
• Enforces the maximum DNS message length (the default is 512 bytes and the maximum length is
65535 bytes). The FWSM performs reassembly as needed to verify that the packet length is less than
the maximum length configured. The FWSM drops the packet if it exceeds the maximum length.
Note If you enter the inspect dns command without the maximum-length option, DNS packet size
is not checked
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-14 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
DNS Inspection
• Translating a public address (the routable or “mapped” address) in a DNS reply to a private address
(the “real” address) when the DNS client is on a private interface.
• Translating a private address to a public address when the DNS client is on the public interface.
In Figure 20-4, the DNS server resides on the external (ISP) network. On the FWSM, a static command
maps the real address of the web server (192.168.100.1) to the ISP-assigned address (209.165.200.5).
When a web client on the inside interface attempts to access the web server with the URL
http://server.example.com, the host running the web client sends a DNS request to the DNS server to
resolve the IP address of the web server. The FWSM translates the non-routable source address in the IP
header and forwards the request to the ISP network on its outside interface. When the DNS reply is
returned, the FWSM applies address translation not only to the destination address, but also to the
embedded IP address of the web server, which is contained in the A-record in the DNS reply. As a result,
the web client on the inside network gets the correct address for connecting to the web server on the
inside network. For the exact NAT and DNS configuration for this example, see Example 20-2. For
configuration instructions for scenarios similar to this one, see the “Configuring DNS Rewrite with Two
NAT Zones” section on page 20-16.
DNS server
server.example.com IN A 209.165.200.225
Web server
server.example.com
192.168.100.1 ISP Internet
FWSM
192.168.100.1IN A 209.165.200.225
132972
Web client
http://server.example.com
192.168.100.2
DNS Rewrite also works if the client making the DNS request is on a DMZ network and the DNS server
is on an inside interface. For an illustration and configuration instructions for this scenario, see the “DNS
Rewrite with Three NAT Zones” section on page 20-17.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-15
Chapter 20 Applying Application Layer Protocol Inspection
DNS Inspection
The following example specifies that the real address (192.168.100.10) on any interface except the inside
interface will be translated to the mapped address (209.165.200.225) on the inside interface. Notice that
the location of 192.168.100.10 is not precisely defined.
hostname(config)# alias (inside) 209.165.200.225 192.168.100.10
Note If you use the alias command to configure DNS Rewrite, proxy ARP will be performed for the mapped
address. To prevent this, disable Proxy ARP by entering the sysopt noproxyarp internal_interface
command after entering the alias command.
The following example specifies that the address 192.168.100.10 on the inside interface is translated into
209.165.200.5 on the outside interface:
hostname(config)# static (inside,outside) 209.165.200.225 192.168.100.10 dns
Note Using the nat command is similar to using the static command except that DNS Rewrite is based on
dynamic translation instead of a static mapping.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-16 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
DNS Inspection
Step 4 If DNS inspection is disabled or if you want to change the maximum DNS packet length, configure DNS
inspection. DNS application inspection is enabled by default with a maximum DNS packet length of 512
bytes. For configuration instructions, see the “Configuring DNS Inspection” section on page 20-20.
Step 5 On the public DNS server, add an A-record for the web server, such as:
domain-qualified-hostname. IN A mapped-address
The following example configures the FWSM for the scenario shown in Figure 20-4. It assumes DNS
inspection is already enabled.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-17
Chapter 20 Applying Application Layer Protocol Inspection
DNS Inspection
DNS server
server.example.com IN A 209.165.200.225
Outside
132973
Web client
10.10.10.25
In Figure 20-5, a web server, server.example.com, has the real address 192.168.100.10 on the DMZ
interface of the FWSM. A web client with the IP address 10.10.10.25 is on the inside interface and a
public DNS server is on the outside interface. The site NAT policies are as follows:
• The outside DNS server holds the authoritative address record for server.example.com.
• Hosts on the outside network can contact the web server with the domain name server.example.com
through the outside DNS server or with the IP address 209.165.200.225.
• Clients on the inside network can access the web server with the domain name server.example.com
through the outside DNS server or with the IP address 192.168.100.10.
When a host or client on any interface accesses the DMZ web server, it queries the public DNS server
for the A-record of server.example.com. The DNS server returns the A-record showing that
server.example.com binds to address 209.165.200.225.
When a web client on the outside network attempts to access http://server.example.com, the sequence of
events is as follows:
1. The host running the web client sends the DNS server a request for the IP address of
server.example.com.
2. The DNS server responds with the IP address 209.165.200.225 in the reply.
3. The web client sends its HTTP request to 209.165.200.225.
4. The packet from the outside host reaches the FWSM at the outside interface.
5. The static rule translates the address 209.165.200.225 to 192.168.100.10 and the FWSM directs the
packet to the web server on the DMZ.
When a web client on the inside network attempts to access http://server.example.com, the sequence of
events is as follows:
1. The host running the web client sends the DNS server a request for the IP address of
server.example.com.
2. The DNS server responds with the IP address 209.165.200.225 in the reply.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-18 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
DNS Inspection
3. The FWSM receives the DNS reply and submits it to the DNS application inspection engine.
4. The DNS application inspection engine does the following:
a. Searches for any NAT rule to undo the translation of the embedded A-record address
“[outside]:209.165.200.5”. In this example, it finds the following static configuration:
static (dmz,outside) 209.165.200.225 192.168.100.10 dns
b. Uses the static rule to rewrite the A-record as follows because the dns option is included:
[outside]:209.165.200.225 --> [dmz]:192.168.100.10
Note If the dns option were not included with the static command, DNS Rewrite would not
be performed and other processing for the packet continues.
c. Searches for any NAT to translate the web server address, [dmz]:192.168.100.10, when
communicating with the inside web client.
No NAT rule is applicable, so application inspection completes.
If a NAT rule (nat or static) were applicable, the dns option must also be specified. If the dns
option were not specified, the A-record rewrite in step b would be reverted and other processing
for the packet continues.
5. The FWSM sends the HTTP request to server.example.com on the DMZ interface.
Step 1 Create a static translation for the web server on the DMZ network, as follows:
hostname(config)# static (dmz,outside) mapped-address real-address dns
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-19
Chapter 20 Applying Application Layer Protocol Inspection
DNS Inspection
Step 4 If DNS inspection is disabled or if you want to change the maximum DNS packet length, configure DNS
inspection. DNS application inspection is enabled by default with a maximum DNS packet length of 512
bytes. For configuration instructions, see the “Configuring DNS Inspection” section on page 20-20.
Step 5 On the public DNS server, add an A-record for the web server, such as:
domain-qualified-hostname. IN A mapped-address
The following example configures the FWSM for the scenario shown in Figure 20-5. It assumes DNS
inspection is already enabled.
Step 1 Create a class map or modify an existing class map to identify DNS traffic. Use the class-map command
to do so, as follows:
hostname(config)# class-map class_map_name
hostname(config-cmap)#
where class_map_name is the name of the traffic class. When you enter the class-map command, the
CLI enters class map configuration mode.
Step 2 Use the match port command to identify DNS traffic. The default port for DNS is UDP port 53.
hostname(config-cmap)# match port udp eq 53
Step 3 Create a policy map or modify an existing policy map that you want to use to apply the DNS inspection
engine to FTP traffic. To do so, use the policy-map command, as follows:
hostname(config-cmap)# policy-map policy_map_name
hostname(config-pmap)#
where policy_map_name is the name of the policy map. The CLI enters the policy map configuration
mode and the prompt changes accordingly.
Step 4 Enable DNS application inspection. To do so, use the inspect dns command, as follows:
hostname(config-pmap-c)# inspect dns [maximum-length max-pkt-length]
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-20 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
DNS Inspection
To change the maximum DNS packet length from the default (512), use the maximum-length argument
and replace max-pkt-length with a numeric value. Longer packets are dropped. To disable checking the
DNS packet length, enter the inspect dns command without the maximum-length keyword.
Step 5 Use the service-policy command to apply the policy map globally or to a specific interface, as follows:
hostname(config-pmap-c)# service-policy policy_map_name [global | interface interface_ID]
hostname(config)#
where policy_map_name is the policy map you configured in Step 3. If you want to apply the policy map
to traffic on all the interfaces, use the global option. If you want to apply the policy map to traffic on a
specific interface, use the interface interface_ID option, where interface_ID is the name assigned to the
interface with the nameif command.
The FWSM begins inspecting DNS traffic, as specified.
The following example creates a class map to match DNS traffic on the default port (53), and enables
DNS inspection in the sample_policy policy map, and applies DNS inspection to the outside interface.
hostname(config)# class-map dns_port
hostname(config-cmap)# match port udp eq 53
hostname(config-cmap)# policy-map sample_policy
hostname(config-pmap)# class dns_port
hostname(config-pmap-c)# inspect dns maximum-length 1500
hostname(config-pmap-c)# service-policy sample_policy interface outside
For connections using a DNS server, the source port of the connection may be replaced by the IP address
of DNS server in the show conn command output.
A single connection is created for multiple DNS sessions, as long as they are between the same two
hosts, and the sessions have the same 5-tuple (source/destination IP address, source/destination port, and
protocol). DNS identification is tracked by app_id, and the idle timer for each app_id runs independently.
Because the app_id expires independently, a legitimate DNS response can only pass through the FWSM
within a limited period of time and there is no resource build-up. However, when you enter the show
conn command, you see the idle timer of a DNS connection being reset by a new DNS session. This is
due to the nature of the shared DNS connection and is by design.
To display the statistics for DNS application inspection, enter the show service-policy command. The
following is sample output from the show service-policy command:
hostname# show service-policy
Interface outside:
Service-policy: sample_policy
Class-map: dns_port
Inspect: dns maximum-length 1500, packet 0, drop 0, reset-drop 0
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-21
Chapter 20 Applying Application Layer Protocol Inspection
FTP Inspection
FTP Inspection
This section describes how the FTP inspection engine works and how you can change its configuration.
This section includes the following topics:
• FTP Inspection Overview, page 20-22
• Using the strict Option, page 20-22
• The request-command deny Command, page 20-23
• Configuring FTP Inspection, page 20-24
• Verifying and Monitoring FTP Inspection, page 20-26
Note If you disable FTP inspection engines with the no inspect ftp command, outbound users can start
connections only in passive mode, and all inbound FTP is disabled.
Tip To specify FTP commands that are not permitted to pass through the FWSM, create an FTP map and
enter the request-command deny command in FTP map configuration mode.
After you enable the strict option on an interface, FTP inspection enforces the following behavior:
• An FTP command must be acknowledged before the FWSM allows a new command.
• The FWSM drops connections that send embedded commands.
• The 227 and PORT commands are checked to ensure they do not appear in an error string.
Caution Using the strict option may cause the failure of FTP clients that are not strictly compliant with FTP
RFCs.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-22 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
FTP Inspection
If the strict option is enabled, each ftp command and response sequence is tracked for the following
anomalous activity:
• Truncated command—Number of commas in the PORT and PASV reply command is checked to see
if it is five. If it is not five, then the PORT command is assumed to be truncated and the TCP
connection is closed.
• Incorrect command—Checks the ftp command to see if it ends with <CR><LF> characters, as
required by the RFC. If it does not, the connection is closed.
• Size of RETR and STOR commands—These are checked against a fixed constant. If the size is
greater, then an error message is logged and the connection is closed.
• Command spoofing—The PORT command should always be sent from the client. The TCP
connection is denied if a PORT command is sent from the server.
• Reply spoofing—PASV reply command (227) should always be sent from the server. The TCP
connection is denied if a PASV reply command is sent from the client. This prevents the security
hole when the user executes “227 xxxxx a1, a2, a3, a4, p1, p2.”
• TCP stream editing—The FWSM closes the connection if it detects TCP stream editing.
• Invalid port negotiation—The negotiated dynamic port value is checked to see if it is less than 1024.
As port numbers in the range from 1 to 1024 are reserved for well-known connections, if the
negotiated port falls in this range, then the TCP connection is freed.
• Command pipelining—The number of characters present after the port numbers in the PORT and
PASV reply command is cross checked with a constant value of 8. If it is more than 8, then the TCP
connection is closed.
• The FWSM replaces the FTP server response to the SYST command with a series of Xs to prevent
the server from revealing its system type to FTP clients. To override this default behavior, use the
no mask-syst-reply command in FTP map configuration mode.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-23
Chapter 20 Applying Application Layer Protocol Inspection
FTP Inspection
Step 1 Determine the ports to which FTP servers behind your FWSM listen. The default FTP port is TCP port
21; however, alternate ports are often used as a simple means to thwart attacks. To ensure that all FTP
traffic is inspected, check your FTP servers for use of ports other than TCP port 21.
Step 2 Create a class map or modify an existing class map to identify FTP traffic. Use the class-map command
to do so, as follows:
hostname(config)# class-map class_map_name
hostname(config-cmap)#
where class_map_name is the name of the traffic class. When you enter the class-map command, the
CLI enters class map configuration mode.
Step 3 Identify traffic sent to the FTP ports you determined in Step 1. To do so, use a match port or match
access-list command.
If you need to identify two or more non-contiguous ports, create an access list with the access-list
extended command, add an ACE to match each port, and then use the match access-list command. The
following commands show how to use an access list to identify multiple TCP ports with an access list:
hostname(config)# access-list acl-name any any tcp eq port_number_1
hostname(config)# access-list acl-name any any tcp eq port_number_2
hostname(config)# class-map class_map_name
hostname(config-cmap)# match access-list acl-name
If you need to identify a single port, use the match port command, as follows:
hostname(config-cmap)# match port tcp port_number
where port_number is the only TCP port listened to by FTP servers behind the FWSM.
If you need to identify a range of contiguous ports for a single protocol, use match port command with
the range keyword, as follows:
hostname(config-cmap)# match port tcp range begin_port_number end_port_number
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-24 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
FTP Inspection
where begin_port_number is the lowest port in the range of FTP ports and end_port_number is the
highest port.
Step 4 (Optional) If you want FTP inspection to do the following:
• Allow FTP servers to reveal their system type to FTP clients.
• Limit the allowed FTP commands.
then create and configure an FTP map. To do so, perform the following steps:
a. Create an FTP map that contains the additional parameters of FTP inspection. Use the ftp-map
command to do so, as follows:
hostname(config-cmap)# ftp-map map_name
hostname(config-ftp-map)#
where map_name is the name of the FTP map. The CLI enters FTP map configuration mode.
b. (Optional) If you want to allow FTP servers from revealing their system type to FTP clients in
responses to SYST messages, use the no form of the mask-syst-reply command, as follows:
hostname(config-ftp-map)# no mask-syst-reply
hostname(config-ftp-map)#
Note By default, when FTP inspection is enabled, responses to SYST messages are masked. If you
disable SYST response masking, you can reenable it with the mask-syst-response command.
c. (Optional) If you want to disallow specific FTP commands, use the request-command deny
command and specify each FTP command that you want to disallow, as follows:
hostname(config-ftp-map)# request-command deny ftp_command [ftp_command...]
hostname(config-ftp-map)#
where ftp_command with one or more FTP commands that you want to restrict. See Table 20-2 for
a list of the FTP commands that you can restrict.
Step 5 Create a policy map or modify an existing policy map that you want to use to apply the FTP inspection
engine to FTP traffic. To do so, use the policy-map command, as follows:
hostname(config-cmap)# policy-map policy_map_name
hostname(config-pmap)#
where policy_map_name is the name of the policy map. The CLI enters the policy map configuration
mode and the prompt changes accordingly.
Step 6 Specify the class map, created in Step 2, that identifies the FTP traffic. Use the class command to do so,
as follows:
hostname(config-pmap)# class class_map_name
hostname(config-pmap-c)#
where class_map_name is the name of the class map you created in Step 2. The CLI enters the policy
map class configuration mode and the prompt changes accordingly.
Step 7 Enable FTP application inspection with the options you want. To do so, do one of the following:
• If you want to enable strict FTP inspection, use the inspect ftp command with the strict keyword,
as follows:
hostname(config-pmap-c)# inspect ftp strict
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-25
Chapter 20 Applying Application Layer Protocol Inspection
FTP Inspection
• If you want to enable strict FTP inspection with an optional FTP map you may have configured in
Step 4, use the inspect ftp command with the strict keyword and the FTP map name, as follows:
hostname(config-pmap-c)# inspect ftp strict ftp_map_name
• If you want to revert to default FTP inspection, use the inspect ftp command with no keywords, as
follows:
hostname(config-pmap-c)# inspect ftp
Step 8 Use the service-policy command to apply the policy map globally or to a specific interface, as follows:
hostname(config-pmap-c)# service-policy policy_map_name [global | interface interface_ID]
hostname(config)#
where policy_map_name is the policy map you configured in Step 5. If you want to apply the policy map
to traffic on all the interfaces, use the global option. If you want to apply the policy map to traffic on a
specific interface, use the interface interface_ID option, where interface_ID is the name assigned to the
interface with the nameif command.
The FWSM begins inspecting FTP traffic, as specified.
The following example shows how to identify FTP traffic, define a FTP map, define a policy, and apply
the policy to the outside interface.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-26 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
GTP Inspection
GTP Inspection
This section describes how the GTP inspection engine works and how you can change its configuration.
This section includes the following topics:
• GTP Inspection Overview, page 20-27
• GTP Maps and Commands, page 20-28
• Enabling and Configuring GTP Inspection, page 20-29
• Verifying and Monitoring GTP Inspection, page 20-30
Note GTP inspection requires a special license. If you enter GTP-related commands on a FWSM without the
required license, the FWSM displays an error message.
Internet
Home PLMN
MS
Gn Corporate
SGSN GGSN Gi network 2
Gp
Corporate
network 1
GRX
119935
Roaming partner
(visited PLMN)
The UMTS is the commercial convergence of fixed-line telephony, mobile, Internet and computer
technology. UTRAN is the networking protocol used for implementing wireless networks in this system.
GTP allows multi-protocol packets to be tunneled through a UMTS/GPRS backbone between a GGSN,
an SGSN and the UTRAN.
GTP does not include any inherent security or encryption of user data, but using GTP with the FWSM
helps protect your network against these risks.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-27
Chapter 20 Applying Application Layer Protocol Inspection
GTP Inspection
The SGSN is logically connected to a GGSN using GTP. GTP allows multiprotocol packets to be
tunneled through the GPRS backbone between GSNs. GTP provides a tunnel control and management
protocol that allows the SGSN to provide GPRS network access for a mobile station by creating,
modifying and deleting tunnels. GTP uses a tunneling mechanism to provide a service for carrying user
data packets.
Note When using GTP with failover, if a GTP connection is established and the active unit fails before data
is transmitted over the tunnel, the GTP data connection (with a “j” flag set) is not replicated to the
standby unit. This occurs because the active unit does not replicate embryonic connections to the standby
unit.
Command Description
description Specifies the GTP configuration map description.
drop Specifies the message ID, APN, or GTP version to drop.
mcc Specifies the three-digit Mobile Country Code (000 - 999).
One-digit or two-digit entries will be prefixes with 0s.
message-length Specifies the message length min and max.
permit errors Permits packets with errors or different GTP versions.
request-queue Specifies the maximum requests allowed in the queue.
timeout (gtp-map) Specifies the idle timeout for the GSN, PDP context, requests,
signaling connections, and tunnels.
tunnel-limit Specifies the maximum number of tunnels allowed.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-28 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
GTP Inspection
Note GTP inspection requires a special license. If you enter GTP-related commands on a FWSM without the
required license, the FWSM displays an error message.
Step 1 Define an access list with ACEs that identify the ports required for GTP traffic. The standard ports are
UDP ports 2123 and 3386. To create the access list, use the access-list extended command once for each
ACE, as follows:
hostname(config)# access-list acl-name permit {udp | tcp} any any eq port
where acl-name is the name you assign to the access list and port is the GTP port that the ACE identifies.
Step 2 Create a class map or modify an existing class map to identify GTP traffic. Use the class-map command
to do so, as follows:
hostname(config)# class-map class_map_name
hostname(config-cmap)#
where class_map_name is the name of the traffic class. When you enter the class-map command, the
CLI enters class map configuration mode.
Step 3 Use a match access-list command to identify GTP traffic with the access list you created in Step 1.
hostname(config-cmap)# match access-list acl-name
Step 4 (Optional) If you want to enforce additional parameters on GTP traffic, create and configure a GTP map.
For more information about GTP maps and the default values enforced if you do not specify GTP map,
see “GTP Maps and Commands” section on page 20-28. To create and configure a GTP map, perform
the following steps:
a. Create a GTP map that will contain the additional parameters of GTP inspection. Use the gtp-map
command to do so, as follows:
hostname(config-cmap)# gtp-map map_name
hostname(config-gtp-map)#
where map_name is the name of the GTP map. The CLI enters GTP map configuration mode.
b. Configure GTP inspection parameters. To do so, use the GTP map configuration mode commands
that you want to enforce. For a list of commands, see Table 20-3.
Step 5 Create a policy map or modify an existing policy map that you want to use to apply the GTP inspection
engine to GTP traffic. To do so, use the policy-map command, as follows:
hostname(config-cmap)# policy-map policy_map_name
hostname(config-pmap)#
where policy_map_name is the name of the policy map. The CLI enters the policy map configuration
mode and the prompt changes accordingly.
Step 6 Specify the class map, created in Step 2, that identifies the GTP traffic. Use the class command to do so,
as follows:
hostname(config-pmap)# class class_map_name
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-29
Chapter 20 Applying Application Layer Protocol Inspection
GTP Inspection
hostname(config-pmap-c)#
where class_map_name is the name of the class map you created in Step 2. The CLI enters the policy
map class configuration mode and the prompt changes accordingly.
Step 7 Enable GTP application inspection. To do so, use the inspect gtp command, as follows:
hostname(config-pmap-c)# inspect gtp [map_name]
hostname(config-pmap-c)#
where map_name is the GTP map that you may have created in optional Step 4.
Step 8 Use the service-policy command to apply the policy map globally or to a specific interface, as follows:
hostname(config-pmap-c)# service-policy policy_map_name [global | interface interface_ID]
hostname(config)#
where policy_map_name is the policy map you configured in Step 5. If you want to apply the policy map
to traffic on all the interfaces, use the global option. If you want to apply the policy map to traffic on a
specific interface, use the interface interface_ID option, where interface_ID is the name assigned to the
interface with the nameif command.
The FWSM begins inspecting GTP traffic, as specified.
The following example shows how to use access lists to identify GTP traffic, define a GTP map, define
a policy, and apply the policy to the outside interface.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-30 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
H.323 Inspection
unexpected_data_msg 0 ie_duplicated 0
mandatory_ie_missing 0 mandatory_ie_incorrect 0
optional_ie_incorrect 0 ie_unknown 0
ie_out_of_order 0 ie_unexpected 0
total_forwarded 0 total_dropped 0
signalling_msg_dropped 0 data_msg_dropped 0
signalling_msg_forwarded 0 data_msg_forwarded 0
total created_pdp 0 total deleted_pdp 0
total created_pdpmcb 0 total deleted_pdpmcb 0
pdp_non_existent 0
You can use the vertical bar (|) to filter the display. Type ?| for more display filtering options.
Use the show service-policy inspect gtp pdp-context command to display PDP context-related
information. The following is sample output from the show service-policy inspect gtp pdp-context
command:
hostname# show service-policy inspect gtp pdp-context detail
1 in use, 1 most used, timeout 0:00:00
The PDP context is identified by the tunnel ID, which is a combination of the values for IMSI and
NSAPI. A GTP tunnel is defined by two associated PDP contexts in different GSN nodes and is
identified with a Tunnel ID. A GTP tunnel is necessary to forward packets between an external packet
data network and a MS user.
You can use the vertical bar (|) to filter the display, as in the following example:
hostname# show service-policy gtp statistics | grep gsn
H.323 Inspection
This section describes how to enable H.323 application inspection and change the default port
configuration. This section includes the following topics:
• H.323 Inspection Overview, page 20-32
• How H.323 Works, page 20-32
• Limitations and Restrictions, page 20-33
• Enabling and Configuring H.323 Inspection, page 20-35
• Topologies Requiring H.225 Configuration, page 20-34
• H.225 Map Commands, page 20-35
• Enabling and Configuring H.323 Inspection, page 20-35
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-31
Chapter 20 Applying Application Layer Protocol Inspection
H.323 Inspection
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-32 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
H.323 Inspection
After inspecting the H.225 messages, the FWSM opens the H.245 channel and then inspects traffic sent
over the H.245 channel as well. All H.245 messages passing through the FWSM undergo H.245
application inspection, which NATs embedded IP addresses and opens the media channels negotiated in
H.245 messages.
The H.323 ITU standard requires that a TPKT header, defining the length of the message, precede the
H.225 and H.245, before being passed on to the reliable connection. Because the TPKT header does not
necessarily need to be sent in the same TCP packet as H.225 and H.245 messages, the FWSM must
remember the TPKT length to process and decode the messages properly. For each connection, the
FWSM keeps a record that contains the TPKT length for the next expected message.
If the FWSM needs to perform NAT on IP addresses in messages, it changes the checksum, the UUIE
length, and the TPKT, if it is included in the TCP packet with the H.225 message. If the TPKT is sent in
a separate TCP packet, the FWSM proxy ACKs that TPKT and appends a new TPKT to the H.245
message with the new length.
Note The FWSM does not support TCP options in the Proxy ACK for the TPKT.
Each UDP connection with a packet going through H.323 inspection is marked as an H.323 connection
and times out with the H.323 timeout as configured with the timeout command.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-33
Chapter 20 Applying Application Layer Protocol Inspection
H.323 Inspection
PGW
EISUP
IP Core
HSI
10.10.15.11
10.10.212.1
H.323
10.10.212.0 10.10.25.5
Cisco Catalyst 6000 H.245
FWSM 3.1 M
NAT enabled CCM IPCC
10.3.6.1
133000
M
CME
In this topology, call signaling occurs between the Cisco CallManager and the HSI on one side of the
FWSM and between HSI and the Cisco CallManager endpoint on the other side. Afterwards, call control
happens directly between the Cisco CallManager and the Cisco CallManager endpoint. When the HSI
and one endpoint is on a network protected by the FWSM and the other endpoint is on another network,
the call control may not go through without additional H.225 configuration.
The FWSM is not aware of the existence of the Cisco CallManager in this topology. With only the packet
flows that happen through the firewall, the FWSM cannot open a proper pinhole to allow such a call to
be successful. For this reason, some additional H.225 configuration is required in this scenario.
To provide the necessary configuration, you identify an HSI and its associated endpoints within an HSI
group. After this configuration is completed, when the FWSM sees the HSI as one of the communicating
hosts in an H.225 connection, it opens H.245 holes between the endpoints in the HSI group. The actual
H.245 connection will match one of these pinholes and will go through properly.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-34 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
H.323 Inspection
Step 1 Define an access list with ACEs that identify the ports required for H.323 traffic. The standard ports are
UDP ports 1718 and 1719 and TCP port 1720. To create the access list, use the access-list extended
command once for each ACE, as follows:
hostname(config)# access-list acl-name permit {udp | tcp} any any eq port
where acl-name is the name you assign to the access list and port is the H.323 port that the ACE
identifies.
Step 2 Create a class map or modify an existing class map to identify H.323 traffic. Use the class-map
command to do so, as follows:
hostname(config)# class-map class_map_name
hostname(config-cmap)#
where class_map_name is the name of the traffic class. When you enter the class-map command, the
CLI enters class map configuration mode.
Step 3 Use a match access-list command to identify H.323 traffic with the access list you created in Step 1.
hostname(config-cmap)# match access-list acl-name
Step 4 (Optional) If required by your network topology, configure an H.225 map. For more information about
whether your network requires an H.225 map, see the “Topologies Requiring H.225 Configuration”
section on page 20-34. To create and configure an H.225 map, perform the following steps:
a. Create an H.225 map.
hostname(config)# h225-map map_name
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-35
Chapter 20 Applying Application Layer Protocol Inspection
H.323 Inspection
hostname(config-h225-map)#
The system enters H.225 map configuration mode and the CLI prompt changes accordingly.
b. Identify an HSI group. To do so, use the hsi-group command, as follows:
hostname(config-h225-map)# hsi-group group_ID
hostname(config-h225-map-hsi-grp)#
where group_ID is a number, from 0 to 2147483647, that identifies the HSI group.
Note The maximum number of HSI groups allowed per H.225 map is five.
The system enters HSI group configuration mode and the CLI prompt changes accordingly.
c. Define an HSI for the group.
hostname(config-h225-map-hsi-grp)# hsi ip_address
where interface with the interface on the FWSM that is connected to the endpoint and ip_address is
the addresses of the endpoint.
e. If you need to create additional HSI groups, repeat step b. through d.
Step 5 Create a policy map or modify an existing policy map that you want to use to apply the H.323 inspection
engine to H.323 traffic. To do so, use the policy-map command, as follows:
hostname(config-cmap)# policy-map policy_map_name
hostname(config-pmap)#
where policy_map_name is the name of the policy map. The CLI enters the policy map configuration
mode and the prompt changes accordingly.
Step 6 Specify the class map, created in Step 2, that identifies the H.323 traffic. Use the class command to do
so, as follows:
hostname(config-pmap)# class class_map_name
hostname(config-pmap-c)#
where class_map_name is the name of the class map you created in Step 2. The CLI enters the policy
map class configuration mode and the prompt changes accordingly.
Step 7 Enable H.323 application inspection. To do so, use the inspect h323 command, as follows:
hostname(config-pmap-c)# inspect h323 [h225 map_name]
hostname(config-pmap-c)#
where map_name is the H.225 map that you may have created in optional Step 4.
Step 8 Use the service-policy command to apply the policy map globally or to a specific interface, as follows:
hostname(config-pmap-c)# service-policy policy_map_name [global | interface interface_ID]
hostname(config)#
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-36 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
H.323 Inspection
where policy_map_name is the policy map you configured in Step 5. If you want to apply the policy map
to traffic on all the interfaces, use the global option. If you want to apply the policy map to traffic on a
specific interface, use the interface interface_ID option, where interface_ID is the name assigned to the
interface with the nameif command.
The FWSM begins inspecting H.323 traffic, as specified.
You enable the H.323 inspection engine as shown in the following example, which creates a class map
to match H.323 traffic on the default port (1720). The service policy is then applied to the outside
interface.
hostname(config)# access-list h323_acl permit udp any any eq 1718
hostname(config)# access-list h323_acl permit udp any any eq 1719
hostname(config)# access-list h323_acl permit tcp any any eq 1720
hostname(config)# class-map h323-traffic
hostname(config-cmap)# match access-list h323_acl
hostname(config-cmap)# policy-map sample_policy
hostname(config-pmap)# class h323_port
hostname(config-pmap-c)# inspect h323 ras
hostname(config-pmap-c)# inspect h323 h225
hostname(config-pmap-c)# service-policy sample_policy interface outside
hostname(config)#
Example 20-8 includes an H.225 map with two HSI groups, as part of the overall H.323 configuration.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-37
Chapter 20 Applying Application Layer Protocol Inspection
H.323 Inspection
This output indicates that there is currently 1 active H.323 call going through the FWSM between the
local endpoint 10.130.56.3 and foreign host 172.30.254.203, and for these particular endpoints, there is
1 concurrent call between them, with a CRV for that call of 9861.
For the local endpoint 10.130.56.4 and foreign host 172.30.254.205, there are 0 concurrent calls. This
means that there is no active call between the endpoints even though the H.225 session still exists. This
could happen if, at the time of the show h225 command, the call has already ended but the H.225 session
has not yet been deleted. Alternately, it could mean that the two endpoints still have a TCP connection
opened between them because they set “maintainConnection” to TRUE, so the session is kept open until
they set it to FALSE again, or until the session times out based on the H.225 timeout value in your
configuration.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-38 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
H.323 Inspection
1 10.130.56.3/1041 0 172.30.254.203/1245 0
MEDIA: LCN 258 Foreign 172.30.254.203 RTP 49608 RTCP 49609
Local 10.130.56.3 RTP 49608 RTCP 49609
MEDIA: LCN 259 Foreign 172.30.254.203 RTP 49606 RTCP 49607
Local 10.130.56.3 RTP 49606 RTCP 49607
There is currently one H.245 control session active across the FWSM. The local endpoint is 10.130.56.3,
and we are expecting the next packet from this endpoint to have a TPKT header because the TPKT value
is 0. The TKTP header is a 4-byte header preceding each H.225/H.245 message. It gives the length of
the message, including the 4-byte header. The foreign host endpoint is 172.30.254.203, and we are
expecting the next packet from this endpoint to have a TPKT header because the TPKT value is 0.
The media negotiated between these endpoints have an LCN of 258 with the foreign RTP IP address/port
pair of 172.30.254.203/49608 and an RTCP IP address/port of 172.30.254.203/49609 with a local RTP
IP address/port pair of 10.130.56.3/49608 and an RTCP port of 49609.
The second LCN of 259 has a foreign RTP IP address/port pair of 172.30.254.203/49606 and an RTCP
IP address/port pair of 172.30.254.203/49607 with a local RTP IP address/port pair of
10.130.56.3/49606 and RTCP port of 49607.
This output shows that there is one active registration between the gatekeeper 172.30.254.214 and its
client 10.130.56.14.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-39
Chapter 20 Applying Application Layer Protocol Inspection
H.323 Inspection
R2 R1
4085280002 4085280001
vlan 100 outside inside vlan 50
100.100.100.2 50.100.100.2
191991
Analog Cisco 3745 Cisco 3745 Analog
phone H.323 Gateway FireWall Service module H.323 Gateway phone
(FWSM)
Cisco 3745
Gatekeeper
Configuration of the IOS H.323 Gateway (Router R2) on the outside interface:
hostname(config)# hostname R2
hostname(config)# interface FastEthernet0/1
hostname(config-if)# ip address 100.100.100.1 255.0.0.0
hostname(config-if)# no shut
hostname(config-if)# exit
hostname(config)# ip route 50.0.0.0 255.0.0.0 100.100.100.2
hostname(config)# voice-port 1/0/0
hostname(config-voiceport)# no shut
hostname(config-voiceport)# exit
hostname(config)# gateway
hostname(config-gateway)#
hostname(config-gateway)# exit
hostname(config)# ip cef
hostname(config)# int f0/1
hostname(config-if)# h323-gateway voip interface
hostname(config-if)# h323-gateway voip id inGK ipaddr 50.0.0.6
hostname(config-if)# h323-gateway voip h323-id R2
Configure dial peer to forward voice calls to destination number 4085280001 using the H.323 protocol:
hostname(config)# dial-peer voice 101 voip
hostname(config-dial-peer)# destination-pattern 4085280001
hostname(config-dial-peer)# session target ras
hostname(config-dial-peer)# exit
Configure dial peer to forward voice calls to 4085280002 to voice port 1/0/0 in router R2:
hostname(config)# dial-peer voice 102 pots
hostname(config-dial-peer)# destination-pattern 4085280002
hostname(config-dial-peer)# port 1/0/0
hostname(config-dial-peer)# exit
hostname(config)# exit
Configuration of the IOS H.323 gateway (router R1) on the inside interface:
hostname(config)# hostname R1
hostname(config)# interface FastEthernet0/1
hostname(config-if)# ip address 50.100.100.1 255.0.0.0
hostname(config-if)# no shut
hostname(config-if)# ip route 100.0.0.0 255.0.0.0 50.100.100.2
hostname(config)#
hostname(config)# voice-port 3/0/0
hostname(config-voiceport)# no shut
hostname(config-voiceport)# exit
hostname(config)# gateway
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-40 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
H.323 Inspection
hostname(config-gateway)# exit
hostname(config)# ip cef
hostname(config)# int fastethernet0/1
hostname(config-if)# h323-gateway voip interface
hostname(config-if)# h323-gateway voip id inGK ipaddr 50.0.0.6
hostname(config-if)# h323-gateway voip h323-id R1
hostname(config-if)# exit
Forward all voice calls destined to 408528002 using the H.323 protocol:
hostname(config)# dial-peer voice 101 voip
hostname(config-dial-peer)# destination-pattern 4085280002
hostname(config-dial-peer)# session target ras
Configuration of the IOS H.323 Gatekeeper (router inGK) on the inside interface:
hostname# config t
hostname(config)# interface Vlan100
hostname(config-if)# nameif outside
hostname(config-if)# security-level 0
hostname(config-if)# ip address 100.100.100.2 255.0.0.0
hostname(config-if)#
hostname(config-if)# interface Vlan50
hostname(config-if)# nameif inside
hostname(config-if)# security-level 100
hostname(config-if)# ip address 50.100.100.2 255.0.0.0
hostname(config-if)#
hostname(config-if)# access-list voice extended permit udp any any eq 1719
hostname(config)# access-list voice extended permit tcp any any eq h323
hostname(config)#
hostname(config)# access-group voice in interface outside
hostname(config)# access-group voice in interface inside
hostname(config)#
hostname(config)# policy-map global_policy
hostname(config-pmap)# class inspection_default
hostname(config-pmap-c)# inspect h323 h225
hostname(config-pmap-c)# inspect h323 ras
hostname(config-pmap-c)#
Output of show conn shows H.323 media connections and control (connections flagged by h and output
of show h225):
FWSM/admin# show conn
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-41
Chapter 20 Applying Application Layer Protocol Inspection
HTTP Inspection
HTTP Inspection
This section describes how the HTTP inspection engine works and how you can change its configuration.
This section includes the following topics:
• HTTP Inspection Overview, page 20-42
• Enhanced HTTP Inspection Commands, page 20-43
• Enabling and Configuring Advanced HTTP Inspection, page 20-43
Note The no inspect http command also disables the filter url command.
The enhanced HTTP inspection feature, which is also known as an application firewall, can help prevent
attackers from using HTTP messages for circumventing network security policy. It verifies the following
for all HTTP messages:
• Conformance to RFC 2616
• Use of RFC-defined methods only.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-42 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
HTTP Inspection
Note When you enable HTTP inspection with an HTTP map, strict HTTP inspection with the action reset and
log is enabled by default. You can change the actions performed in response to inspection failure, but
you cannot disable strict inspection as long as the HTTP map remains enabled.
Command Description
content-length Enables inspection based on the length of the HTTP content.
content-type-verification Enables inspection based on the type of HTTP content.
max-header-length Enables inspection based on the length of the HTTP header.
max-uri-length Enables inspection based on the length of the URI.
port-misuse Enables application firewall inspection.
request-method Enables inspection based on the HTTP request method.
strict-http Enables strict HTTP inspection.
transfer-encoding Enables inspection based on the transfer encoding type.
Step 1 Determine the ports that HTTP servers behind the FWSM listen to for HTTP traffic. The default port is
TCP port 80; however, alternate ports are often used as a simple means to thwart attacks. To ensure that
all HTTP traffic is inspected, check your HTTP servers for use of ports other than TCP port 80.
Step 2 Create a class map or modify an existing class map to identify HTTP traffic. Use the class-map
command to do so, as follows:
hostname(config)# class-map class_map_name
hostname(config-cmap)#
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-43
Chapter 20 Applying Application Layer Protocol Inspection
HTTP Inspection
where class_map_name is the name of the traffic class. When you enter the class-map command, the
CLI enters class map configuration mode.
Step 3 Identify traffic sent to the HTTP ports you determined in Step 1. To do so, use a match port or match
access-list command.
If you need to identify two or more non-contiguous ports, create an access list with the access-list
extended command, add an ACE to match each port, and then use the match access-list command. The
following commands show how to use an access list to identify multiple TCP ports with an access list:
hostname(config)# access-list acl-name any any tcp eq port_number_1
hostname(config)# access-list acl-name any any tcp eq port_number_2
hostname(config)# class-map class_map_name
hostname(config-cmap)# match access-list acl-name
If you need to identify a single port, use the match port command, as follows:
hostname(config-cmap)# match port tcp port_number
where port_number is the only TCP port listened to by HTTP servers behind the FWSM.
If you need to identify a range of contiguous ports for a single protocol, use match port command with
the range keyword, as follows:
hostname(config-cmap)# match port tcp range begin_port_number end_port_number
where begin_port_number is the lowest port in the range of HTTP ports and end_port_number is the
highest port.
Step 4 (Optional) If you want to enable enhanced HTTP inspection, perform the following steps:
a. Create an HTTP map that will contain the additional parameters of HTTP inspection. Use the
http-map command to do so, as follows:
hostname(config-cmap)# http-map map_name
hostname(config-http-map)#
where map_name is the name of the HTTP map. The CLI enters HTTP map configuration mode.
b. Configure enhanced HTTP inspection parameters. To do so, determine which enhanced HTTP
commands you want to use. For a list of commands, see Table 20-5.
Step 5 Create a policy map or modify an existing policy map that you want to use to apply the HTTP inspection
engine to HTTP traffic. To do so, use the policy-map command, as follows:
hostname(config-cmap)# policy-map policy_map_name
hostname(config-pmap)#
where policy_map_name is the name of the policy map. The CLI enters the policy map configuration
mode and the prompt changes accordingly.
Step 6 Specify the class map, created in Step 2, that identifies the HTTP traffic. Use the class command to do
so, as follows:
hostname(config-pmap)# class class_map_name
hostname(config-pmap-c)#
where class_map_name is the name of the class map you created in Step 2. The CLI enters the policy
map class configuration mode and the prompt changes accordingly.
Step 7 Enable HTTP application inspection. To do so, use the inspect http command, as follows:
hostname(config-pmap-c)# inspect http [map_name]
hostname(config-pmap-c)#
where map_name is the HTTP map that you may have created in optional Step 4.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-44 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
ICMP Inspection
Step 8 Use the service-policy command to apply the policy map globally or to a specific interface, as follows:
hostname(config-pmap-c)# service-policy policy_map_name [global | interface interface_ID]
hostname(config)#
where policy_map_name is the policy map you configured in Step 5. If you want to apply the policy map
to traffic on all the interfaces, use the global option. If you want to apply the policy map to traffic on a
specific interface, use the interface interface_ID option, where interface_ID is the name assigned to the
interface with the nameif command.
The FWSM begins inspecting HTTP traffic, as specified.
The following example shows how to use access lists to identify HTTP traffic, define an HTTP map,
define a policy, and apply the policy to the outside interface:
hostname(config)# class-map http_port
hostname(config-cmap)# match port tcp eq 80
hostname(config-cmap)# http-map sample_map
hostname(config-http-map)# content-length min 100 max 2000 action reset log
hostname(config-http-map)# content-type-verification match-req-rsp action reset log
hostname(config-http-map)# max-header-length request 100 action reset log
hostname(config-http-map)# max-uri-length 100 action reset log
hostname(config-http-map)# policy-map sample_policy
hostname(config-pmap)# class http_port
hostname(config-pmap-c)# inspect http sample_map
hostname(config-pmap-c)# service-policy sample_policy interface outside
hostname(config)#
ICMP Inspection
ICMP inspection is disabled by default.
For information about ICMP inspection, see the inspect icmp and inspect icmp error command pages
in the Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Command
Reference.
ILS Inspection
ILS inspection is disabled by default.
For information about ILS inspection, see the inspect ils command page in the Catalyst 6500 Series
Switch and Cisco 7600 Series Router Firewall Services Module Command Reference.
MGCP Inspection
This section describes how to enable and configure MGCP application inspection and change the default
port configuration. This section includes the following topics:
• MGCP Inspection Overview, page 20-46
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-45
Chapter 20 Applying Application Layer Protocol Inspection
MGCP Inspection
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-46 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
MGCP Inspection
To PSTN
Cisco M Cisco
PGW 2200 H.323 M
M CallManager
209.165.201.10
209.165.201.11
209.165.201.1
Gateway is told 209.165.200.231
to send its media
to 209.165.200.231 MGCP SCCP
(public address RTP to 10.0.0.76
of the IP Phone) from 209.165.200.231
209.165.200.231
GW GW
RTP to 209.165.201.1
from 209.165.200.231
119936
IP IP IP
10.0.0.76
Branch offices
MGCP endpoints are physical or virtual sources and destinations for data. Media gateways contain
endpoints on which the call agent can create, modify and delete connections to establish and control
media sessions with other multimedia endpoints. Also, the call agent can instruct the endpoints to detect
certain events and generate signals. The endpoints automatically communicate changes in service state
to the call agent.
MGCP transactions are composed of a command and a mandatory response. There are eight types of
commands:
• CreateConnection
• ModifyConnection
• DeleteConnection
• NotificationRequest
• Notify
• AuditEndpoint
• AuditConnection
• RestartInProgress
The first four commands are sent by the call agent to the gateway. The Notify command is sent by the
gateway to the call agent. The gateway may also send a DeleteConnection command. The registration of
the MGCP gateway with the call agent is achieved by the RestartInProgress command. The
AuditEndpoint and the AuditConnection commands are sent by the call agent to the gateway.
All commands are composed of a Command header, optionally followed by a session description. All
responses are composed of a Response header, optionally followed by a session description.
To use MGCP, you usually need to configure inspection for traffic sent to two ports:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-47
Chapter 20 Applying Application Layer Protocol Inspection
MGCP Inspection
• The port on which the gateway receives commands from the call agent. Gateways usually listen to
UDP port 2427.
• The port on which the call agent receives commands from the gateway. Call agents usually listen to
UDP port 2727.
Note MGCP inspection does not support the use of different IP addresses for MGCP signaling and RTP data.
A common and recommended practice is to send RTP data from a resilient IP address, such as a loopback
or virtual IP address; however, the FWSM requires the RTP data to come from the same address as
MGCP signalling.
Note Using call agents to control the MGCP gateways does not restrict calls between the gateways. For
example, the FWSM does not deny voice calls based on the call agent or gateway IP addresses configured
by using the mgcp-map command. The gateways can make voice calls even when they are not configured
by using the mgcp-map command.
Use the gateway command to specify which group of call agents are managing a particular gateway. The
IP address of the gateway is specified with the ip_address option. The group_id option is a number from
0 to 4294967295 that must correspond with the group_id of the call agents that are managing the
gateway. A gateway may only belong to one group.
Note MGCP call agents send AUEP messages to determine if MGCP end points are present. This establishes
a flow through the FWSM and allows MGCP end points to register with the call agent.
Step 1 Define an access list with ACEs that identify the two ports required for receiving MGCP traffic. The
standard ports are UDP ports 2427 and 2727. To create the access list, use the access-list extended
command, as follows:
hostname(config)# access-list acl-name permit udp any any eq port-1
hostname(config)# access-list acl-name permit udp any any eq port-2
where acl-name is the name you assign to the access list, port-1 is the first MGCP port and port-2 is the
second MGCP port.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-48 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
MGCP Inspection
Step 2 Create a class map or modify an existing class map to identify MGCP traffic. Use the class-map
command to do so, as follows:
hostname(config)# class-map class_map_name
hostname(config-cmap)#
where class_map_name is the name of the traffic class. When you enter the class-map command, the
CLI enters class map configuration mode.
Step 3 Use a match access-list command to identify MGCP traffic with the access list you created in Step 1.
hostname(config-cmap)# match access-list acl-name
Step 4 (Optional) If the network has multiple call agents and gateways for which the FWSM has to open
pinholes, create an MGCP map. To do so, perform the following steps:
a. Create an MGCP map by using the mgcp-map command. The mgcp-map command lets you create
parameters for MGCP inspection. Use the mgcp-map command as follows:
hostname(config-cmap)# mgcp-map map_name
hostname(config-mgcp-map)#
where map_name is the name of the MGCP map. The system enters MGCP map configuration mode
and the CLI prompt changes accordingly.
b. Configure the call agents. To do so, use the call-agent command once per call agent, as follows:
hostname(config-mgcp-map)# call-agent ip_address group_id
c. Configure the gateways. To do so, use the gateway command once per gateway, as follows:
hostname(config-mgcp-map)# gateway ip_address group_id
d. (Optional) If you want to change the maximum number of commands allowed in the MGCP
command queue, use the command-queue command, as follows:
hostname(config-mgcp-map)# command-queue command_limit
Step 5 Create a policy map or modify an existing policy map that you want to use to apply the MGCP inspection
engine to MGCP traffic. To do so, use the policy-map command, as follows:
hostname(config-cmap)# policy-map policy_map_name
hostname(config-pmap)#
where policy_map_name is the name of the policy map. The CLI enters the policy map configuration
mode and the prompt changes accordingly.
Step 6 Specify the class map, created in Step 2, that identifies the MGCP traffic. Use the class command to do
so, as follows:
hostname(config-pmap)# class class_map_name
hostname(config-pmap-c)#
where class_map_name is the name of the class map you created in Step 2. The CLI enters the policy
map class configuration mode and the prompt changes accordingly.
Step 7 Enable MGCP application inspection. To do so, use the inspect mgcp command, as follows:
hostname(config-pmap-c)# inspect mgcp [map_name]
hostname(config-pmap-c)#
where map_name is the MGCP map that you may have created in optional Step 4.
Step 8 Use the service-policy command to apply the policy map globally or to a specific interface, as follows:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-49
Chapter 20 Applying Application Layer Protocol Inspection
MGCP Inspection
where policy_map_name is the policy map you configured in Step 5. If you want to apply the policy map
to traffic on all the interfaces, use the global option. If you want to apply the policy map to traffic on a
specific interface, use the interface interface_ID option, where interface_ID is the name assigned to the
interface with the nameif command.
The FWSM begins inspecting MGCP traffic, as specified.
Example 20-10 shows how to identify MGCP traffic, define a MGCP map, define a policy, and apply the
policy to the outside interface. This creates a class map to match MGCP traffic on the default ports (2427
and 2727). This configuration allows call agents 10.10.11.5 and 10.10.11.6 to control gateway
10.10.10.115, and allows call agents 10.10.11.7 and 10.10.11.8 to control both gateways 10.10.10.116
and 10.10.10.117. The maximum number of MGCP commands that can be queued is 150. The service
policy is then applied to the outside interface.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-50 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
MGCP Inspection
The following is sample output from the show mgcp detail command.
hostname# show mgcp commands detail
1 in use, 1 most used, 200 maximum allowed
CRCX, idle: 0:00:10
Gateway IP host-pc-2
Transaction ID 2052
Endpoint name aaln/1
Call ID 9876543210abcdef
Connection ID
Media IP 192.168.5.7
Media port 6058
The following is sample output from the show mgcp sessions command.
hostname# show mgcp sessions
1 in use, 1 most used
Gateway IP host-pc-2, connection ID 6789af54c9, active 0:00:11
The following is sample output from the show mgcp sessions detail command.
hostname# show mgcp sessions detail
1 in use, 1 most used
Session active 0:00:14
Gateway IP host-pc-2
Call ID 9876543210abcdef
Connection ID 6789af54c9
Endpoint name aaln/1
Media lcl port 6166
Media rmt IP 192.168.5.7
Media rmt port 6058
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-51
Chapter 20 Applying Application Layer Protocol Inspection
MGCP Inspection
CallManager
M
150.0.0.210
vlan 90
150.0.0.254
R1 CallManager R2
FXS vlan 50 vlan 100
inside outside
IP f0/1
Voice port 50.100.100.2 100.100.100.2 f0/1 Voice port
port 3/0/0 port 1/0/0
Cisco 3745 Cisco 3745
IOS MGCP FireWall Service module IOS MGCP
Gateway (FWSM) Gateway
TFTP port is enabled so that IOS MGCP gateway can download configuration files from the Cisco
CallManager. MGCP control protocol over UDP port 2427 is enabled for pass through. MGCP backup
port TCP 2428 is enabled.
hostname(config-if)# access-list mgcp extended permit udp any host 150.0.0.210 eq 2428
hostname(config)# access-list mgcp extended permit udp any any eq 2427
hostname(config)# access-list mgcp extended permit udp any any eq tftp
Apply the above access lists on the inside and outside interfaces for incoming traffic:
hostname(config)# access-group mgcp in interface outside
hostname(config)# access-group mgcp in interface inside
Configure call agent (IP address of the Cisco CallManager) and the IP address of the IOS MGCP gateway
in an MGCP map:
hostname(config)# mgcp-map mgcp-inspect
hostname(config-mgcp-map)# call-agent 150.0.0.210 101
hostname(config-mgcp-map)# gateway 50.100.100.1 101
hostname(config-mgcp-map)# gateway 100.100.100.1 101
hostname(config-mgcp-map)# command-queue 150
hostname(config-mgcp-map)# exit
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-52 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
MGCP Inspection
Output of show conn in admin context, which shows the connections established between IOS MGCP
gateways and call agents:
hostname(config)# show conn
6in use, 48 most used
Network Processor 1 connections
Network Processor 2 connections
UDP out 150.0.0.210:2427 in 50.100.100.1:2427 idle 0:00:04 Bytes 5790 FLAGS - g
UDP out 100.100.100.1:2427 in 150.0.0.210:2427 idle 0:00:00 Bytes 8221 FLAGS - g
UDP out 100.100.100.1:18199 in 50.100.100.1:19247 idle 0:00:03 Bytes 14080 FLAGS - g
UDP out 100.100.100.1:18199 in 50.100.100.1:19246 idle 0:00:00 Bytes 4030838 FLAGS - g
TCP out 150.0.0.210:2428 in 50.100.100.1:12695 idle 0:00:04 Bytes 1346 FLAGS - UOI
TCP out 100.100.100.1:15954 in 150.0.0.210:2428 idle 0:00:00 Bytes 1346 FLAGS - UBOI
Multicast sessions:
Network Processor 1 connections
Network Processor 2 connections
IPV6 connections:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-53
Chapter 20 Applying Application Layer Protocol Inspection
NetBIOS Inspection
NetBIOS Inspection
NetBIOS inspection is enabled by default.
For information about NetBIOS inspection, see the inspect netbios command page in the Catalyst 6500
Series Switch and Cisco 7600 Series Router Firewall Services Module Command Reference.
PPTP Inspection
PPTP inspection is disabled by default.
For information about PPTP inspection, see the inspect pptp command page in the Catalyst 6500 Series
Switch and Cisco 7600 Series Router Firewall Services Module Command Reference.
RSH Inspection
RSH inspection is enabled by default.
For information about RSH inspection, see the inspect rsh command page in the Catalyst 6500 Series
Switch and Cisco 7600 Series Router Firewall Services Module Command Reference.
RTSP Inspection
This section describes how to enable RTSP application inspection and change the default port
configuration. This section includes the following topics:
• RTSP Inspection Overview, page 20-54
• Using RealPlayer, page 20-55
• Restrictions and Limitations, page 20-55
• Enabling and Configuring RTSP Inspection, page 20-55
Note For Cisco IP/TV, use RTSP TCP port 554 and TCP 8554.
RTSP applications use the well-known port 554 with TCP (rarely UDP) as a control channel. The FWSM
supports TCP only, in conformity with RFC 2326. This TCP control channel is used to negotiate the data
channels that is used to transmit audio/video traffic, depending on the transport mode that is configured
on the client.
The supported RDT transports are: rtp/avp, rtp/avp/udp, x-real-rdt, x-real-rdt/udp, and x-pn-tng/udp.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-54 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
RTSP Inspection
The FWSM parses SETUP response messages with a status code of 200. If the response message is
travelling inbound, the server is outside relative to the FWSM and dynamic channels need to be opened
for connections coming inbound from the server. If the response message is outbound, then the FWSM
does not need to open dynamic channels.
Because RFC 2326 does not require that the client and server ports must be in the SETUP response
message, the FWSM keeps state and remembers the client ports in the SETUP message. QuickTime
places the client ports in the SETUP message and then the server responds with only the server ports.
RTSP inspection does not support PAT or dual-NAT. Also, the FWSM cannot recognize HTTP cloaking,
which hides RTSP messages in the HTTP messages.
Using RealPlayer
When using RealPlayer, it is important to properly configure transport mode. For the FWSM, add an
access-list command from the server to the client or vice versa. For RealPlayer, change transport mode
by clicking Options > Preferences > Transport > RTSP Settings.
If using TCP mode on the RealPlayer, select the Use TCP to Connect to Server and Attempt to use
TCP for all content check boxes. On the FWSM, there is no need to configure the inspection engine.
If using UDP mode on the RealPlayer, select the Use TCP to Connect to Server and Attempt to use
UDP for static content check boxes, and for live content not available via Multicast. On the FWSM,
add an inspect rtsp port command.
Step 1 Determine the ports receiving RTSP SETUP messages behind the FWSM. The default ports are TCP
ports 554 and 8554.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-55
Chapter 20 Applying Application Layer Protocol Inspection
RTSP Inspection
Step 2 Create an access list to identify the RTSP SETUP messages. Use the access-list extended command to
do so, adding an ACE to match each port, as follows:
hostname(config)# access-list acl-name any any tcp eq port_number
Tip If you allow RTSP SETUP messages on one port only or on a contiguous range or ports, you can skip
creating the access list and, in Step 4, use the match port command instead of the match access-list
command.
Step 3 Create a class map or modify an existing class map to identify RTSP traffic. Use the class-map command
to do so, as follows:
hostname(config)# class-map class_map_name
hostname(config-cmap)#
where class_map_name is the name of the traffic class. When you enter the class-map command, the
CLI enters class map configuration mode.
Step 4 Identify traffic sent to the RTSP ports you determined in Step 1. To do so, use a match access-list
command, as follows:
hostname(config-cmap)# match access-list acl-name
Step 5 Create a policy map or modify an existing policy map that you want to use to apply the RTSP inspection
engine to RTSP traffic. To do so, use the policy-map command, as follows:
hostname(config-cmap)# policy-map policy_map_name
hostname(config-pmap)#
where policy_map_name is the name of the policy map. The CLI enters the policy map configuration
mode and the prompt changes accordingly.
Step 6 Specify the class map, created in Step 3, that identifies the RTSP traffic. Use the class command to do
so, as follows:
hostname(config-pmap)# class class_map_name
hostname(config-pmap-c)#
where class_map_name is the name of the class map you created in Step 2. The CLI enters the policy
map class configuration mode and the prompt changes accordingly.
Step 7 Enable RTSP application inspection. To do so, use the inspect sip command, as follows:
hostname(config-pmap-c)# inspect rtsp
hostname(config-pmap-c)#
Step 8 Use the service-policy command to apply the policy map globally or to a specific interface, as follows:
hostname(config-pmap-c)# service-policy policy_map_name [global | interface interface_ID]
hostname(config)#
where policy_map_name is the policy map you configured in Step 5. If you want to apply the policy map
to traffic on all the interfaces, use the global option. If you want to apply the policy map to traffic on a
specific interface, use the interface interface_ID option, where interface_ID is the name assigned to the
interface with the nameif command.
The FWSM begins inspecting RTSP traffic, as specified.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-56 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
SIP Inspection
Example 20-11 shows how to enable the RTSP inspection engine RTSP traffic on the default ports (554
and 8554). The service policy is then applied to the outside interface.
SIP Inspection
This section describes how to enable SIP application inspection and change the default port
configuration. This section includes the following topics:
• SIP Inspection Overview, page 20-57
• SIP Instant Messaging, page 20-58
• IP Address Privacy, page 20-59
• Enabling and Configuring SIP Inspection, page 20-59
• Configuring SIP Timeout Values, page 20-61
• Verifying and Monitoring SIP Inspection, page 20-61
• SIP Sample Configurations, page 20-62
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-57
Chapter 20 Applying Application Layer Protocol Inspection
SIP Inspection
– The port is missing in the contact field in the REGISTER message sent by the endpoint to the
proxy server.
• If a SIP device transmits a packet in which the SDP portion has an IP address in the owner/creator
field (o=) that is different than the IP address in the connection field (c=), the IP address in the o=
field may not be properly translated. This is due to a limitation in the SIP protocol, which does not
provide a port value in the o= field.
Note Only the Chat feature is currently supported. Whiteboard, File Transfer, and Application Sharing are not
supported. RTC Client 5.0 is not supported.
SIP inspection NATs the SIP text-based messages, recalculates the content length for the SDP portion of
the message, and recalculates the packet length and checksum. It dynamically opens media connections
for ports specified in the SDP portion of the SIP message as address/ports on which the endpoint should
listen.
SIP inspection has a database with indices CALL_ID/FROM/TO from the SIP payload. These indices
identify the call, the source, and the destination. This database contains the media addresses and media
ports found in the SDP media information fields and the media type. There can be multiple media
addresses and ports for a session. The FWSM opens RTP/RTCP connections between the two endpoints
using these media addresses/ports.
The well-known port 5060 must be used on the initial call setup (INVITE) message; however, subsequent
messages may not have this port number. The SIP inspection engine opens signaling connection
pinholes, and marks these connections as SIP connections. This is done for the messages to reach the
SIP application and be NATed.
As a call is set up, the SIP session is in the “transient” state until the media address and media port is
received from the called endpoint in a Response message indicating the RTP port the called endpoint
listens on. If there is a failure to receive the response messages within one minute, the signaling
connection is torn down.
Once the final handshake is made, the call state is moved to active and the signaling connection remains
until a BYE message is received.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-58 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
SIP Inspection
If an inside endpoint initiates a call to an outside endpoint, a media hole is opened to the outside interface
to allow RTP/RTCP UDP packets to flow to the inside endpoint media address and media port specified
in the INVITE message from the inside endpoint. Unsolicited RTP/RTCP UDP packets to an inside
interface does not traverse the FWSM, unless the FWSM configuration specifically allows it.
IP Address Privacy
When IP Address Privacy is enabled, if any two SIP endpoints participating in an IP phone call or instant
messaging session use the same internal firewall interface to contact their SIP proxy server on an
external firewall interface, all SIP signaling messages go through the SIP proxy server.
IP Address Privacy can be enabled when SIP over TCP or UDP application inspection is enabled. By
default, this feature is disabled. If IP Address Privacy is enabled, the FWSM does not translate internal
and external host IP addresses embedded in the TCP or UDP payload of inbound SIP traffic, ignoring
translation rules for those IP addresses.
You control whether this feature is enabled by using the ip-address-privacy command in SIP map
configuration mode.
Step 1 Determine the ports that SIP servers behind the FWSM listen to for SIP traffic. The default port is TCP
and UDP port 5060.
Step 2 Create a class map or modify an existing class map to identify SIP traffic. Use the class-map command
to do so, as follows:
hostname(config)# class-map class_map_name
hostname(config-cmap)#
where class_map_name is the name of the traffic class. When you enter the class-map command, the
CLI enters class map configuration mode.
Step 3 Identify traffic sent to the SIP ports you determined in Step 1. To do so, use a match port or match
access-list command.
If you need to identify UDP and TCP ports or if you need to identify two or more non-contiguous ports,
create an access list with the access-list extended command, add an ACE to match each port, and then
use the match access-list command. The following commands show how to use an access list to identify
TCP and UDP ports with an access list:
hostname(config)# access-list acl-name any any tcp eq port_number
hostname(config)# access-list acl-name any any udp eq port_number
hostname(config)# class-map class_map_name
hostname(config-cmap)# match access-list acl-name
If you need to identify a single port using a single protocol, use the match port command, as follows:
hostname(config-cmap)# match port {tcp | udp} port_number
where port_number is the only port listened to by SIP servers behind the FWSM.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-59
Chapter 20 Applying Application Layer Protocol Inspection
SIP Inspection
If you need to identify a range of contiguous ports for a single protocol, use match port command with
the range keyword, as follows:
hostname(config-cmap)# match port tcp range begin_port_number end_port_number
where begin_port_number is the lowest port in the range of SIP ports and end_port_number is the
highest port.
Step 4 (Optional) If you want to enable IP address privacy, perform the following steps:
a. Create a SIP map that will contain the parameters of SIP inspection. Use the sip-map command to
do so, as follows:
hostname(config-cmap)# sip-map map_name
hostname(config-sip-map)#
where map_name is the name of the SIP map. The CLI enters SIP map configuration mode.
b. Define the configuration of the SIP map by entering the following command:
hostname(config-sip-map)# ip-address-privacy
Step 5 Create a policy map or modify an existing policy map that you want to use to apply the SIP inspection
engine to the SIP traffic. To do so, use the policy-map command, as follows:
hostname(config-cmap)# policy-map policy_map_name
hostname(config-pmap)#
where policy_map_name is the name of the policy map. The CLI enters the policy map configuration
mode and the prompt changes accordingly.
Step 6 Specify the class map, created in Step 2, that identifies the SIP traffic. Use the class command to do so,
as follows:
hostname(config-pmap)# class class_map_name
hostname(config-pmap-c)#
where class_map_name is the name of the class map you created in Step 2. The CLI enters the policy
map class configuration mode and the prompt changes accordingly.
Step 7 Enable SIP application inspection. To do so, use the inspect sip command, as follows:
hostname(config-pmap-c)# inspect sip [map_name]
hostname(config-pmap-c)#
where map_name is the SIP map that you may have created in optional Step 4.
Step 8 Use the service-policy command to apply the policy map globally or to a specific interface, as follows:
hostname(config-pmap-c)# service-policy policy_map_name [global | interface interface_ID]
hostname(config)#
where policy_map_name is the policy map you configured in Step 5. If you want to apply the policy map
to traffic on all the interfaces, use the global option. If you want to apply the policy map to traffic on a
specific interface, use the interface interface_ID option, where interface_ID is the name assigned to the
interface with the nameif command.
The FWSM begins inspecting SIP traffic, as specified.
You enable the SIP inspection engine as shown in Example 20-12, which creates a class map to match
SIP traffic on the default port (5060). The service policy is then applied to the outside interface.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-60 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
SIP Inspection
This command configures the idle timeout after which a SIP control connection is closed.
To configure the timeout for the SIP media connection, use the following command:
hostname(config)# timeout sip_media hh:mm:ss
This command configures the idle timeout after which a SIP media connection is closed.
Note We recommend that you configure the pager command before entering the show sip command. If there
are a lot of SIP session records and the pager command is not configured, it takes a while for the show
sip command output to reach its end.
This sample shows two active SIP sessions on the FWSM (as shown in the Total field). Each call-id
represents a call.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-61
Chapter 20 Applying Application Layer Protocol Inspection
SIP Inspection
The first session, with the call-id [email protected], is in the state Call Init,
which means the session is still in call setup. Call setup is not complete until a final response to the call
has been received. For instance, the caller has already sent the INVITE, and maybe received a 100
Response, but has not yet seen the 200 OK, so the call setup is not complete yet. Any non-1xx response
message is considered a final response. This session has been idle for 1 second.
The second session is in the state Active, in which call setup is complete and the endpoints are
exchanging media. This session has been idle for 6 seconds.
Cisco CallManager
5.0.4-2000-1
M
100.100.100.100
vlan 100
100.100.100.1
CallManager
Configuring inside VLAN (VLAN 50) which connects to inside Cisco 7960 SIP IP Phone:
hostname(config)# hostname FWSM
hostname(config)# interface Vlan50
hostname(config-if)# nameif inside
hostname(config-if)# security-level 100
hostname(config-if)# ip address 50.100.100.1 255.255.255.0
hostname(config-if)# exit
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-62 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
SIP Inspection
Configuring outside VLAN (VLAN150) which connects to outside Cisco 7960 SIP IP Phone:
hostname(config)# interface Vlan150
hostname(config-if)# nameif outside
hostname(config-if)# security-level 0
hostname(config-if)# ip address 150.100.100.1 255.255.255.0
Configuring access list to enable TFTP download of configuration files from Cisco CallManager to
Cisco IP Phones and to allow SIP traffic to pass to Cisco CallManager from IP Phones:
hostname(config-if)# access-list voice extended permit udp any host 100.100.100.100 eq
tftp
hostname(config)# access-list voice extended permit udp any host 100.100.100.100 eq sip
The following is the show conn output from a call made from an inside phone to an outside phone:
hostname# show conn
13 in use, 21 most used
Network Processor 1 connections
Network Processor 2 connections
UDP out 100.100.100.100:5060 in 50.100.100.111:50074 idle 0:01:15 Bytes 5153 FLAGS - T
UDP out 100.100.100.100:5060 in 50.100.100.111:50081 idle 0:03:09 Bytes 313 FLAGS - T
UDP out 100.100.100.100:5060 in 50.100.100.111:50082 idle 0:03:05 Bytes 427 FLAGS - T
UDP out 100.100.100.100:5060 in 50.100.100.111:50083 idle 0:03:02 Bytes 427 FLAGS - T
UDP out 150.100.100.116:50879 in 100.100.100.100:5060 idle 0:00:51 Bytes 3646 FLAGS - T
UDP out 150.100.100.116:50881 in 100.100.100.100:5060 idle 0:02:46 Bytes 313 FLAGS - T
UDP out 150.100.100.116:0 in 100.100.100.100:5060 idle 0:02:35 Bytes 18 FLAGS - t
UDP out 150.100.100.116:29392 in 50.100.100.111:26674 idle 0:00:00 Bytes 3345882 FLAGS - m
UDP out 100.100.100.100:0 in 50.100.100.111:5060 idle 0:01:15 Bytes 18 FLAGS - t
UDP out 150.100.100.116:5060 in 100.100.100.100:0 idle 0:00:51 Bytes 18 FLAGS - t
Multicast sessions:
Network Processor 1 connections
Network Processor 2 connections
IPv6 connections:
inside
4085260002
IP
outside CallManager
50.100.100.115
vlan 50 vlan 150
12.0.0.10 12.0.0.5 M
4085260008 100.100.100.1 100.100.100.100
FWSM
IP
191990
50.100.100.118
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-63
Chapter 20 Applying Application Layer Protocol Inspection
SIP Inspection
Vlan 12 is an outside Vlan that routes all packets to 30.x.x.x network back to the FWSM with the next
hop IP address set to 12.0.0.10. This is done by configuring policy-based routing at the up-stream router.
hostname(config-if)# interface Vlan50
hostname(config-if)# nameif inside
hostname(config-if)# security-level 100
hostname(config-if)# ip address 50.100.100.7 255.255.255.0
The two phones 4085260002 and 4085260008 are used in the same 50.100.100.0 subnet.
hostname(config)# access-list voice extended permit udp any any eq sip
hostname(config)# access-list voice extended permit tcp any any eq sip
hostname(config)# access-list voice extended permit udp any any eq tftp
hostname(config)# !
hostname(config)# sip-map privacy
hostname(config-if)# ip-address-privacy
hostname(config)# !
hostname(config)# nat-control
hostname(config)# static (inside, outside) 30.100.100.115 50.100.100.115 netmask
255.255.255.255
hostname(config)# static (inside, outside) 30.100.100.118 50.100.100.118 netmask
255.255.255.255
Each phone IP address is translated to an external dummy IP address that is not in a network connected
to the FWSM. The translated IP address should not be in a network connected to the FWSM.
hostname(config)# access-group voice in interface outside
hostname(config)# access-group voice in interface inside
hostname(config)# route outside 30.0.0.0 255.0.0.0 12.0.0.5 1
Configure route to 30.0.0.0 via 12.0.0.5 (IP address of the next hop router):
hostname(config)# route outside 100.0.0.0 255.0.0.0 12.0.0.5 1
hostname(config)# !
hostname(config)# policy-map global_policy
hostname(config-pmap)# class inspection_default
hostname(config-pmap-c)# inspect dns maximum-length 512
hostname(config-pmap-c)# inspect ftp
hostname(config-pmap-c)# inspect h323 h225
hostname(config-pmap-c)# inspect h323 ras
hostname(config-pmap-c)# inspect rsh
hostname(config-pmap-c)# inspect smtp
hostname(config-pmap-c)# inspect sqlnet
hostname(config-pmap-c)# inspect skinny
hostname(config-pmap-c)# inspect sunrpc
hostname(config-pmap-c)# inspect xdmcp
hostname(config-pmap-c)# inspect netbios
hostname(config-pmap-c)# inspect tftp
hostname(config-pmap-c)# inspect sip privacy
Router configuration:
hostname(config)# interface GigabitEthernet0/2
hostname(config-if)# ip address 12.0.0.5 255.0.0.0
hostname(config-if)# ip policy route-map privacy
hostname(config-if)# duplex auto
hostname(config-if)# speed auto
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-64 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
Skinny (SCCP) Inspection
Configured route to 30.0.0.0 and 50.0.0.0 reachable via 12.0.0.10 (IP address of FWSM).
hostname(config)# access-list 10 permit ip any 30.0.0.0 0.255.255.255
hostname(config)# !
hostname(config)# route-map privacy permit 10
hostname(config-if)# match ip address 100
hostname(config-if)# set ip next-hop 12.0.0.10
Route map is configured to capture any packets destined for 30.0.0.0 network to be sent to 12.0.0.10 (IP
address of FWSM).
The show conn output at the FWSM shows that voice traffic is getting switched via the FWSM module
and hiding each phone IP address. RTP traffic is not switched via the same subnet. Instead it is getting
routed via the FWSM.
hostname(config)# show conn
6 in use, 28 most used
Network Processor 1 connections
UDP out 100.100.100.100:5060 in 50.100.100.118:5060 idle 0:00:21 Bytes 67358 FLAGS - T
UDP out 30.100.100.115:16384 in 50.100.100.118:16384 idle 0:00:00 Bytes 6042324 FLAGS - m
UDP out 100.100.100.100:0 in 50.100.100.118:5060 idle 0:00:21 Bytes 18 FLAGS - t
Network Processor 2 connections
UDP out 100.100.100.100:5060 in 50.100.100.115:5060 idle 0:00:25 Bytes 80181 FLAGS - T
UDP out 30.100.100.118:16384 in 50.100.100.115:16384 idle 0:00:00 Bytes 6047556 FLAGS - m
UDP out 100.100.100.100:0 in 50.100.100.115:5060 idle 0:00:25 Bytes 33 FLAGS - t
Multicast sessions:
Network Processor 1 connections
Network Processor 2 connections
IPv6 connections:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-65
Chapter 20 Applying Application Layer Protocol Inspection
Skinny (SCCP) Inspection
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-66 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
Skinny (SCCP) Inspection
Note The FWSM supports stateful failover of SCCP calls except for calls that are in the middle of call setup.
Step 1 Name the traffic class by entering the following command in global configuration mode:
hostname(config)# class-map class_map_name
Replace class_map_name with the name of the traffic class, for example:
hostname(config)# class-map sccp_port
When you enter the class-map command, the CLI enters the class map configuration mode, and the
prompt changes, as in the following example:
hostname(config-cmap)#
Step 2 In the class map configuration mode, define the match command, as in the following example:
hostname(config-cmap)# match port tcp eq 2000
hostname(config-cmap)# exit
hostname(config)#
To assign a range of continuous ports, enter the range keyword, as in the following example:
hostname(config-cmap)# match port tcp range 2000-2010
To assign more than one non-contiguous port for SCCP inspection, enter the access-list extended
command and define an ACE to match each port. Then enter the match command to associate the access
lists with the SCCP traffic class.
Step 3 Name the policy map by entering the following command:
hostname(config)# policy-map policy_map_name
Replace policy_map_name with the name of the policy map, as in the following example:
hostname(config)# policy-map sample_policy
The CLI enters the policy map configuration mode and the prompt changes accordingly, as follows:
hostname(config-pmap)#
Step 4 Specify the traffic class defined in Step 1 to be included in the policy map by entering the following
command:
hostname(config-pmap)# class class_map_name
For example, the following command assigns the sccp_port traffic class to the current policy map:
hostname(config-pmap)# class sccp_port
The CLI enters the policy map class configuration mode and the prompt changes accordingly, as follows:
hostname(config-pmap-c)#
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-67
Chapter 20 Applying Application Layer Protocol Inspection
Skinny (SCCP) Inspection
Step 5 (Optional) To change the default port used by the FWSM for receiving SCCP traffic, enter the following
command:
hostname(config-pmap-c)# inspect skinny
Step 6 Return to policy map configuration mode by entering the following command:
hostname(config-pmap-c)# exit
hostname(config-pmap)#
Step 8 Apply the policy map globally or to a specific interface by entering the following command:
hostname(config)# service-policy policy_map_name [global | interface interface_ID
Replace policy_map_name with the policy map you configured in Step 3, and identify all the interfaces
with the global option or a specific interface using the name assigned with the nameif command.
For example, the following command applies the sample_policy to the outside interface:
hostname(config)# service-policy sample_policy interface outside
The following command applies the sample_policy to the all the FWSM interfaces:
hostname(config)# service-policy sample_policy global
You enable the SCCP inspection engine as shown in Example 20-13, which creates a class map to match
SCCP traffic on the default port (2000). The service policy is then applied to the outside interface.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-68 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
Skinny (SCCP) Inspection
The output indicates that a call has been established between two internal Cisco IP Phones. The RTP
listening ports of the first and second phones are UDP 22948 and 20798 respectively.
The following is sample output from the show xlate debug command for these Skinny connections:
hostname# show xlate debug
2 in use, 2 most used
Flags: D - DNS, d - dump, I - identity, i - inside, n - no random,
r - portmap, s - static
NAT from inside:10.0.0.11 to outside:172.18.1.11 flags si idle 0:00:16 timeout 0:05:00
NAT from inside:10.0.0.22 to outside:172.18.1.22 flags si idle 0:00:14 timeout 0:05:00
CallManager
M
150.0.0.210
vlan 90
150.0.0.254
CallManager
vlan 50 inside outside vlan 100
IP IP
50.100.100.2 100.100.100.2
191989
Cisco 7960 Cisco 7960
Skinny phone Skinny phone
FireWall Service module
(FWSM)
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-69
Chapter 20 Applying Application Layer Protocol Inspection
SMTP and Extended SMTP Inspection
TFTP port is enabled for the IP address of the CallManager so that phones on the inside and outside can
download configuration files from the CallManager for initial setup. TCP Port 2000 is enabled for the
IP address of the CallManager so that skinny signaling can pass the module between the phone and the
CallManager through firewall module.
hostname(config-if)# access-list voice extended permit udp any host 150.0.0.210 eq tftp
hostname(config)# access-list voice extended permit tcp any host 150.0.0.210 eq 2000
Apply the above access lists on the inside and outside interfaces for incoming traffic:
hostname(config)# access-group voice in interface outside
hostname(config)# access-group voice in interface inside
Output of show skinny when Skinny phone call through the firewall module is active:
hostname(config)# show skinny
LOCAL FOREIGN STATE
---------------------------------------------------------------------
1 50.0.0.2/49723 150.0.0.210/2000 1
AUDIO 50.0.0.2/24002 100.0.0.211/19212
2 150.0.0.210/2000 100.0.0.211/49692 1
AUDIO 50.0.0.2/24002 100.0.0.211/19212
Output of show conn when there is one active phone call between Skinny phones, each reachable
through inside and outside interfaces. Skinny connections are marked by a k flag.
hostname(config)# show conn
3 in use, 26 most used
Network Processor 1 connections
TCP out 150.0.0.210:2000 in 50.0.0.2:49723 idle 0:00:07 Bytes 10232 FLAGS - UOI
Network Processor 2 connections
TCP out 150.0.0.211:49692 in 150.0.0.210:49723 idle 0:00:27 Bytes 12394 FLAGS - UBOI
UDP out 150.0.0.211:19212 in 50.0.0.2:24002 idle 0:00:00 Bytes 3575654 FLAGS - K
Multicast sessions:
Network Processor 1 connections
Network Processor 2 connections
IPV6 connections:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-70 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
SMTP and Extended SMTP Inspection
Note If a policy map contains both the inspect smtp command and the inspect esmtp command, only the first
command listed in the policy map is applied to matching traffic.
Inspection changes the characters in the server SMTP banner to asterisks except for the “2”, “0”, “0”
characters. Carriage return (CR) and linefeed (LF) characters are ignored.
With SMTP inspection enabled, a Telnet session used for interactive SMTP may hang if the following
rules are not observed: SMTP commands must be at least four characters in length; must be terminated
with carriage return and line feed; and must wait for a response before issuing the next reply.
An SMTP server responds to client requests with numeric reply codes and optional human-readable
strings. SMTP application inspection controls and reduces the commands that the user can use as well
as the messages that the server returns. SMTP inspection performs three primary tasks:
• Restricts SMTP requests to seven basic SMTP commands and eight extended commands.
• Monitors the SMTP command-response sequence.
• Generates an audit trail—Audit record 108002 is generated when invalid character embedded in the
mail address is replaced. For more information, see RFC 821.
SMTP inspection monitors the command and response sequence for the following anomalous signatures:
• Truncated commands.
• Incorrect command termination (not terminated with <CR><LR>).
• The MAIL and RCPT commands specify who are the sender and the receiver of the mail. Mail
addresses are scanned for strange characters. The pipeline character (|) is deleted (changed to a blank
space) and “<” ‚”>” are only allowed if they are used to define a mail address (“>” must be preceded
by “<”).
• Unexpected transition by the SMTP server.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-71
Chapter 20 Applying Application Layer Protocol Inspection
SMTP and Extended SMTP Inspection
• For unknown commands, the FWSM changes all the characters in the packet to X. In this case, the
server generates an error code to the client. Because of the change in the packed, the TCP checksum
has to be recalculated or adjusted.
• TCP stream editing.
• Command pipelining.
Step 1 Determine the ports that SMTP servers behind the FWSM listen to for SMTP traffic. The default port is
TCP port 25 but your SMTP servers may be configured to listen to other ports.
Step 2 Create a class map or modify an existing class map to identify SMTP traffic. Use the class-map
command to do so, as follows:
hostname(config)# class-map class_map_name
hostname(config-cmap)#
where class_map_name is the name of the traffic class. When you enter the class-map command, the
CLI enters class map configuration mode.
Step 3 Use a match command to identify traffic sent to the SMTP ports you determined in Step 1.
If the port mapper process listens to a single port, you can use the match port command to identify
traffic sent to that port, as follows:
hostname(config-cmap)# match port tcp eq port_number
where port_number is the port to which the port mapper process listens. If you need to assign a range of
contiguous ports, use the range keyword, as in the following example:
hostname(config-cmap)# match port tcp range begin_port_number end_port_number
Tip To identify two or more non-contiguous ports, enter the access-list extended command and
define an ACE to match each port. Then, rather than the match port command, use the match
access-list command to associate the access list with the SMTP traffic class.
Step 4 Create a policy map that you want to use to apply the SMTP inspection engine to the SMTP traffic. To
do so, use the policy-map command, as follows:
hostname(config-cmap)# policy-map policy_map_name
hostname(config-pmap)#
where policy_map_name is the name of the policy map. The CLI enters the policy map configuration
mode and the prompt changes accordingly.
Step 5 Specify the class map, created in Step 2, that identifies the SMTP traffic. Use the class command to do
so, as follows:
hostname(config-pmap)# class class_map_name
hostname(config-pmap-c)#
where class_map_name is the name of the class map you created in Step 2. The CLI enters the policy
map class configuration mode and the prompt changes accordingly.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-72 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
SNMP Inspection
Note For information about the differences between the inspect smtp and inspect esmtp commands,
see the “SMTP and Extended SMTP Inspection Overview” section on page 20-71.
Step 7 Use the service-policy command to apply the policy map globally or to a specific interface, as follows:
hostname(config-pmap-c)# service-policy policy_map_name [global | interface interface_ID]
hostname(config)#
where policy_map_name is the policy map you configured in Step 4. If you want to apply the policy map
to traffic on all the interfaces, use the global option. If you want to apply the policy map to traffic on a
specific interface, use the interface interface_ID option, where interface_ID is the name assigned to the
interface with the nameif command.
The FWSM begins inspecting SMTP traffic, as specified.
SNMP Inspection
This section describes how to enable SNMP application inspection and change the default port
configuration. This section includes the following topics:
• SNMP Inspection Overview, page 20-73
• Enabling and Configuring SNMP Application Inspection, page 20-74
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-73
Chapter 20 Applying Application Layer Protocol Inspection
SNMP Inspection
Step 1 Determine the ports that network devices behind the FWSM listen to for SNMP traffic. The default ports
are TCP ports 161 and 162.
Step 2 Create a class map or modify an existing class map to identify SNMP traffic. Use the class-map
command to do so, as follows:
hostname(config)# class-map class_map_name
hostname(config-cmap)#
where class_map_name is the name of the traffic class. When you enter the class-map command, the
CLI enters class map configuration mode.
Step 3 Use a match command to identify traffic sent to the SNMP ports you determined in Step 1.
If you need to assign a range of contiguous ports, use the range keyword, as in the following example:
hostname(config-cmap)# match port tcp range begin_port_number end_port_number
where begin_port_number is the lowest port in the range of SNMP ports and end_port_number is the
highest port.
Tip To identify two or more non-contiguous ports, enter the access-list extended command and
define an ACE to match each port. Then, rather than the match port command, use the match
access-list command to associate the access list with the SNMP traffic class.
Step 4 Create an SNMP map that will contain the parameters of SNMP inspection. Use the snmp-map
command to do so, as follows:
hostname(config-cmap)# snmp-map map_name
hostname(config-snmp-map)#
where map_name is the name of the SNMP map. The CLI enters SNMP map configuration mode.
Step 5 Specify the versions of SNMP permitted by the SNMP map. To do so, use the deny version command
to disallow the versions that you do not want to permit, as follows:
hostname(config-snmp-map)# deny version version
hostname(config-snmp-map)#
where version with an SNMP version that you want to restrict. Valid values of version are 1, 2, 2c, and
3. You can enter as many deny version commands as needed.
Step 6 Create a policy map or modify an existing policy map that you want to use to apply the SNMP inspection
engine to the SNMP traffic. To do so, use the policy-map command, as follows:
hostname(config-cmap)# policy-map policy_map_name
hostname(config-pmap)#
where policy_map_name is the name of the policy map. The CLI enters the policy map configuration
mode and the prompt changes accordingly.
Step 7 Specify the class map, created in Step 2, that identifies the SNMP traffic. Use the class command to do
so, as follows:
hostname(config-pmap)# class class_map_name
hostname(config-pmap-c)#
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-74 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
SQL*Net Inspection
where class_map_name is the name of the class map you created in Step 2. The CLI enters the policy
map class configuration mode and the prompt changes accordingly.
Step 8 Enable SNMP application inspection. To do so, use the inspect snmp command, as follows:
hostname(config-pmap-c)# inspect snmp snmp_map_name
hostname(config-pmap-c)#
where policy_map_name is the policy map you configured in Step 6. If you want to apply the policy map
to traffic on all the interfaces, use the global option. If you want to apply the policy map to traffic on a
specific interface, use the interface interface_ID option, where interface_ID is the name assigned to the
interface with the nameif command.
The FWSM begins inspecting SNMP traffic, as specified.
Example 20-15 enables SNMP application inspection on traffic sent to TCP ports 161 and 162 from the
outside interface:
SQL*Net Inspection
SQL*Net inspection is enabled by default.
For information about SQL*Net inspection, see the inspect sqlnet command page in the Catalyst 6500
Series Switch and Cisco 7600 Series Router Firewall Services Module Command Reference.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-75
Chapter 20 Applying Application Layer Protocol Inspection
Sun RPC Inspection
Note To enable or configure Sun RPC inspection over UDP, you do not have to define a separate traffic class
or a new policy map. You simply add the inspect sunrpc command into a policy map whose traffic class
is defined by the default traffic class. An example of this configuration is shown in Example 20-17 on
page 20-78.
To enable Sun RPC inspection or change the default port used for receiving Sun RPC traffic using TCP,
perform the following steps:
Step 1 Determine the port or ports that the port mapper process listens to. While this is most often port 111, it
can differ between operating systems and implementations.
Step 2 Create a class map or modify an existing class map to identify Sun RPC traffic. Use the class-map
command to do so, as follows:
hostname(config)# class-map class_map_name
hostname(config-cmap)#
where class_map_name is the name of the traffic class. When you enter the class-map command, the
CLI enters class map configuration mode.
Step 3 Use a match command to identify traffic sent to the port or ports that you determined in Step 1.
If the port mapper process listens to a single port, you can use the match port command to identify
traffic sent to that port, as follows:
hostname(config-cmap)# match port tcp eq port_number
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-76 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
Sun RPC Inspection
where port_number is the port to which the port mapper process listens. If you need to assign a range of
contiguous ports, use the range keyword, as in the following example:
hostname(config-cmap)# match port tcp range begin_port_number end_port_number
Tip To identify two or more non-contiguous ports, enter the access-list extended command and
define an ACE to match each port. Then, rather than the match port command, use the match
access-list command to associate the access list with the Sun RPC traffic class.
Step 4 Create a policy map or modify an existing policy map that you want to use to apply the Sun RPC
inspection engine to the Sun RPC traffic. To do so, use the policy-map command, as follows:
hostname(config-cmap)# policy-map policy_map_name
hostname(config-pmap)#
where policy_map_name is the name of the policy map. The CLI enters the policy map configuration
mode and the prompt changes accordingly.
Step 5 Specify the class map, created in Step 2, that identifies the Sun RPC traffic. Use the class command to
do so, as follows:
hostname(config-pmap)# class class_map_name
hostname(config-pmap-c)#
where class_map_name is the name of the class map you created in Step 2. The CLI enters the policy
map class configuration mode and the prompt changes accordingly.
Step 6 Enable Sun RPC application inspection. To do so, enter the following command:
hostname(config-pmap-c)# inspect sunrpc
hostname(config-pmap-c)#
Step 7 Use the service-policy command to apply the policy map globally or to a specific interface, as follows:
hostname(config-pmap-c)# service-policy policy_map_name [global | interface interface_ID]
hostname(config)#
where policy_map_name is the policy map you configured in Step 4. If you want to apply the policy map
to traffic on all the interfaces, use the global option. If you want to apply the policy map to traffic on a
specific interface, use the interface interface_ID option, where interface_ID is the name assigned to the
interface with the nameif command.
The FWSM begins inspecting Sun RPC traffic, as specified.
The following example enables Sun RPC application inspection on traffic sent to TCP port 111 from the
outside interface:
hostname(config)# class-map sunrpc_port
hostname(config-cmap)# match port tcp eq 111
hostname(config-cmap)# policy-map sample_policy
hostname(config-pmap)# class sunrpc_port
hostname(config-pmap-c)# inspect sunrpc
hostname(config-pmap-c)# service-policy sample_policy interface outside
hostname(config)#
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-77
Chapter 20 Applying Application Layer Protocol Inspection
Sun RPC Inspection
Example 20-17 enables Sun RPC over UDP, which you do by adding the inspect sunrpc command to a
policy map that applies actions to the default traffic class:
This command specifies that the pinhole that was opened by Sun RPC application inspection will be
closed after 30 minutes. In this example, the Sun RPC server is on the inside interface using TCP port
111. You can also specify UDP, a different port number, or a range of ports. To specify a range of ports,
separate the starting and ending port numbers in the range with a hyphen (for example, 111-113).
The service type identifies the mapping between a specific service type and the port number used for the
service. To determine the service type, which in this example is 100003, use the sunrpcinfo command
at the UNIX or Linux command line on the Sun RPC server machine.
To clear the Sun RPC configuration, enter the following command.
hostname(config)# clear configure sunrpc-server
This removes the configuration performed using the sunrpc-server command. The sunrpc-server
command allows pinholes to be created with a specified timeout.
To clear the active Sun RPC services, enter the following command:
hostname(config)# clear sunrpc-server active
This clears the pinholes open because Sun RPC application inspection enabled the traffic based on
service requests to the port mapper service.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-78 OL-8123-01
Chapter 20 Applying Application Layer Protocol Inspection
Sun RPC Inspection
To display the information about the Sun RPC service table configuration, enter the show
running-config sunrpc-server command. The following is sample output from the show
running-config sunrpc-server command:
hostname(config)# show running-config sunrpc-server
sunrpc-server inside 192.168.100.2 255.255.255.255 service 100003 protocol UDP port 111
timeout 0:30:00
sunrpc-server inside 192.168.100.2 255.255.255.255 service 100005 protocol UDP port 111
timeout 0:30:00
This output shows that a timeout interval of 30 minutes is configured on UDP port 111 for the Sun RPC
server with the IP address 192.168.100.2 on the inside interface.
To display the pinholes open for Sun RPC services, enter the show sunrpc-server active command. The
following is sample output from show sunrpc-server active command:
hostname# show sunrpc-server active
LOCAL FOREIGN SERVICE TIMEOUT
-----------------------------------------------
1 209.165.200.5/0 192.168.100.2/2049 100003 0:30:00
2 209.165.200.5/0 192.168.100.2/2049 100003 0:30:00
3 209.165.200.5/0 192.168.100.2/647 100005 0:30:00
4 209.165.200.5/0 192.168.100.2/650 100005 0:30:00
The entry in the LOCAL column shows the IP address of the client or server on the inside interface, while
the value in the FOREIGN column shows the IP address of the client or server on the outside interface.
To view information about the Sun RPC services running on a Sun RPC server, enter the rpcinfo -p
command from the Linux or UNIX server command line. The following is sample output from the
rpcinfo -p command:
sunrpcserver:~ # rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 632 status
100024 1 tcp 635 status
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100021 1 udp 32771 nlockmgr
100021 3 udp 32771 nlockmgr
100021 4 udp 32771 nlockmgr
100021 1 tcp 32852 nlockmgr
100021 3 tcp 32852 nlockmgr
100021 4 tcp 32852 nlockmgr
100005 1 udp 647 mountd
100005 1 tcp 650 mountd
100005 2 udp 647 mountd
100005 2 tcp 650 mountd
100005 3 udp 647 mountd
100005 3 tcp 650 mountd
In this output, port 647 corresponds to the mountd daemon running over UDP. The mountd process
would more commonly be using port 32780, but it uses TCP port 650 in this example.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 20-79
Chapter 20 Applying Application Layer Protocol Inspection
TFTP Inspection
TFTP Inspection
TFTP inspection is enabled by default.
For information about TFTP inspection, see the inspect tftp command page in the Catalyst 6500 Series
Switch and Cisco 7600 Series Router Firewall Services Module Command Reference.
XDMCP Inspection
XDMCP inspection is enabled by default; however, the XDMCP inspection engine is dependent upon
proper configuration of the established command.
For information about XDMCP inspection, see the established and inspect pptp and command pages
in the Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Command
Reference.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
20-80 OL-8123-01
C H A P T E R 21
Configuring Management Access
This chapter describes how to access the FWSM for system management through Telnet, SSH, HTTPS,
and VPN. It also describes how to authenticate and authorize users.
This chapter includes the following sections:
• Allowing Telnet Access, page 21-1
• Allowing SSH Access, page 21-2
• Allowing HTTPS Access for ASDM, page 21-4
• Allowing a VPN Management Connection, page 21-4
• Allowing ICMP to and from the FWSM, page 21-10
• AAA for System Administrators, page 21-11
Note To access the FWSM interface for management access, you do not also need an access list allowing the
host IP address. You only need to configure management access according to the sections in this chapter.
Note Please note that if you have two or more concurrent TELNET or SSH sessions and one of the sessions
is at the More prompt, the other sessions may hang until the More prompt is dismissed. To disable the
More prompt and avoid this situation, enter the pager lines 0 command.
Step 1 To identify the IP addresses from which the FWSM accepts connections, enter the following command
for each address or subnet:
hostname(config)# telnet source_IP_address mask source_interface
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 21-1
Chapter 21 Configuring Management Access
Allowing SSH Access
If there is only one interface, you can configure Telnet to access that interface as long as the interface
has a security level of 100.
Step 2 (Optional) To set the duration for how long a Telnet session can be idle before the FWSM disconnects
the session, enter the following command:
hostname(config)# telnet timeout minutes
Set the timeout from 1 to 1440 minutes. The default is 5 minutes. The default duration is too short in
most cases and should be increased until all pre-production testing and troubleshooting has been
completed.
For example, to let a host on the inside interface with an address of 192.168.1.2 access the FWSM, enter
the following command:
hostname(config)# telnet 192.168.1.2 255.255.255.255 inside
hostname(config)# telnet timeout 30
To allow all users on the 192.168.3.0 network to access the FWSM on the inside interface, enter the
following command:
hostname(config)# telnet 192.168.3.0 255.255.255.0 inside
Note Please note that if you have two or more concurrent TELNET or SSH sessions and one of the sessions
is at the More prompt, the other sessions may hang until the More prompt is dismissed. To disable the
More prompt and avoid this situation, enter the pager lines 0 command.
SSH is an application running on top of a reliable transport layer, such as TCP/IP, that provides strong
authentication and encryption capabilities. The FWSM supports the SSH remote shell functionality
provided in SSH Versions 1 and 2 and supports DES and 3DES ciphers.
Note XML management over SSL and SSH are not supported.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
21-2 OL-8123-01
Chapter 21 Configuring Management Access
Allowing SSH Access
Step 1 To generate an RSA key pair, which is required for SSH, enter the following command:
hostname(config)# crypto key generate rsa modulus modulus_size
The modulus (in bits) is 512, 768, 1024, or 2048. The larger the key modulus size you specify, the longer
it takes to generate an RSA. We recommend a value of 1024.
Step 2 To save the RSA keys to persistent Flash memory, enter the following command:
hostname(config)# write memory
Step 3 To identify the IP addresses from which the FWSM accepts connections, enter the following command
for each address or subnet:
hostname(config)# ssh source_IP_address mask source_interface
The FWSM accepts SSH connections from all interfaces, including the one with the lowest security
level.
Step 4 (Optional) To set the duration for how long an SSH session can be idle before the FWSM disconnects
the session, enter the following command:
hostname(config)# ssh timeout minutes
Set the timeout from 1 to 60 minutes. The default is 5 minutes. The default duration is too short in most
cases and should be increased until all pre-production testing and troubleshooting has been completed.
Step 5 (Optional) To restrict the version of SSH accepted by the FWSM, enter the following command. By
default, the FWSM accepts both versions.
hostname(config)# ssh version {1 | 2)
For example, to generate RSA keys and let a host on the inside interface with an address of 192.168.1.2
access the FWSM, enter the following command:
hostname(config)# crypto key generate rsa modulus 1024
hostname(config)# write mem
hostname(config)# ssh 192.168.1.2 255.255.255.255 inside
hostname(config)# ssh 192.168.1.2 255.255.255.255 inside
hostname(config)# ssh timeout 30
To allow all users on the 192.168.3.0 network to access the FWSM on the inside interface, the following
command:
hostname(config)# ssh 192.168.3.0 255.255.255.0 inside
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 21-3
Chapter 21 Configuring Management Access
Allowing HTTPS Access for ASDM
When starting an SSH session, a dot (.) displays on the FWSM console before the SSH user
authentication prompt appears, as follows:
hostname(config)# .
The display of the dot does not affect the functionality of SSH. The dot appears at the console when
generating a server key or decrypting a message using private keys during SSH key exchange before user
authentication occurs. These tasks can take up to two minutes or longer. The dot is a progress indicator
that verifies that the FWSM is busy and has not hung.
Step 1 To identify the IP addresses from which the FWSM accepts HTTPS connections, enter the following
command for each address or subnet:
hostname(config)# http source_IP_address mask source_interface
For example, to enable the HTTPS server and let a host on the inside interface with an address of
192.168.1.2 access ASDM, enter the following commands:
hostname(config)# http server enable
hostname(config)# http 192.168.1.2 255.255.255.255 inside
To allow all users on the 192.168.3.0 network to access ASDM on the inside interface, enter the
following command:
hostname(config)# http 192.168.3.0 255.255.255.0 inside
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
21-4 OL-8123-01
Chapter 21 Configuring Management Access
Allowing a VPN Management Connection
In routed mode, the FWSM can also accept connections from VPN clients, either hosts running the Cisco
VPN client, or VPN concentrators such as the Cisco PIX firewall or Cisco IOS router running the Easy
VPN client. Unlike a site-to-site tunnel, you do not know in advance the IP address of the client. Instead,
you rely on client authentication. Transparent firewall mode does not support remote clients. Transparent
mode does support site-to-site tunnels.
The FWSM can support 5 concurrent IPSec connections, with a maximum of 10 concurrent connections
divided between all contexts. You can control the number of IPSec sessions allowed per context using
resource classes. (See the “Configuring a Class” section on page 4-14.)
This section describes the following topics:
• Configuring Basic Settings for All Tunnels, page 21-5
• Configuring VPN Client Access, page 21-6
• Configuring a Site-to-Site Tunnel, page 21-9
Step 1 To set the IKE encryption algorithm, enter the following command:
hostname(config)# isakmp policy priority encryption {des | 3des}
Group 1 is 768 bits, and Group 2 is 1024 bits (and therefore more secure).
Step 3 To set the authentication algorithm, enter the following command:
hostname(config)# isakmp policy priority hash {md5 | sha}
You can alternatively use certificates instead of a shared key by specifying the rsa-sig option. See the
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Command
Reference for more information about this method.
Step 5 To enable IKE on the tunnel interface, enter the following command:
hostname(config)# isakmp enable interface_name
Step 6 To set the authentication and encryption methods used for IPSec tunnels in a transform set, enter the
following command:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 21-5
Chapter 21 Configuring Management Access
Allowing a VPN Management Connection
Although you can specify authentication alone, or encryption alone, these methods are not secure.
You refer to this transform set when you configure the VPN client group or a site-to-site tunnel.
You can refer to up to 6 transform sets for the tunnel, and the sets are checked in order until the
transforms match.
The authentication and encryption algorithms of this transform typically match the IKE policy
(isakmp policy commands). For site-to-site tunnels, this transform must match the peer transform.
Authentication options include the following (from most secure to least secure):
• esp-sha-hmac
• esp-md5-hmac
Encryption options include the following (from most secure to least secure):
• esp-aes-256
• esp-aes-192
• esp-aes
• esp-3des
• esp-des
Note esp-null (no encryption) is for testing purposes only.
For example, to configure the IKE policy and the IPSec transform sets, enter the following commands:
hostname(config)# isakmp policy 1 authentication pre-share
hostname(config)# isakmp policy 1 encryption 3des
hostname(config)# isakmp policy 1 group 2
hostname(config)# isakmp policy 1 hash sha
hostname(config)# isakmp enable outside
hostname(config)# crypto ipsec transform-set vpn_client esp-3des esp-sha-hmac
hostname(config)# crypto ipsec transform-set site_to_site esp-3des ah-sha-hmac
Step 1 To specify the transform sets (defined in the “Configuring Basic Settings for All Tunnels” section on
page 21-5) allowed for client tunnels, enter the following command:
hostname(config)# crypto dynamic-map dynamic_map_name priority set transform-set
transform_set1 [transform_set2] [...]
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
21-6 OL-8123-01
Chapter 21 Configuring Management Access
Allowing a VPN Management Connection
This dynamic crypto map allows unknown IP addresses to connect to the FWSM.
The dynamic-map name is used in Step 2.
The priority specifies the order in which multiple commands are evaluated. If you have a command that
specifies one set of transforms, and another that specifies others, then the priority number determines
the command that is evaluated first.
Step 2 To assign the dynamic crypto map (from Step 1) to a static tunnel, enter the following command:
hostname(config)# crypto map crypto_map_name priority ipsec-isakmp dynamic
dynamic_map_name
Step 3 To specify the interface at which you want the client tunnels to terminate, enter the following command:
hostname(config)# crypto map crypto_map_name interface interface_name
You can apply only one crypto map name to an interface, so if you want to terminate both a site-to-site
tunnel and VPN clients on the same interface, they need to share the same crypto map name.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 21-7
Chapter 21 Configuring Management Access
Allowing a VPN Management Connection
Step 4 To specify the range of addresses that VPN clients use on the FWSM enter the following command:
hostname(config)# ip local pool pool_name first_ip_address-last_ip_address [mask mask]
All tunneled packets from the client use one of these addresses as the source address.
Step 5 To specify the traffic that is destined for the FWSM, so you can tunnel only that traffic according to the
tunnel group command in Step 7, enter the following command:
hostname(config)# access-list acl_name [extended] permit {protocol} pool_addresses mask
host fwsm_interface_address
This access list identifies traffic from the local pool (see Step 4) destined for the FWSM interface. See
the “Adding an Extended Access List” section on page 10-5 for more information about access lists.
Step 6 To assign the VPN address pool to a tunnel group, enter the following command:
hostname(config)# tunnel-group name general-attributes address-pool pool_name
This group specifies VPN characteristics for connecting clients. When a client connects to the FWSM,
they need to enter the tunnel group name and password in Step 8.
Step 7 To specify that only traffic destined for the FWSM is tunneled, enter the following commands:
hostname(config)# group-policy name attributes
hostname(config-group-policy)# split-tunnel-policy tunnelall
This command is required.
Step 8 To set the VPN group password, enter the following command:
hostname(config)# group-policy group_name external server-group server_group_name password
server_password
Step 9 To allow Telnet or SSH access, see the “Allowing Telnet Access” section on page 21-1 and the “Allowing
SSH Access” section on page 21-2.
Specify the VPN pool addresses in the telnet and ssh commands.
For example, the following commands allow VPN clients to use Telnet on the outside interface
(209.165.200.225). The user authentication is the local database, so users with the tunnel group name
and password, as well as the username “admin” and the password “passw0rd” can connect to the FWSM.
hostname(config)# isakmp policy 1 authentication pre-share
hostname(config)# isakmp policy 1 encryption 3des
hostname(config)# isakmp policy 1 group 2
hostname(config)# isakmp policy 1 hash sha
hostname(config)# isakmp enable outside
hostname(config)# username admin password passw0rd
hostname(config)# crypto ipsec transform-set vpn esp-3des esp-sha-hmac
hostname(config)# crypto dynamic-map vpn_client 1 set transform-set vpn
hostname(config)# crypto map telnet_tunnel 1 ipsec-isakmp dynamic vpn_client
hostname(config)# crypto map telnet_tunnel interface outside
hostname(config)# crypto map telnet_tunnel client authentication LOCAL
hostname(config)# ip local pool Firstpool 10.1.1.1-10.1.1.2
hostname(config)# access-list VPN_SPLIT extended permit ip host 209.165.200.225 host 10.1.1.1
hostname(config)# access-list VPN_SPLIT extended permit ip host 209.165.200.225 host 10.1.1.2
hostname(config)# tunnel-group StocktonAAA general-attributes address-pool Firstpool
hostname(config)# group-policy name attributes
hostname(config-group-policy)# split-tunnel-policy tunnelall
hostname(config)# group-policy ExternalGroup external server-group LodiAAA password $ecure23
hostname(config)# telnet 10.1.1.1 255.255.255.255 outside
hostname(config)# telnet 10.1.1.2 255.255.255.255 outside
hostname(config)# telnet timeout 30
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
21-8 OL-8123-01
Chapter 21 Configuring Management Access
Allowing a VPN Management Connection
Step 1 To set the shared key used by both peers, enter the following command:
hostname(config)# isakmp key keystring address peer-address
Step 2 To identify the traffic allowed to go over the tunnel, enter the following command:
hostname(config)# access-list acl_name [extended] {deny | permit} {protocol} host
fwsm_interface_address dest_address mask
For the destination address, specify the addresses that are allowed to access the FWSM.
See the “Adding an Extended Access List” section on page 10-5 for more information about access lists.
Step 3 To create an IPSec tunnel, enter the following command:
hostname(config)# crypto map crypto_map_name priority ipsec-isakmp
All tunnel attributes are identified by the same crypto map name.
The priority specifies the order in which multiple commands are evaluated. If you have a command for
this crypto map name that specifies ipsec-isakmp, and another that specifies ipsec-isakmp dynamic
(for VPN client connections), then the priority number determines the command that is evaluated first.
Step 4 To assign the access list from Step 2 to this tunnel, enter the following command:
hostname(config)# crypto map crypto_map_name priority match address acl_name
Step 5 To specify the remote peer on which this tunnel terminates, enter the following command:
hostname(config)# crypto map crypto_map_name priority set peer ip_address
Step 6 To specify the transform sets for this tunnel (defined in the “Configuring Basic Settings for All Tunnels”
section on page 21-5), enter the following command:
hostname(config)# crypto map crypto_map_name priority set transform-set transform_set1
[transform_set2] [...]
List multiple transform sets in order of priority (highest priority first). You can specify up to six
transform sets.
Step 7 To specify the interface at which you want this tunnel to terminate, enter the following command:
hostname(config)# crypto map crypto_map_name interface interface_name
You can apply only one crypto map name to an interface, so if you want to terminate both a site-to-site
tunnel and VPN clients on the same interface, they need to share the same crypto map name.
This command must be entered after all other crypto map commands. If you change any crypto map
settings, remove this command with the no prefix, and reenter it.
Step 8 To allow Telnet or SSH access, see the “Allowing Telnet Access” section on page 21-1 and the “Allowing
SSH Access” section on page 21-2.
For example, the following commands allow hosts connected to the peer router (209.165.202.129) to use
Telnet on the outside interface (209.165.200.225).
hostname(config)# isakmp policy 1 authentication pre-share
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 21-9
Chapter 21 Configuring Management Access
Allowing ICMP to and from the FWSM
If you do not specify an icmp_type, all types are identified. You can enter the number or the name. To
control ping, specify echo-reply (0) (FWSM to host) or echo (8) (host to FWSM). See the “ICMP Types”
section on page D-15 for a list of ICMP types.
Like access lists, the FWSM matches a packet to each icmp statement in order. You should use specific
statements first, and general statements later. There is an implicit deny at the end. For example, if you
allow all addresses first, then deny a specific address after, then that address will be unintentionally
allowed because it matched the first statement.
Note If you only want to allow the FWSM to ping a host (and thus allow the echo reply back to the interface),
and not allow hosts to ping the FWSM, you can enable the ICMP inspection engine instead of entering
the command above. See Chapter 20, “Applying Application Layer Protocol Inspection.”
For example, to allow all hosts except the one at 10.1.1.15 to use ICMP to the inside interface, enter the
following commands:
hostname(config)# icmp deny host 10.1.1.15 inside
hostname(config)# icmp permit any inside
To allow the host at 10.1.1.15 to use only ping to the inside interface, enter the following commands:
hostname(config)# icmp permit host 10.1.1.15 inside
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
21-10 OL-8123-01
Chapter 21 Configuring Management Access
AAA for System Administrators
Note Before the FWSM can authenticate a Telnet, SSH, or HTTPS user, you must first configure access to the
FWSM using the telnet, ssh, and http commands. These commands identify the IP addresses that are
allowed to communicate with the FWSM.
To authenticate users who access the CLI or ASDM, enter the following command:
hostname(config)# aaa authentication {telnet | ssh | http} console {LOCAL |
server_group [LOCAL]}
The http keyword authenticates the ASDM client that accesses the FWSM using HTTPS. You only need
to configure HTTPS authentication if you want to use a RADIUS or TACACS+ server. By default,
ASDM uses the local database for authentication even if you do not configure this command.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 21-11
Chapter 21 Configuring Management Access
AAA for System Administrators
If you use a TACACS+ or RADIUS server group for authentication, you can configure the FWSM to use
the local database as a fallback method if the AAA server is unavailable. Specify the server group name
followed by LOCAL (LOCAL is case sensitive). We recommend that you use the same username and
password in the local database as the AAA server because the FWSM prompt does not give any
indication which method is being used.
You can alternatively use the local database as your main method of authentication (with no fallback) by
entering LOCAL alone.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
21-12 OL-8123-01
Chapter 21 Configuring Management Access
AAA for System Administrators
through 15. If you configure local command authorization, then the user can only enter commands
assigned to that privilege level or lower. See the “Configuring Local Command Authorization” section
on page 21-14 for more information.
Caution If you add users to the local database who can gain access to the CLI and whom you do not want to enter
privileged EXEC mode, you should configure command authorization. Without command authorization,
users can access privileged EXEC mode (and all commands) at the CLI using their own password if their
privilege level is 2 or greater (2 is the default). Alternatively, you can use RADIUS or TACACS+
authentication, or you can set all local users to level 1 so you can control who can use the system enable
password to access privileged EXEC mode.
To log in as a user from the local database, enter the following command:
hostname> login
The FWSM prompts for your username and password. After you enter your password, the FWSM places
you in the privilege level that the local database specifies.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 21-13
Chapter 21 Configuring Management Access
AAA for System Administrators
The following are important points to consider when implementing command authorization with
multiple security contexts:
• AAA settings are discrete per context, not shared between contexts.
When configuring command authorization, you must configure each security context separately.
This provides you the opportunity to enforce different command authorizations for different security
contexts.
When switching between security contexts, administrators should be aware that the commands
permitted for the username specified when they login may be different in the new context session or
that command authorization may not be configured at all in the new context. Failure to understand
that command authorizations may differ between security contexts could confuse an administrator.
This behavior is further complicated by the next point.
• New context sessions started with the changeto command always use the default “enable_15”
username as the administrator identity, regardless of what username was used in the previous context
session. This behavior can lead to confusion if command authorization is not configured for the
enable_15 user or if authorizations are different for the enable_15 user than for the user in the
previous context session.
This behavior also affects command accounting, which is useful only if you can accurately associate
each command that is issued with a particular administrator. Because all administrators with
permission to use the changeto command can use the enable_15 username in other contexts,
command accounting records may not readily identify who was logged in as the enable_15
username. If you use different accounting servers for each context, tracking who was using the
enable_15 username requires correlating the data from several servers.
When configuring command authorization, consider the following:
– An administrator with permission to use the changeto command effectively has permission to
use all commands permitted to the enable_15 user in each of the other contexts.
– If you intend to authorize commands differently per context, ensure that in each context the
enable_15 username is denied use of commands that are also denied to administrators who are
permitted use of the changeto command.
When switching between security contexts, administrators can exit privileged EXEC mode and enter
the enable command again to use the username they need.
Note The system execution space does not support AAA commands; therefore, command authorization is not
available in the system execution space.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
21-14 OL-8123-01
Chapter 21 Configuring Management Access
AAA for System Administrators
By default, the following commands are assigned to privilege level 0. All other commands are at
level 15.
• show checksum
• show curpriv
• enable (enable mode)
• help
• show history
• login
• logout
• pager
• show pager
• clear pager
• quit
• show version
If you move any configure mode commands to a lower level than 15, be sure to move the configure
command to that level as well, otherwise, the user will not be able to enter configuration mode.
To view all privilege levels, see the “Viewing Command Privilege Levels” section on page 21-17.
To assign a command to a new privilege level, and enable authorization, perform the following steps:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 21-15
Chapter 21 Configuring Management Access
AAA for System Administrators
Even if you set command privilege levels, command authorization does not take place unless you enable
command authorization with this command.
Alternatively, you can set all filter commands to the same level:
hostname(config)# privilege level 5 command filter
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
21-16 OL-8123-01
Chapter 21 Configuring Management Access
AAA for System Administrators
This example shows an additional command, the configure command, that uses the mode keyword:
hostname(config)# privilege show level 5 mode cmd command configure
hostname(config)# privilege clear level 15 mode cmd command configure
hostname(config)# privilege cmd level 15 mode cmd command configure
hostname(config)# privilege cmd level 15 mode enable command configure
The following commands let you view privilege levels for commands.
• To show all commands, enter the following command:
hostname(config)# show running-config all privilege all
The following is sample output from the show running-config all privilege all command. The system
displays the current assignment of each CLI command to a privilege level.
hostname(config)# show running-config all privilege all
privilege show level 15 command aaa
privilege clear level 15 command aaa
privilege configure level 15 command aaa
privilege show level 15 command aaa-server
privilege clear level 15 command aaa-server
privilege configure level 15 command aaa-server
privilege show level 15 command access-group
privilege clear level 15 command access-group
privilege configure level 15 command access-group
privilege show level 15 command access-list
privilege clear level 15 command access-list
privilege configure level 15 command access-list
privilege show level 15 command activation-key
privilege configure level 15 command activation-key
....
The following command displays the command assignments for privilege level 10:
hostname(config)# show running-config privilege level 10
privilege show level 10 command aaa
The following command displays the command assignment for the access-list command:
hostname(config)# show running-config privilege command access-list
privilege show level 15 command access-list
privilege clear level 15 command access-list
privilege configure level 15 command access-list
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 21-17
Chapter 21 Configuring Management Access
AAA for System Administrators
When configuring command authorization with a TACACS+ server, do not save your configuration until
you are sure it works the way you want. If you get locked out because of a mistake, you can usually
recover access by restarting the FWSM. If you still get locked out, see the “Recovering from a Lockout”
section on page 21-22.
Be sure that your TACACS+ system is completely stable and reliable. The necessary level of reliability
typically requires that you have a fully redundant TACACS+ server system and fully redundant
connectivity to the FWSM. For example, in your TACACS+ server pool, include one server connected
to interface 1, and another to interface 2. You can also configure local command authorization as a
fallback method if the TACACS+ server is unavailable. In this case, you need to configure local users
and command privilege levels according to the “Configuring Command Authorization” section on
page 21-13.
This section includes the following topics:
• TACACS+ Command Authorization Prerequisites, page 21-18
• Configuring Commands on the TACACS+ Server, page 21-18
• Enabling TACACS+ Command Authorization, page 21-21
You can configure commands on a Cisco Secure Access Control Server (ACS) as a shared profile
component, for a group or for individual users. For third-party TACACS+ servers, see your server
documentation for more information about command authorization support.
See the following guidelines for configuring commands in Cisco Secure ACS Version 3.1; many of these
guidelines also apply to third-party servers:
• The FWSM sends the commands to be authorized as “shell” commands, so configure the commands
on the TACACS+ server as shell commands.
Note Cisco Secure ACS might include a command type called “pix-shell.” Do not use this type for
FWSM command authorization.
• The first word of the command is considered to be the main command. All additional words are
considered to be arguments, which need to be preceded by permit or deny.
For example, to allow the show running-configuration aaa-server command, add show
running-configuration to the command box, and type permit aaa-server in the arguments box.
• You can permit all arguments of a command that you do not explicitly deny by selecting the Permit
Unmatched Args check box.
For example, you can configure just the show command, and then all the show commands are
allowed. We recommend using this method so that you do not have to anticipate every variant of a
command, including abbreviations and ?, which shows CLI usage (see Figure 21-1).
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
21-18 OL-8123-01
Chapter 21 Configuring Management Access
AAA for System Administrators
• For commands that are a single word, you must permit unmatched arguments, even if there are no
arguments for the command, for example enable or help (see Figure 21-2).
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 21-19
Chapter 21 Configuring Management Access
AAA for System Administrators
• When you abbreviate a command at the command line, the FWSM expands the prefix and main
command to the full text, but it sends additional arguments to the TACACS+ server as you enter
them.
For example, if you enter sh log, then the FWSM sends the entire command to the TACACS+ server,
show logging. However, if you enter sh log mess, then the FWSM sends show logging mess to the
TACACS+ server, and not the expanded command show logging message. You can configure
multiple spellings of the same argument to anticipate abbreviations (see Figure 21-4).
• We recommend that you allow the following basic commands for all users:
– show checksum
– show curpriv
– enable
– help
– show history
– login
– logout
– pager
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
21-20 OL-8123-01
Chapter 21 Configuring Management Access
AAA for System Administrators
– show pager
– clear pager
– quit
– show version
Before you enable TACACS+ command authorization, be sure that you are logged in to the FWSM as a
user that is defined on the TACACS+ server, and that you have the necessary command authorization to
continue configuring the FWSM. For example, you should log in as an admin user with all commands
authorized. Otherwise, you could become unintentionally locked out.
To perform command authorization using a TACACS+ server, enter the following command:
hostname(config)# aaa authorization command tacacs+_server_group [LOCAL]
You can configure the FWSM to use the local database as a fallback method if the TACACS+ server is
unavailable. To enable fallback, specify the server group name followed by LOCAL (LOCAL is case
sensitive). We recommend that you use the same username and password in the local database as the
TACACS+ server because the FWSM prompt does not give any indication which method is being used.
Be sure to configure users in the local database (see the “Configuring Command Authorization” section
on page 21-13) and command privilege levels (see the “Configuring Local Command Authorization”
section on page 21-14).
where level is the minimum privilege level and server-tag is the name of the TACACS+ server group that
to which the FWSM should send command accounting messages. The TACACS+ server group
configuration must already exist. For information about configuring a AAA server group, see the
“Identifying AAA Server Groups and Servers” section on page 14-11.
See the following sample show curpriv command output. A description of each field follows.
hostname# show curpriv
Username : admin
Current privilege level : 15
Current Mode/s : P_PRIV
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 21-21
Chapter 21 Configuring Management Access
AAA for System Administrators
Field Description
Username Username. If you are logged in as the default user, the name is enable_1 (user
EXEC) or enable_15 (privileged EXEC).
Current privilege level Level from 0 to 15. Unless you configure local command authorization and
assign commands to intermediate privilege levels, levels 0 and 15 are the only
levels that are used.
Current Mode/s Shows the access modes:
• P_UNPR—User EXEC mode (levels 0 and 1)
• P_PRIV—Privileged EXEC mode (levels 2 to 15)
• P_CONF—Configuration mode
Feature Lockout Condition Description Workaround: Single Mode Workaround: Multiple Mode
Local CLI No users in the If you have no users in Log in and reset the Session in to the FWSM
authentication local database the local database, you passwords and aaa from the switch. From the
cannot log in, and you commands. system execution space, you
cannot add any users. can change to the context
and add a user.
TACACS+ Server down or If the server is 1. Log in and reset the 1. If the server is
command unreachable and unreachable, then you passwords and AAA unreachable because the
authorization you do not have cannot log in or enter commands. network configuration
the fallback any commands. Configure the local is incorrect on the
TACACS+ CLI 2.
method database as a fallback FWSM, session in to the
authentication
configured method so you do not FWSM from the switch.
RADIUS CLI From the system
get locked out when the
authentication execution space, you
server is down.
can change to the
context and reconfigure
your network settings.
2. Configure the local
database as a fallback
method so you do not
get locked out when the
server is down.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
21-22 OL-8123-01
Chapter 21 Configuring Management Access
AAA for System Administrators
Table 21-2 CLI Authentication and Command Authorization Lockout Scenarios (continued)
Feature Lockout Condition Description Workaround: Single Mode Workaround: Multiple Mode
TACACS+ You are logged in You enable command Fix the TACACS+ server Session in to the FWSM
command as a user without authorization, but then user account. from the switch. From the
authorization enough privileges find that the user system execution space, you
If you do not have access to
or as a user that cannot enter any more can change to the context
the TACACS+ server and
does not exist commands. and complete the
you need to configure the
configuration changes. You
FWSM immediately, then
can also disable command
log into the maintenance
authorization until you fix
partition and reset the
the TACACS+
passwords and aaa
configuration.
commands.
Local command You are logged in You enable command Log in and reset the Session in to the FWSM
authorization as a user without authorization, but then passwords and aaa from the switch. From the
enough privileges find that the user commands. system execution space, you
cannot enter any more can change to the context
commands. and change the user level.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 21-23
Chapter 21 Configuring Management Access
AAA for System Administrators
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
21-24 OL-8123-01
C H A P T E R 22
Managing Software, Licenses, and
Configurations
This chapter describes how to install new software on the FWSM from an FTP, TFTP, HTTP, or HTTPS
server. You can upgrade the application software, the maintenance software, and ASDM management
software. You can also enable Auto Update support. This chapter includes the following sections:
• Managing Licenses, page 22-1
• Installing Application or ASDM Software, page 22-2
• Upgrading Failover Pairs to a New Maintenance Release, page 22-9
• Installing Maintenance Software, page 22-10
• Downloading and Backing Up Configuration Files, page 22-13
• Configuring Auto Update Support, page 22-17
Managing Licenses
When you install the software, the existing activation key is extracted from the original image and stored
in a file in the FWSM file system. This section includes the following topics:
• Obtaining an Activation Key, page 22-1
• Entering a New Activation Key, page 22-2
Step 1 Obtain the serial number for your FWSM by entering the following command:
hostname> show version | include Number
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 22-1
Chapter 22 Managing Software, Licenses, and Configurations
Installing Application or ASDM Software
http://www.cisco.com/go/license
Use the following website if you are not a registered user of Cisco.com:
http://www.cisco.com/go/license/public
The key is a four-element hexadecimal string with one space between each element. For example, a key
in the correct form might look like the following key:
0xe02888da 0x4ba7bed6 0xf1c123ae 0xffd8624e
The leading 0x specifier is optional; all values are assumed to be hexadecimal.
If you are already in multiple context mode, enter this command in the system execution space.
Note The activation key is not stored in your configuration file. The key is tied to the serial number of the
device.
You must reboot the FWSM after entering the new activation key for the change to take effect in the
running image.
This example shows how to change the activation key on the FWSM:
hostname(config)# activation-key 0xe02888da 0x4ba7bed6 0xf1c123ae 0xffd8624e
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
22-2 OL-8123-01
Chapter 22 Managing Software, Licenses, and Configurations
Installing Application or ASDM Software
Installation Overview
For application software, you can use one of two methods to upgrade:
• Installing to the current application partition from the FWSM CLI
The benefit of this method is you do not have to boot in to the maintenance partition; instead you
log in as usual and copy the new software.
This method supports downloading from a TFTP, FTP, HTTP, or HTTPS server.
You cannot copy software to the other application partition. You might want to copy to the other
partition if you want to keep the old version of software as a backup in the current partition.
You must have an operational configuration with network access. For multiple context mode, you
need to have network connectivity through the admin context.
• Installing to any application partition from the maintenance partition
The benefit of this method is you can copy software to both application partitions, and you do not
have to have an operational configuration. You just need to configure some routing parameters in
the maintenance partition so you can reach the server on VLAN 1.
The disadvantage is that you need to boot in to the maintenance partition, which might not be
convenient if you have an operational application partition.
This method supports downloading from an FTP server only.
To upgrade ASDM, you can only install to the current application partition from the FWSM CLI.
See the “Managing the Firewall Services Module Boot Partitions” section on page 2-12 for more
information about application and maintenance partitions.
Step 1 Enter the following command to confirm access to the selected FTP, TFTP, or HTTP(S) server:
hostname# ping ip_address
Step 2 To copy the application software, enter one of the following commands, directed to the appropriate
download server.
• To copy from a TFTP server, enter the following command:
hostname# copy tftp://server[/path]/filename flash:
The flash keyword refers to the application partition on the FWSM. You can only copy an image
and ASDM software to the flash partition. Configuration files are copied to the disk partition.
• To copy from an FTP server, enter the following command:
hostname# copy ftp://[user[:password]@]server[/path]/filename flash:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 22-3
Chapter 22 Managing Software, Licenses, and Configurations
Installing Application or ASDM Software
• To use secure copy, first enable SSH, then enter the following command:
hostname# ssh scopy enable
For example, to copy the application software from an FTP server, enter the following command:
hostname# copy ftp://10.94.146.80/tftpboot/bnair/cdisk flash:
Step 3 To run the new software, you need to reload the system. If you do not have a failover pair, enter the
following command:
hostname# reload
Proceed with reload? [confirm]
At the ‘Proceed with reload?’ prompt, press Enter to confirm the command.
Rebooting...
If you have a failover pair, see the “Upgrading Failover Pairs to a New Maintenance Release” section on
page 22-9.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
22-4 OL-8123-01
Chapter 22 Managing Software, Licenses, and Configurations
Installing Application or ASDM Software
Note The FWSM maintenance partition can only use VLAN 1 on the switch. The FWSM does not support
802.1Q tagging on VLAN 1.
You must use maintenance software Release 2.1(2) or later with the FWSM. See the “Installing
Maintenance Software” section on page 22-10 to upgrade.
Note If you have an Active/Standby failover pair, first perform this procedure on the standby unit; after the
standby unit reloads, force the active unit to fail over to the standby unit using the no failover active
command in the system execution space of the active unit; then upgrade the active unit.
For Active/Active failover, make both failover groups active on the primary unit by entering the failover
active command in the system execution space of the primary unit. Then perform this procedure on the
secondary unit. After you complete the upgrade procedure for the secondary unit, make both failover
groups active on the secondary unit using the no failover active command in the system execution space
of the primary unit. Then upgrade the active unit.
The FWSM does not support upgrading failover pairs from 2.3 to 3.1 without downtime; only releases
3.1 and later support this feature. See Upgrading the Catalyst 6500 Series Switch and Cisco 7600 Series
Router Firewall Services Module to Release 3.1 for more information about upgrading from 2.x.
To install application software from an FTP server while logged in to the maintenance partition, perform
the following steps:
Step 1 Each application partition has its own startup configuration, so you need to make the current
configuration available to copy to the backup application partition, if desired. You can either copy it to
an available TFTP, FTP, or HTTP(S) server, or you can enter the show running-config command and
cut and paste the configuration from the terminal.
Step 2 If necessary, end the FWSM session by entering the following command:
hostname# exit
Logoff
You might need to enter the exit command multiple times if you are in a configuration mode.
Step 3 To view the current boot partition, enter the command for your operating system. Note the current boot
partition so you can set a new default boot partition.
• Cisco IOS software
Router# show boot device [mod_num]
For example:
Router# show boot device
[mod:1 ]:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 22-5
Chapter 22 Managing Software, Licenses, and Configurations
Installing Application or ASDM Software
[mod:2 ]:
[mod:3 ]:
[mod:4 ]: cf:4
[mod:5 ]: cf:4
[mod:6 ]:
[mod:7 ]: cf:4
[mod:8 ]:
[mod:9 ]:
For example:
Console> (enable) show boot device 4
Device BOOT variable = cf:4
Step 4 To change the default boot partition to the backup, enter the command for your operating system:
• Cisco IOS software
Router(config)# boot device module mod_num cf:{4 | 5}
Step 5 To boot the FWSM into the maintenance partition, enter the command for your operating system at the
switch prompt:
• For Cisco IOS, enter the following command:
Router# hw-module module mod_num reset cf:1
Step 6 To session in to the FWSM, enter the command for your operating system:
• Cisco IOS software
Router# session slot number processor 1
Step 7 To log in to the FWSM maintenance partition as root, enter the following command:
Login: root
Password:
This address is the address for VLAN 1, which is the only VLAN used by the maintenance partition.
b. To assign a default gateway to the maintenance partition, enter the following command:
root@localhost# ip gateway ip_address
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
22-6 OL-8123-01
Chapter 22 Managing Software, Licenses, and Configurations
Installing Application or ASDM Software
c. (Optional) To ping the FTP server to verify connectivity, enter the following command:
root@localhost# ping ftp_address
Step 9 To download the application software from the FTP server, enter the following command:
root@localhost# upgrade ftp://[user[:password]@]server[/path]/filename cf:{4 | 5}
cf:4 and cf:5 are the application partitions on the FWSM. Install the new software to the backup
partition.
Follow the screen prompts during the upgrade.
Step 10 To log out of the maintenance partition, enter the following command:
root@localhost# logout
Step 11 To reboot the FWSM into the backup application partition (that you set as the default in Step 4), enter
the command for your operating system:
• For Cisco IOS, enter the following command:
Router# hw-module module mod_num reset
Step 12 To session in to the FWSM, enter the command for your operating system:
• Cisco IOS software
Router# session slot number processor 1
By default, the password to log in to the FWSM is cisco (set by the password command). If this partition
does not have a startup configuration, the default password is used.
Step 13 Enter privileged EXEC mode using the following command:
hostname> enable
The default password is blank (set by the enable password command). If this partition does not have a
startup configuration, the default password is used.
Step 14 Each application partition has its own startup configuration, so you might need to copy a current
configuration to the application partition. If you have an old configuration running on this partition, you
might want to clear it before copying to the running configuration. To clear the running configuration,
enter the clear configure all command. To copy the configuration to the running configuration, use one
of the following methods:
• Paste the configuration at the command line.
• To copy from a TFTP server, enter the following command:
hostname# copy tftp://server[/path]/filename running-config
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 22-7
Chapter 22 Managing Software, Licenses, and Configurations
Installing Application or ASDM Software
• To copy from the local flash memory, enter the following command:
hostname# copy disk:[path/]filename running-config
Step 15 Save the running configuration to startup using the following command:
hostname# write memory
Step 16 The default context mode is single mode, so if you are running in multiple context mode, set the mode
to multiple in the new application partition using the following command:
hostname# configuration terminal
hostname(config)# mode multiple
WARNING: This command will change the behavior of the device
WARNING: This command will initiate a Reboot
Proceed with change mode? [confirm]
The flash keyword represents to application partition on the FWSM. You can only copy an image
and ASDM software to the flash partition. Configuration files are copied to the disk partition.
• To copy from an FTP server, enter the following command:
hostname# copy ftp://[user[:password]@]server[/path]/filename flash:asdm
• To use secure copy, first enable SSH, then enter the following command:
hostname# ssh scopy enable
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
22-8 OL-8123-01
Chapter 22 Managing Software, Licenses, and Configurations
Upgrading Failover Pairs to a New Maintenance Release
Note The FWSM does not support upgrading from between major or minor releases, for example, from 2.3 to
3.1 without downtime. See Upgrading the Catalyst 6500 Series Switch and Cisco 7600 Series Router
Firewall Services Module to Release 3.1 for more information about upgrading from 2.x.
Step 1 Download the new software to both units. See the “Installing Application Software from the FWSM
CLI” section on page 22-3.
Step 2 Reload the standby unit to boot the new image by entering the following command on the active unit:
active# failover reload-standby
Step 3 When the standby unit has finished reloading, and is in the Standby Ready state, force the active unit to
fail over to the standby unit by entering the following command on the active unit.
Note Use the show failover command to verify that the standby unit is in the Standby Ready state.
Step 4 Reload the former active unit (now the new standby unit) by entering the following command:
newstandby# reload
Step 5 (Optional) When the new standby unit has finished reloading, and is in the Standby Ready state, return
the original active unit to active status by entering the following command:
newstandby# failover active
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 22-9
Chapter 22 Managing Software, Licenses, and Configurations
Installing Maintenance Software
Step 1 Download the new software to both units. See the “Installing Application Software from the FWSM
CLI” section on page 22-3.
Step 2 Make both failover groups active on the primary unit by entering the following command in the system
execution space of the primary unit:
primary# failover active
Step 3 Reload the secondary unit to boot the new image by entering the following command in the system
execution space of the primary unit:
primary# failover reload-standby
Step 4 When the secondary unit has finished reloading, and both failover groups are in the Standby Ready state
on that unit, make both failover groups active on the secondary unit using the following command in the
system execution space of the primary unit:
primary# no failover active
Note Use the show failover command to verify that both failover groups are in the Standby Ready
state on the secondary unit.
Step 5 Make sure both failover groups are in the Standby Ready state on the primary unit, and then reload the
primary unit using the following command:
primary# reload
If the failover groups are configured with the preempt command, they will automatically become active
on their designated unit after the preempt delay has passed. If the failover groups are not configured with
the preempt command, you can return them to active status on their designated units using the failover
active group command.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
22-10 OL-8123-01
Chapter 22 Managing Software, Licenses, and Configurations
Installing Maintenance Software
Step 1 If necessary, end the FWSM session by entering the following command:
hostname# exit
Logoff
You might need to enter the exit command multiple times if you are in a configuration mode.
Step 2 To boot the FWSM into the maintenance partition, enter the command for your operating system at the
switch prompt:
• For Cisco IOS, enter the following command:
Router# hw-module module mod_num reset cf:1
Step 3 To session in to the FWSM, enter the command for your operating system:
• Cisco IOS software
Router# session slot number processor 1
Step 4 To log in to the FWSM maintenance partition as root, enter the following command:
Login: root
Password:
Step 5 To view the maintenance version after you log in, enter the following command:
root@localhost# show version
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 22-11
Chapter 22 Managing Software, Licenses, and Configurations
Installing Maintenance Software
Step 1 Download the maintenance software from Cisco.com at the following URL:
http://www.cisco.com/cgi-bin/tablebuild.pl/cat6000-serv-maint
Put the software on a TFTP, HTTP, or HTTPS server that is accessible from the FWSM admin context.
Step 2 If required, log out of the maintenance partition and reload the application partition by performing the
following steps:
a. log out of the maintenance partition by entering the following command:
root@localhost# logout
b. If required, reboot the FWSM into the application partition by entering the command for your
operating system:
– For Cisco IOS, enter the following command:
Router# hw-module module mod_num reset
c. To session in to the FWSM, enter the command for your operating system:
– Cisco IOS software
Router# session slot number processor 1
Step 3 To upgrade the maintenance partition software, enter one of the following commands for the appropriate
download server.
For multiple context mode, you must be in the system execution space.
• To download the maintenance software from a TFTP server, enter the following command:
hostname# upgrade-mp tftp[://server[:port][/path]/filename]
You are prompted to confirm the server information, or if you do not supply it in the command, you
can enter it at the prompts.
• To download the maintenance software from an HTTP or HTTPS server, enter the following
command:
hostname# upgrade-mp http[s]://[user[:password]@]server[:port][/path]/filename
Passwords for the root and guest accounts of the maintenance partition are retained after the upgrade.
Step 4 Reload the FWSM to load the new maintenance software by entering the following command:
hostname# reload
Alternatively, you can log out of the FWSM in preparation for booting in to the maintenance partition;
from the maintenance partition, you can install application software to both application partitions. To
end the FWSM session, enter the following command:
hostname# exit
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
22-12 OL-8123-01
Chapter 22 Managing Software, Licenses, and Configurations
Downloading and Backing Up Configuration Files
Logoff
You might need to enter the exit command multiple times if you are in a configuration mode.
See the “Installing Application Software from the Maintenance Partition” section on page 22-5 to reload
the FWSM into the maintenance partition.
The following example shows the prompts for the TFTP server information:
hostname# upgrade-mp tftp
Address or name of remote host [127.0.0.1]? 10.1.1.5
Source file name [cdisk]? mp.2-1-0-3.bin.gz
copying tftp://10.1.1.5/mp.2-1-0-3.bin.gz to flash
[yes|no|again]? yes
!!!!!!!!!!!!!!!!!!!!!!!
Received 1695744 bytes.
Maintenance partition upgraded.
For example:
hostname# dir
Directory of disk:/
• To view extended information about a specific file, enter the following command:
hostname# show file information [path:/]filename
The default path is the root directory of the internal flash memory (disk:/).
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 22-13
Chapter 22 Managing Software, Licenses, and Configurations
Downloading and Backing Up Configuration Files
For example:
hostname# show file info admin.cfg
disk:/admin.cfg:
type is ascii text
file size is 959 bytes
Note When you copy a configuration to the running configuration, you merge the two configurations. A merge
adds any new commands from the new configuration to the running configuration. If the configurations
are the same, no changes occur. If commands conflict or if commands affect the running of the context,
then the effect of the merge depends on the command. You might get errors, or you might have
unexpected results.
To copy the startup configuration or running configuration from the server to the FWSM, enter one of
the following commands for the appropriate download server:
• To copy from a TFTP server, enter the following command:
hostname# copy tftp://server[/path]/filename {startup-config | running-config}
For example, to copy the configuration from a TFTP server, enter the following command:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
22-14 OL-8123-01
Chapter 22 Managing Software, Licenses, and Configurations
Downloading and Backing Up Configuration Files
To copy the configuration from an FTP server, enter the following command:
hostname# copy ftp://admin:[email protected]/configs/startup.cfg;type=an
startup-config
To copy the configuration from an HTTP server, enter the following command:
hostname# copy http://209.165.200.228/configs/startup.cfg startup-config
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 22-15
Chapter 22 Managing Software, Licenses, and Configurations
Downloading and Backing Up Configuration Files
Be sure the destination directory exists. If it does not exist, first create the directory using the mkdir
command.
Be sure the destination directory exists. If it does not exist, first create the directory using the mkdir
command.
• To copy the running configuration to a TFTP server connected to the context network, enter the
following command:
hostname/contexta# copy running-config tftp:/server[/path]/filename
Copy the output from this command, then paste the configuration in to a text file.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
22-16 OL-8123-01
Chapter 22 Managing Software, Licenses, and Configurations
Configuring Auto Update Support
Step 1 To specify the URL of the AUS, use the following command:
hostname(config)# auto-update server url [source interface] [verify-certificate]
You can configure only one server. SSL is used when https is specified. The user and password
arguments of the URL are used for Basic Authentication when logging in to the server. If you use the
write terminal, show configuration or show tech-support commands to view the configuration, the
user and password are replaced with ‘********’.
The default port is 80 for HTTP and 443 for HTTPS.
The source interface argument specifies which interface to use when sending requests to the AUS. If you
specify the same interface specified by the management-access command, the Auto Update requests
travel over the same IPSec VPN tunnel used for management access.
The verify-certificate keyword verifies the certificate returned by the AUS.
Step 2 (Optional) To identify the device ID to send when communicating with the AUS, enter the following
command:
hostname(config)# auto-update device-id {hardware-serial | hostname | ipaddress [if-name]
| mac-address [if-name] | string text}
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 22-17
Chapter 22 Managing Software, Licenses, and Configurations
Configuring Auto Update Support
• string—Use the specified text identifier, which cannot contain white space or the characters ‘, “, ,
>, & and ?.
Step 3 (Optional) To specify how often to poll the AUS for configuration or image updates, enter the following
command:
hostname(config)# auto-update poll-period poll-period [retry-count [retry-period]]
The poll-period argument specifies how often (in minutes) to check for an update. The default is 720
minutes (12 hours).
The retry-count argument specifies how many times to try reconnecting to the server if the first attempt
fails. The default is 0.
The retry-period argument specifies how long to wait (in minutes) between retries. The default is 5.
Step 4 (Optional) If the Auto Update Server has not been contacted for a certain period of time, the following
command will cause it to cease passing traffic:
hostname(config)# auto-update timeout period
Where period specifies the timeout period in minutes between 1 and 35791. The default is to never time
out (0). To restore the default, enter the no form of this command.
Use this command to ensure that the FWSM has the most recent image and configuration. This condition
is reported with system log message 201008.
In the following example, a FWSM is configured to poll an AUS with IP address 209.165.200.224, at
port number 1742, from the outside interface, with certificate verification.
It is also configured to use the hostname of the FWSM as the device ID, and the polling period has been
decreased from the default of 720 minutes to 600 minutes. On a failed polling attempt, it will try to
reconnect to the AUS 10 times, and wait 3 minutes between attempts at reconnecting.
hostname(config)# auto-update server
https://jcrichton:[email protected]:1742/management source outside
verify-certificate
hostname(config)# auto-update device-id hostname
hostname(config)# auto-update poll-period 600 10 3
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
22-18 OL-8123-01
C H A P T E R 23
Monitoring the Firewall Services Module
This chapter describes how to configure logging and SNMP for the FWSM. It also describes the contents
of system log messages and the system log message format.
This chapter does not provide comprehensive information about all monitoring and logging commands
and options. For detailed descriptions and additional commands, see the Catalyst 6500 Series Switch and
Cisco 7600 Series Router Firewall Services Module Command Reference.
This chapter includes the following sections:
• Configuring SNMP, page 23-1
• Configuring and Managing Logs, page 23-4
Configuring SNMP
This section describes how to use SNMP and includes the following topics:
• SNMP Overview, page 23-1
• Enabling SNMP, page 23-3
SNMP Overview
The FWSM provides support for network monitoring using SNMP V1 and V2c. The FWSM supports
traps and SNMP read access, but does not support SNMP write access.
You can configure the FWSM to send traps (event notifications) to a network management station
(NMS), or you can use the NMS to browse the MIBs on the FWSM. MIBs are a collection of definitions,
and the FWSM maintains a database of values for each definition. Browsing a MIB entails issuing an
SNMP get request from the NMS. Use CiscoWorks for Windows or any other SNMP V1, MIB-II
compliant browser to receive SNMP traps and browse a MIB.
Table 23-1 lists supported MIBs and traps for the FWSM and, in multiple mode, for each context. You
can download Cisco MIBs from the following website.
http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml
After you download the MIBs, compile them for your NMS.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 23-1
Chapter 23 Monitoring the Firewall Services Module
Configuring SNMP
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
23-2 OL-8123-01
Chapter 23 Monitoring the Firewall Services Module
Configuring SNMP
Enabling SNMP
The SNMP agent that runs on the FWSM performs two functions:
• Replies to SNMP requests from NMSs.
• Sends traps (event notifications) to NMSs.
To enable the SNMP agent and identify an NMS that can connect to the FWSM, follow these steps:
Step 1 Ensure that the SNMP server on the FWSM is enabled by entering the following command:
hostname(config)# snmp-server enable
Specify trap or poll if you want to limit the NMS to receiving traps only or browsing (polling) only. By
default, the NMS can use both functions.
SNMP traps are sent on UDP port 162 by default. You can change the port number using the udp-port
keyword.
Step 3 To specify the community string, enter the following command:
hostname(config)# snmp-server community key
The SNMP community string is a shared secret between the FWSM and the NMS. The key is a
case-sensitive value up to 32 characters in length. Spaces are not permitted.
Step 4 (Optional) To set the SNMP server location or contact information, enter the following command:
hostname(config)# snmp-server {contact | location} text
Step 5 To enable the FWSM to send traps to the NMS, enter the following command:
hostname(config)# snmp-server enable traps [all | syslog | snmp [trap] [...] |
entity [trap] [...] | ipsec [trap] [...] | remote-access [trap]]
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 23-3
Chapter 23 Monitoring the Firewall Services Module
Configuring and Managing Logs
Enter this command for each feature type to enable individual traps or sets of traps, or enter the all
keyword to enable all traps.
The default configuration has all snmp traps enabled (snmp-server enable traps snmp authentication
linkup linkdown coldstart). You can disable these traps using the no form of this command with the
snmp keyword. However, the clear configure snmp-server command restores the default enabling of
SNMP traps.
If you enter this command and do not specify a trap type, then the default is syslog. (The default snmp
traps continue to be enabled along with the syslog trap.)
Traps for snmp include:
• authentication
• linkup
• linkdown
• coldstart
Traps for entity include:
• config-change
• fru-insert
• fru-remove
Traps for ipsec include:
• start
• stop
Traps for remote-access include:
• session-threshold-exceeded
Step 6 To enable system messages to be sent as traps to the NMS, enter the following command:
hostname(config)# logging history level
You must also enable syslog traps using the preceding snmp-server enable traps command.
Step 7 To enable logging, so system messages are generated and can then be sent to an NMS, enter the following
command:
hostname(config)# logging enable
The following example sets the FWSM to receive requests from host 192.168.3.2 on the inside interface.
hostname(config)# snmp-server host 192.168.3.2
hostname(config)# snmp-server location building 42
hostname(config)# snmp-server contact Pat lee
hostname(config)# snmp-server community ohwhatakeyisthee
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
23-4 OL-8123-01
Chapter 23 Monitoring the Firewall Services Module
Configuring and Managing Logs
Logging Overview
The FWSM system logs provide you with information for monitoring and troubleshooting the FWSM.
Using the logging feature, you can do the following:
• Specify which system log messages should be logged.
• Disable or change the severity level of a system log message.
• Specify one or more locations where system log messages should be sent, including an internal
buffer, one or more syslog servers, ASDM, an SNMP management station, specified e-mail
addresses, or to Telnet and SSH sessions.
• Configure and manage system log messages in groups, such as by severity level or class of message.
• Specify what happens to the contents of the internal buffer when the buffer becomes full: overwrite
the buffer, send the buffer contents to an FTP server, or save the contents to internal Flash memory.
You can choose to send all system log messages, or subsets of system log messages, to any or all output
locations. You can filter which system log messages are sent to which locations by the severity of the
system log message, the class of the system log message, or by creating a custom log message list.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 23-5
Chapter 23 Monitoring the Firewall Services Module
Configuring and Managing Logs
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
23-6 OL-8123-01
Chapter 23 Monitoring the Firewall Services Module
Configuring and Managing Logs
• Sending System Log Messages to a Switch Session, Telnet Session, or SSH Session, page 23-10
• Sending System Log Messages to the Log Buffer, page 23-11
Note To start logging to a syslog server you define in this procedure, be sure to enable logging for all output
locations. See the “Enabling Logging to All Configured Output Destinations” section on page 23-6. To
disable logging, see the “Disabling Logging to All Configured Output Destinations” section on
page 23-6.
To configure the FWSM to send system log messages to a syslog server, perform the following steps:
Step 1 To designate a syslog server to receive the logs, enter the following command:
hostname(config)# logging host interface_name ip_address [tcp[/port] | udp[/port]]
[format emblem]
Where the format emblem keyword enables EMBLEM format logging for the syslog server. (UDP
only).
The interface_name argument specifies the interface through which you access the syslog server.
The ip_address argument specifies the IP address of the syslog server.
The tcp[/port] or udp[/port] argument specifies that the FWSM should use TCP or UDP to send system
log messages to the syslog server. The default protocol is UDP. You can configure the FWSM to send
data to a syslog server using either UDP or TCP, but not both. If you specify TCP, the FWSM discovers
when the syslog server fails and discontinues sending logs. If you specify UDP, the FWSM continues to
send logs regardless of whether the syslog server is operational. The port argument specifies the port that
the syslog server listens to for system log messages. Valid port values are 1025 through 65535, for either
protocol. The default UDP port is 514. The default TCP port is 1470.
For example:
hostname(config)# logging host dmz1 192.168.1.5
If you want to designate more than one syslog server as an output destination, enter a new command for
each syslog server.
Step 2 To specify which system log messages should be sent to the syslog server, enter the following command:
hostname(config)# logging trap {severity_level | message_list}
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 23-7
Chapter 23 Monitoring the Firewall Services Module
Configuring and Managing Logs
Where the severity_level argument specifies the severity levels of messages to be sent to the syslog
server. You can specify the severity level number (0 through 7) or name. For severity level names, see
the “Severity Levels” section on page 23-22. For example, if you set the level to 3, then the FWSM sends
system log messages for level 3, 2, 1, and 0.
The message_list argumentspecifies a customized message list that identifies the system log messages
to send to the syslog server. For information about creating custom message lists, see the “Filtering
System Log Messages with Custom Message Lists” section on page 23-16.
The following example specifies that the FWSM should send to the syslog server all system log messages
with a severity level of level 3 (errors) and higher. The FWSM will send messages with the severity of
3, 2, and 1.
hostname(config)# logging trap errors
Step 3 (Optional) If needed, set the logging facility to a value other than its default of 20 by entering the
following command:
hostname(config)# logging facility number
Most UNIX systems expect the system log messages to arrive at facility 20.
Step 4 (Optional) To continue to pass traffic when the TCP syslog server is down, enter the following command:
hostname(config)# logging host interface_name server_ip [tcp/port] [permit-hostdown]
Note To start logging to an e-mail address you define in this procedure, be sure to enable logging for all output
locations. See the “Enabling Logging to All Configured Output Destinations” section on page 23-6. To
disable logging, see the “Disabling Logging to All Configured Output Destinations” section on
page 23-6.
Step 1 To specify the system log messages to be sent to one or more e-mail addresses, enter the following
command:
hostname(config)# logging mail {severity_level | message_list}
Where the severity_level argument specifies the severity levels of messages to be sent to the e-mail
address. You can specify the severity level number (0 through 7) or name. For severity level names, see
the “Severity Levels” section on page 23-22. For example, if you set the level to 3, then the FWSM sends
system log messages for level 3, 2, 1, and 0.
The message_list argumentspecifies a customized message list that identifies the system log messages
to send to the e-mail address. For information about creating custom message lists, see the “Filtering
System Log Messages with Custom Message Lists” section on page 23-16.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
23-8 OL-8123-01
Chapter 23 Monitoring the Firewall Services Module
Configuring and Managing Logs
The following example uses a message_list with the name “high-priority,” previously set up with the
logging list command:
hostname(config)# logging mail high-priority
Step 2 To specify the source e-mail address to be used when sending system log messages to an e-mail address,
enter the following command:
hostname(config)# logging from-address email_address
For example:
hostname(config)# logging from-address [email protected]
Step 3 Specify the recipient e-mail address to be used when sending system log messages to an e-mail
destination. You can configure up to five recipient addresses. You must enter each recipient separately.
To specify a recipient address, enter the following command:
hostname(config)# logging recipient-address e-mail_address [severity_level]
If a severity level is not specified, the default severity level is used (error condition, severity level 3).
For example:
hostname(config)# logging recipient-address [email protected]
Step 4 To specify the SMTP server to be used when sending system log messages to an e-mail destination, enter
the following command:
hostname(config)# smtp-server ip_address
For example:
hostname(config)# smtp-server 10.1.1.1
Note To start logging to ASDM as defined in this procedure, be sure to enable logging for all output locations.
See the “Enabling Logging to All Configured Output Destinations” section on page 23-6. To disable
logging, see the “Disabling Logging to All Configured Output Destinations” section on page 23-6.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 23-9
Chapter 23 Monitoring the Firewall Services Module
Configuring and Managing Logs
Step 1 To specify which system log messages should go to ASDM, enter the following command:
hostname(config)# logging asdm {severity_level | message_list}
Where the severity_level argument specifies the severity levels of messages to be sent to ASDM. You
can specify the severity level number (0 through 7) or name. For severity level names, see the “Severity
Levels” section on page 23-22. For example, if you set the level to 3, then the FWSM sends system log
messages for level 3, 2, 1, and 0.
The message_list argumentspecifies a customized message list that identifies the system log messages
to send to ASDM. For information about creating custom message lists, see the “Filtering System Log
Messages with Custom Message Lists” section on page 23-16.
The following example shows how enable logging and send to the ASDM log buffer system log messages
of severity levels 0, 1, and 2.
hostname(config)# logging asdm 2
Step 2 To specify the number of system log messages retained in the ASDM log buffer, enter the following
command:
hostname(config)# logging asdm-buffer-size num_of_msgs
Where num_of_msgs specifies the number of system log messages that the FWSM retains in the ASDM
log buffer.
The following example shows how to set the ASDM log buffer size to 200 system log messages.
hostname(config)# logging asdm-buffer-size 200
To erase the current contents of the ASDM log buffer, enter the following command:
hostname(config)# clear logging asdm
Sending System Log Messages to a Switch Session, Telnet Session, or SSH Session
When you session in to the FWSM from the switch, you are connected using a Telnet session. Therefire
you configure logging to a switch session the same way as you configure logging to a Telnet or SSH
session.
Viewing system log messages in a Telnet or SSH session requires two steps:
1. Specify which messages should be sent to Telnet or SSH sessions.
2. View logs in the current session.
This section includes the following topics:
• Configuring Logging for Telnet and SSH Sessions, page 23-11
• Viewing System Log Messges in the Current Session, page 23-11
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
23-10 OL-8123-01
Chapter 23 Monitoring the Firewall Services Module
Configuring and Managing Logs
Note To start logging to a Telnet or SSH session as defined in this procedure, be sure to enable logging for all
output locations. See the “Enabling Logging to All Configured Output Destinations” section on
page 23-6. To disable logging, see the “Disabling Logging to All Configured Output Destinations”
section on page 23-6.
To specify which messages should be sent to Telnet or SSH sessions, enter the following command:
hostname(config)# logging monitor {severity_level | message_list}
Where the severity_level argument specifies the severity levels of messages to be sent to the session. You
can specify the severity level number (0 through 7) or name. For severity level names, see the “Severity
Levels” section on page 23-22. For example, if you set the level to 3, then the FWSM sends system log
messages for level 3, 2, 1, and 0.
The message_list argumentspecifies a customized message list that identifies the system log messages
to send to the session. For information about creating custom message lists, see the “Filtering System
Log Messages with Custom Message Lists” section on page 23-16.
Step 1 After you log in to the FWSM, enable logging to the current session by entering the following command:
hostname# terminal monitor
This command enables logging only for the current session. If you log out, and then log in again, you
need to reenter this command.
Step 2 To disable logging to the current session, enter the following command:
hostname(config)# terminal no monitor
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 23-11
Chapter 23 Monitoring the Firewall Services Module
Configuring and Managing Logs
Note To start logging to the buffer as defined in this procedure, be sure to enable logging for all output
locations. See the “Enabling Logging to All Configured Output Destinations” section on page 23-6. To
disable logging, see the “Disabling Logging to All Configured Output Destinations” section on
page 23-6.
To enable the log buffer as a log output destination, enter the following command:
hostname(config)# logging buffered {severity_level | message_list}
Where the severity_level argument specifies the severity levels of messages to be sent to the buffer. You
can specify the severity level number (0 through 7) or name. For severity level names, see the “Severity
Levels” section on page 23-22. For example, if you set the level to 3, then the FWSM sends system log
messages for level 3, 2, 1, and 0.
The message_list argumentspecifies a customized message list that identifies the system log messages
to send to the buffer. For information about creating custom message lists, see the “Filtering System Log
Messages with Custom Message Lists” section on page 23-16.
For example, to specify that messages with severity levels 1 and 2 should be saved in the log buffer, enter
one of the following commands:
hostname(config)# logging buffered critical
or
hostname(config)# logging buffered level 2
For the message_list option, specify the name of a message list containing criteria for selecting messages
to be saved in the log buffer.
hostname(config)# logging buffered notif-list
By default, the log buffer size is 4 KB. To change the size of the log buffer, enter the following command:
hostname(config)# logging buffer-size bytes
Where the bytes argument sets the amount of memory used for the log buffer, in bytes. For example, if
you specify 8192, the FWSM uses 8 KB of memory for the log buffer.
The following example specifies that the FWSM uses 16 KB of memory for the log buffer:
hostname(config)# logging buffer-size 16384
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
23-12 OL-8123-01
Chapter 23 Monitoring the Firewall Services Module
Configuring and Managing Logs
Unless configured otherwise, the FWSM address messages to the log buffer on a continuing basis,
overwriting old messages when the buffer is full. If you want to keep a history of logs, you can configure
the FWSM to send the buffer contents to another output location each time the buffer fills. Buffer
contents can be saved either to internal Flash memory or to an FTP server.
When saving the buffer content to another location, the FWSM creates log files with names that use a
default time-stamp format, as follows:
LOG-YYYY-MM-DD-HHMMSS.TXT
where YYYY is the year, MM is the month, DD is the day of the month, and HHMMSS is the time in hours,
minutes, and seconds.
While the FWSM writes the log buffer contents to internal Flash memory or an FTP server, it continues
saving new messages to the log buffer.
To specify that messages in the log buffer should be saved to internal Flash memory each time the buffer
wraps, enter the following command:
hostname(config)# logging flash-bufferwrap
See the “Saving the Current Contents of the Log Buffer to Internal Flash Memory” section for more
information about saving the buffer.
To specify that messages in the log buffer should be saved to an FTP server each time the buffer wraps,
perform the following steps.
Step 1 To enable the FWSM to send the log buffer contents to an FTP server every time the buffer wraps, enter
the following command:
hostname(config)# logging ftp-bufferwrap
Where the server argument specifies the IP address of the external FTP server
The path argument specifies the directory path on the FTP server where the log buffer data is to be saved.
This path is relative to the FTP root directory.
The username argument specifies a username that is valid for logging into the FTP server.
The password argument specifies the password for the username specified.
For example:
hostname(config)# logging ftp-server 10.1.1.1 /syslogs logsupervisor 1luvMy10gs
Saving the Current Contents of the Log Buffer to Internal Flash Memory
At any time, you can save the contents of the buffer to internal Flash memory. To save the current
contents of the log buffer to internal Flash memory, enter the following command:
hostname(config)# logging savelog [savefile]
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 23-13
Chapter 23 Monitoring the Firewall Services Module
Configuring and Managing Logs
For example, the following example saves the contents of the log buffer to internal Flash memory using
the file name latest-logfile.txt:
hostname(config)# logging savelog latest-logfile.txt
To erase the contents of the log buffer, enter the following command:
hostname(config)# clear logging buffer
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
23-14 OL-8123-01
Chapter 23 Monitoring the Firewall Services Module
Configuring and Managing Logs
With logging classes, you can specify an output location for an entire category of system log messages
with a single command.
You can use system log message classes in two ways:
• Issue the logging class command to specify an output location for an entire category of system log
messages.
• Create a message list using the logging list command that specifies the message class. See the
“Filtering System Log Messages with Custom Message Lists” section on page 23-16 for this
method.
All system log messages in a particular class share the same initial 3 digits in their system log message
ID numbers. For example, all system log message IDs that begin with the digits 611 are associated with
the vpnc (VPN client) class. System log messages associated with the VPN client feature range from
611101 to 611323.
When you configure all messages in a class to go to a type of output destination, this configuration
overrides the configuration in the specific output destination command. For example, if you specify that
messages at level 7 should go to the log buffer, and you also specify that ha class messages at level 3
should go to the buffer, then the latter configuration takes precedence.
To configure the FWSM to send an entire system log message class to a configured output destination,
enter the following command:
hostname(config)# logging class message_class {buffered | history | mail | monitor | trap}
[severity_level]
Where the message_class argument specifies a class of system log messages to be sent to the specified
output destination. See Table 23-2 for a list of system log message classes.
The buffered, history, mail, monitor, and trap keywords specify the output destination to which system
log messages in this class should be sent. The history keyword enables SNMP logging. The monitor
keyword enables Telnet and SSH logging. The trap keyword enables syslog server logging. Select one
destination per command line entry. If you want to specify that a class should go to more than one
destination, enter a new command for each output destination.
The severity_level argument further restricts the system log messages to be sent to the output destination
by specifying a severity level. For more information about message severity levels, see the “Severity
Levels” section on page 23-22.
The following example specifies that all system log messages related to the class ha (high availability,
also known as failover) with a severity level of 1 (alerts) should be sent to the internal logging buffer.
hostname(config)# logging class ha buffered alerts
Table 23-2 lists the system log message classes and the ranges of system log message IDs associated with
each class.
Table 23-2 System Log Message Classes and Associated Message ID Numbers
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 23-15
Chapter 23 Monitoring the Firewall Services Module
Configuring and Managing Logs
Table 23-2 System Log Message Classes and Associated Message ID Numbers
Step 1 Create a message list containing criteria for selecting messages by entering the following command:
hostname(config)# logging list name {level level [class message_class] |
message start_id[-end_id]}
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
23-16 OL-8123-01
Chapter 23 Monitoring the Firewall Services Module
Configuring and Managing Logs
Where the name argument specifies the name of the list. Do not use the names of severity levels as the
name of a system log message list. Prohibited names include “emergencies,” “alert,” “critical,” “error,”
“warning,” “notification,” “informational,” and “debugging.” Similarly, do not use the first three
characters of these words at the beginning of a file name. For example, do not use a filename that starts
with the characters “err.”
The level level argument specifies the severity level. You can specify the severity level number (0
through 7) or name. For severity level names, see the “Severity Levels” section on page 23-22. For
example, if you set the level to 3, then the FWSM sends system log messages for level 3, 2, 1, and 0.
The class message_class argument specifies a particular message class. See Table 23-2 on page 23-15
for a list of class names.
The message start_id[-end_id] argument specifies an individual system log message ID number or a
range of numbers.
The following example creates a message list named notif-list that specifies messages with a severity
level of 3 or higher should be saved in the log buffer:
hostname(config)# logging list notif-list level 3
Step 2 (Optional) If you want to add more criteria for message selection to the list, enter the same command as
in the previous step specifying the name of the existing message list and the additional criterion. Enter
a new command for each criterion you want to add to the list.
The following example adds criteria to the message list: a range of message ID numbers, and the message
class ha (high availability or failover).
hostname(config)# logging list notif-list 104024-105999
hostname(config)# logging list notif-list level critical
hostname(config)# logging list notif-list level warning class ha
The preceding example states that system log messages that match the criteria specified will be sent to
the output destination. The specified criteria for system log messages to be included in the list are:
• System log message IDs that fall in the range of 104024 to 105999
• All system log messages with critical level or higher (emergency, alert, or critical)
• All ha class system log messages with warning level or higher (emergency, alert, critical, error, or
warning)
A system log message is logged if it satisfies any of these conditions. If a system log satisfies more than
one of the conditions, the message is logged only once.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 23-17
Chapter 23 Monitoring the Firewall Services Module
Configuring and Managing Logs
• Changing the Amount of Internal Flash Memory Available for Logs, page 23-21
Where the message_count variable specifies the number of system log messages that can remain in the
system log message queue while awaiting processing. The default is 512 system log messages. A setting
of 0 (zero) indicates unlimited system log messages, that is, the queue size is limited only by block
memory availability.
To view the queue and queue statistics, enter the following command:
hostname(config)# show logging queue
You can specify only one type of device ID for the system log messages.
The context-name keyword indicates that the name of the current context should be used as the device
ID (applies to multiple context mode only). If you enable the logging device ID for the admin context in
multiple context mode, messages that originate in the system execution space use a device ID of system,
and messages that originate in the admin context use the name of the admin context as the device ID.
The hostname keyword specifies that the hostname of the FWSM should be used as the device ID.
The ipaddress interface_name argument specifies that the IP address of the interface specified as
interface_name should be used as the device ID. If you use the ipaddress keyword, the device ID
becomes the specified FWSM interface IP address, regardless of the interface from which the system log
message is sent. This keyword provides a single, consistent device ID for all system log messages that
are sent from the device.
The string text argument specifies that the text string should be used as the device ID. The string can
contain as many as 16 characters. You cannot use blank spaces or any of the following characters:
• & (ampersand)
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
23-18 OL-8123-01
Chapter 23 Monitoring the Firewall Services Module
Configuring and Managing Logs
Note If enabled, the device ID does not appear in EMBLEM-formatted system log messages or SNMP traps.
The following example enables the logging device ID for the FWSM:
hostname(config)# logging device-id hostname
The following example enables the logging device ID for a security context on the FWSM:
hostname(config)# logging device-id context-name
• To use the EMBLEM format for system log messages sent to a syslog server over UDP, specify the
format emblem option when you configure the syslog server as a n output destination. See the
“Sending System Log Messages to a Syslog Server” section on page 23-7 for more information
about syslog servers. Enter the following command:
hostname(config)# logging host interface_name ip_address {tcp[/port] | udp[/port]]
[format emblem]
Where the interface_name and IP_address specifies the syslog server to receive the system log
messages, tcp[/port] and udp[/port] indicate the protocol and port that should be used, and
format emblem enables EMBLEM formatting for messages sent to the syslog server.
The security appliance can send system log messages using either the UDP or TCP protocol;
however, you can enable the EMBLEM format only for messages sent over UDP. The default
protocol and port are UDP/514.
For example:
hostname(config)# logging host interface_1 122.243.006.123 udp format emblem
For example:
hostname(config)# no logging message 113019
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 23-19
Chapter 23 Monitoring the Firewall Services Module
Configuring and Managing Logs
For example:
hostname(config)# logging message 113019
• To see a list of disabled system log messages, enter the following command:
hostname(config)# show logging message
• To reenable logging of all disabled system log messages, enter the following command:
hostname(config)# clear config logging disabled
The following example modifies the severity level of system log message ID 113019 from 4
(warnings) to 5 (notifications):
hostname(config)# logging message 113019 level 5
• To reset the logging level of a system log message to its default level, enter the following command.
hostname(config)# no logging message message_ID level current_severity_level
The following example modifies the severity level of system log message ID 113019 to its default
value of 4 (warnings).
hostname(config)# no logging message 113019 level 5
• To see the severity level of a specific message, enter the following command:
hostname(config)# show logging message message_ID
• To see a list of system log messages with modified severity levels, enter the following command:
hostname(config)# show logging message
• To reset the severity level of all modified system log messages back to their defaults, enter the
following command:
hostname(config)# clear configure logging level
The series of commands in the following example illustrates the use of the logging message command
to control both whether a system log message is enabled and the severity level of the system log message.
hostname(config)# show logging message 403503
syslog 403503: default-level errors (enabled)
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
23-20 OL-8123-01
Chapter 23 Monitoring the Firewall Services Module
Configuring and Managing Logs
Step 1 To specify the maximum amount of internal Flash memory available for saving log files, enter the
following command:
hostname(config)# logging flash-maximum-allocation kbytes
Where kbytes specifies the maximum amount of internal Flash memory, in kilobytes, that can be used
for saving log files.
The following example sets the maximum amount of internal Flash memory that can be used for log files
to approximately 1.2 MB:
hostname(config)# logging flash-maximum-allocation 1200
Step 2 To specify the minimum amount of internal Flash memory that must be free for the FWSM to save a log
file, enter the following command:
hostname(config)# logging flash-minimum-free kbytes
Where kbytes specifies the minimum amount of internal Flash memory, in kilobytes, that must be
available before the FWSM saves a new log file.
The following example specifies that the minimum amount of free internal Flash memory must be 4000
KB before the FWSM can save a new log file:
hostname(config)# logging flash-minimum-free 4000
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 23-21
Chapter 23 Monitoring the Firewall Services Module
Configuring and Managing Logs
Severity Levels
Table 23-3 lists the system log message severity levels.
Level
Number Level Keyword Description
0 emergencies System unusable.
1 alert Immediate action needed.
2 critical Critical condition.
3 error Error condition.
4 warning Warning condition.
5 notification Normal but significant condition.
6 informational Informational message only.
7 debugging Appears during debugging only.
Note The FWSM does not generate system log messages with a severity level of 0 (emergencies). This level
is provided in the logging command for compatibility with the UNIX system log feature, but is not used
by the security appliance.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
23-22 OL-8123-01
C H A P T E R 24
Troubleshooting the Firewall Services Module
This chapter describes how to troubleshoot the FWSM, and includes the following sections:
• Testing Your Configuration, page 24-1
• Reloading the FWSM, page 24-6
• Performing Password Recovery, page 24-6
• Other Troubleshooting Tools, page 24-8
• Common Problems, page 24-8
Step 1 To show ICMP packet information for pings to the FWSM interfaces, enter the following command:
hostname(config)# debug icmp trace
Step 2 To set system messages to be sent to Telnet or SSH sessions, enter the following command:
hostname(config)# logging monitor debug
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 24-1
Chapter 24 Troubleshooting the Firewall Services Module
Testing Your Configuration
You can alternately use logging buffer debug to send messages to a buffer, and then view them later
using the show logging command.
Step 3 To send the system messages to your Telnet or SSH session, enter the following command:
hostname(config)# terminal monitor
The following example shows a successful ping from an external host (209.165.201.2) to the FWSM
outside interface (209.165.201.1):
hostname(config)# debug icmp trace
Inbound ICMP echo reply (len 32 id 1 seq 256) 209.165.201.1 > 209.165.201.2
Outbound ICMP echo request (len 32 id 1 seq 512) 209.165.201.2 > 209.165.201.1
Inbound ICMP echo reply (len 32 id 1 seq 512) 209.165.201.1 > 209.165.201.2
Outbound ICMP echo request (len 32 id 1 seq 768) 209.165.201.2 > 209.165.201.1
Inbound ICMP echo reply (len 32 id 1 seq 768) 209.165.201.1 > 209.165.201.2
Outbound ICMP echo request (len 32 id 1 seq 1024) 209.165.201.2 > 209.165.201.1
Inbound ICMP echo reply (len 32 id 1 seq 1024) 209.165.201.1 > 209.165.201.2
The preceding example shows the ICMP packet length (32 bytes), the ICMP packet identifier (1), and
the ICMP sequence number (the ICMP sequence number starts at 0 and is incremented each time a
request is sent).
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
24-2 OL-8123-01
Chapter 24 Troubleshooting the Firewall Services Module
Testing Your Configuration
Step 1 Create a sketch of your single mode FWSM or security context showing the interface names, security
levels, and IP addresses. The sketch should also include any directly connected routers, and a host on the
other side of the router from which you will ping the FWSM. You will use this information for this
procedure as well as the procedure in the “Pinging Through the FWSM” section on page 24-4. For
example:
Host Host
Host Host
209.265.200.230 209.165.201.24
10.1.1.56 10.1.3.6
209.265.200.226 209.165.201.1
10.1.1.2 10.1.3.2
MSFC MSFC
MSFC MSFC
209.165.201.2 10.1.0.1
192.168.1.2 192.168.3.2
outside
dmz1 209.165.201.1 outside
dmz3 security0
192.1 security0 192.1
68.1. 68.3.
Transp. FWSM
Routed FWSM 10.1.0.3
dmz2 dmz4
192.168.2.1 inside 192.168.4.1 inside
security40 192.168.0.1 security80 security100
security100
192.168.2.2 192.168.4.2
192.168.0.2 10.1.0.2
MSFC MSFC
MSFC
10.1.2.2 10.1.4.2 MSFC
10.1.0.2
10.1.1.1
10.1.2.90 10.1.4.67
132877
10.1.0.34 10.1.1.5
Host Host
Host
Host
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 24-3
Chapter 24 Troubleshooting the Firewall Services Module
Testing Your Configuration
Ping ?
132878
Host MSFC
FWSM
If the ping reaches the FWSM, and the FWSM responds, you see debug messages like the following:
ICMP echo reply (len 32 id 1 seq 256) 209.165.201.1 > 209.165.201.2
ICMP echo request (len 32 id 1 seq 512) 209.165.201.2 > 209.165.201.1
If the ping reply does not return to the router, then you might have a switch loop or redundant IP
addresses (see Figure 24-3).
Ping
132879
MSFC MSFC
Host FWSM Host
Step 4 Ping each FWSM interface from a remote host. For transparent mode, ping the management IP address.
This test checks that the directly connected router can route the packet between the host and the FWSM,
and that the FWSM can correctly route the packet back to the host.
A ping might fail if the FWSM does not have a route back to the host through the intermediate router
(see Figure 24-4). In this case, the debug messages show that the ping was successful, but you see system
message 110001 indicating a routing failure.
Ping
132880
MSFC
FWSM
Step 1 To add an access list allowing ICMP from any source host, enter the following command:
hostname(config)# access-list ICMPACL extended permit icmp any any
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
24-4 OL-8123-01
Chapter 24 Troubleshooting the Firewall Services Module
Testing Your Configuration
By default, when hosts access a lower security interface, all traffic is allowed through. However, to
access a higher security interface, you need the preceding access list.
Step 2 To assign the access list to each source interface, enter the following command:
hostname(config)# access-group ICMPACL in interface interface_name
Alternatively, you can also apply the ICMPACL access list to the destination interface to allow ICMP
traffic back through the FWSM.
Step 4 Ping from the host or router through the source interface to another host or router on another interface.
Repeat this step for as many interface pairs as you want to check.
If the ping succeeds, you see a system message confirming the address translation for routed mode
(305009 or 305011) and that an ICMP connection was established (302020). You can also enter the
show xlate and show conns commands to view this information.
If the ping fails for transparent mode, contact Cisco TAC.
For routed mode, the ping might fail because NAT is not configured correctly (see Figure 24-5). This is
more likely if you enable NAT control. In this case, you see a system message showing that the NAT
translation failed (305005 or 305006). If the ping is from an outside host to an inside host, and you do
not have a static translation (which is required with NAT control), you see message 106010: deny
inbound icmp.
Note The FWSM only shows ICMP debug messages for pings to the FWSM interfaces, and not for pings
through the FWSM to other hosts.
Figure 24-5 Ping Failure Because the FWSM is not Translating Addresses
Ping
192.168.1.2 192.168.1.1
MSFC
192.168.1.2 FWSM
132881
Host
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 24-5
Chapter 24 Troubleshooting the Firewall Services Module
Reloading the FWSM
Step 3 To disable ICMP to the FWSM for all interfaces, enter the following command:
hostname/contexta(config)# clear icmp
If you want to disable ICMP for a certain interface, use the no icmp permit command.
Step 4 To remove the ICMPACL access list, and also delete the related access-group commands, enter the
following command:
hostname(config)# no access-list ICMPACL
Step 5 (Optional) To disable the ICMP inspection engine, enter the following command:
hostname(config)# no service-policy ICMP-POLICY
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
24-6 OL-8123-01
Chapter 24 Troubleshooting the Firewall Services Module
Performing Password Recovery
Step 1 Check the current application boot partition by entering the following command at the switch prompt:
Router# show boot device [mod_num]
The output shows the boot partition for the module as cf:4 or cf:5. Later in this procedure, you specify
the boot partition for which you want to clear passwords.
Step 2 To boot the FWSM into the maintenance partition, enter the following command:
Router# hw-module module mod_num reset cf:1
Step 4 To log into the maintenance partition as root, enter the following command:
Login: root
Specify the boot partition for which you want to clear passwords. By default, the FWSM boots from cf:4.
See Step 1 for more information about viewing the boot partition.
Step 7 Follow the screen prompts, as follows:
Do you wish to erase the passwords? [yn] y
The following lines will be removed from the configuration:
enable password 8Ry2YjIyt7RRXU24 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
Do you want to remove the commands listed above from the configuration?
[yn] y
Passwords and aaa commands have been erased.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 24-7
Chapter 24 Troubleshooting the Firewall Services Module
Other Troubleshooting Tools
Capturing Packets
Capturing packets is sometimes useful when troubleshooting connectivity problems or monitoring
suspicious activity. The FWSM can track packet information for all traffic that passes through the
FWSM, including traffic that passes through the network processors and the general-purpose processor.
We recommend contacting technical support if you want to use the packet capture feature. See the
capture command in the Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services
Module Command Reference.
Common Problems
This section describes common problems with the FWSM, and how you might resolve them.
Symptom When you reset the FWSM from the switch CLI, the system always boots into the maintenance
partition.
Recommended Action Change the default boot partition according to the “Setting the Default Boot
Partition” section on page 2-13.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
24-8 OL-8123-01
Chapter 24 Troubleshooting the Firewall Services Module
Common Problems
Symptom You are unable to log into the maintenance partition with the same password as the application
partition.
Possible Cause The application partition and the maintenance partition have different password
databases.
Recommended Action Use the password appropriate for your partition. See the “Changing the
Passwords” section on page 7-1 for more information.
Possible Cause The VLANs are not configured on the switch or are not assigned to the FWSM.
Recommended Action Configure the VLANs and assign them to the FWSM according to the
“Assigning VLANs to the Firewall Services Module” section on page 2-2.
Possible Cause You did not assign that VLAN to the context.
Recommended Action Assign VLANs to contexts according to the “Configuring a Security Context”
section on page 4-18.
Symptom You cannot add more than one switched virtual interface (SVI) to the MSFC.
Recommended Action Enable multiple SVIs according to the “Adding Switched Virtual Interfaces to
the MSFC” section on page 2-5.
Symptom You cannot make a Telnet connection or SSH to the FWSM interface.
Possible Cause You did not enable Telnet or SSH to the FWSM.
Recommended Action Enable Telnet or SSH to the FWSM according to the “Allowing Telnet Access”
section on page 21-1 or the “Allowing SSH Access” section on page 21-2.
Recommended Action Enable ICMP to the FWSM according to the “Allowing ICMP to and from the
FWSM” section on page 21-10.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 24-9
Chapter 24 Troubleshooting the Firewall Services Module
Common Problems
Symptom You cannot ping through the FWSM, even though the access list allows it.
Possible Cause You did not enable the ICMP inspection engine or apply access lists on both the
source and destination interfaces.
Recommended Action Because ICMP is a connectionless protocol, the FWSM does not automatically
allow returning traffic through. In addition to an access list on the source interface, you either need
to apply an access list to destination interface to allow replying traffic, or enable the ICMP inspection
engine, which treats ICMP connections as stateful connections.
Symptom Traffic does not go through the FWSM from a higher security interface to a lower security
interface.
Possible Cause You did not apply an access list to the higher security interface to allow traffic
through. Unlike the PIX firewall, the FWSM does not automatically allow traffic to pass between
interfaces.
Recommended Action Apply an access list to the source interface to allow traffic through. See the
“Adding an Extended Access List” section on page 10-5.
Symptom Traffic does not pass between two interfaces on the same security level.
Possible Cause You did not enable the feature that allows traffic to pass between interfaces on the
same security level.
Recommended Action Enable this feature according to the “Allowing Communication Between
Interfaces on the Same Security Level” section on page 6-5.
Symptom When the FWSM fails over, the secondary unit does not pass traffic.
Possible Cause You did not assign the same VLANs for both units.
Recommended Action Make sure to assign the same VLANs to both units in the switch configuration.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
24-10 OL-8123-01
A P P E N D I X A
Specifications
This appendix lists the specifications of the FWSM and includes the following sections:
• Switch Hardware and Software Compatibility, page A-1
• Licensed Features, page A-2
• Physical Attributes, page A-2
• Feature Limits, page A-3
• Managed System Resources, page A-3
• Fixed System Resources, page A-5
• Rule Limits, page A-5
Note The FWSM does not support a direct connection to a switch WAN port because WAN ports do not use
static VLANs. However, the WAN port can connect to the MSFC, which can connect to the FWSM.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 A-1
Appendix A Specifications
Licensed Features
Supervisor Engines1
Cisco IOS
12.2(18)SXF and higher 720, 32
12.2(18)SXF2 and higher 2, 720, 32
Cisco IOS Software Modularity
12.2(18)SXF4 720, 32
2
Catalyst OS
8.5(3) and higher 2. 720, 32
1. The FWSM does not support the supervisor 1 or 1A.
2. When you use Catalyst OS on the supervisor, you can use any of the supported Cisco IOS releases above on the MSFC. (When
you use Cisco IOS software on the supervisor, you use the same release on the MSFC.)
Licensed Features
The FWSM supports the following licensed features:
• Multiple security contexts. The FWSM supports two contexts plus one admin context for a total of
three security contexts without a license. For more than three contexts, obtain one of the following
licenses:
– 20
– 50
– 100
– 250
• GTP/GPRS support.
Physical Attributes
Table A-2 lists the physical attributes of the FWSM.
Specification Description
Bandwidth CEF256 line card with a 6-Gbps path to the Switch Fabric Module (if
present) or the 32-Gbps shared bus.
Memory • 1-GB RAM.
• 128-MB Flash memory.
Modules per switch Maximum four modules per switch.
If you are using failover, you can still only have four modules per
switch even if two of them are in standby mode.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
A-2 OL-8123-01
Appendix A Specifications
Feature Limits
Feature Limits
Table A-3 lists the feature limits for the FWSM.
Context Mode
Specification Single Multiple
AAA servers (RADIUS and 16 4 per context
TACACS+)
Failover interface monitoring 250 250 divided between all contexts
Filtering servers (Websense 16 4 per context
Enterprise and Sentian by
N2H2)
Jumbo Ethernet packets 8500 Bytes 8500 Bytes
Security contexts N/A 250 security contexts (depending on your
software license).
Syslog servers 16 4 per context
Maximum of 16 divided between all contexts
VLAN interfaces
Routed Mode 256 100 per context
The FWSM has an overall limit of 1000 VLAN
interfaces divided between all contexts. You
can share outside interfaces between contexts,
and in some circumstances, you can share
inside interfaces.
Transparent Mode 8 pairs 8 pairs per context
Context Mode
Specification Single Multiple
MAC addresses (transparent 64 K 64 K divided between all contexts
firewall mode only)
Hosts allowed to connect 256 K 256 K divided between all contexts
through the FWSM, concurrent
Inspection engine connections, 10,000 per second 10,000 per second divided between all contexts
rate
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 A-3
Appendix A Specifications
Managed System Resources
Context Mode
Specification Single Multiple
IPSec management 5 5 per context
connections, concurrent
Maximum of 10 divided between all contexts
ASDM management sessions, 5 Up to 5 per context
concurrent1 Maximum of 80 divided between all contexts
NAT translations (xlates), 256 K 256 K divided between all contexts
concurrent
SSH management connections, 5 5 per context
concurrent2 Maximum of 100 divided between all contexts
System messages, rate 30,000 per second 30,000 per second divided between all contexts
for messages sent to for messages sent to the FWSM terminal or
the FWSM terminal buffer
or buffer
25,000 per second divided between all contexts
25,000 per second for messages sent to a syslog server
for messages sent to
a syslog server
TCP or UDP connections3 4 999,9005 999,900 divided between all contexts5
between any two hosts, 100,000 per second 100,000 per second divided between all
including connections between contexts
one host and multiple other
hosts, concurrent and rate
Telnet management 5 5 per context
connections, concurrent2
Maximum of 100 connections divided between
all contexts.
1. ASDM sessions use two HTTPS connections: one for monitoring that is always present, and one for making configuration
changes that is present only when you make changes. For example, the system limit of 80 ASDM sessions represents a limit
of 160 HTTPS connections.
2. The admin context can use up to 15 Telnet and SSH connections.
3. Embryonic connections are included in the total number of connections. If you configure an embryonic connection limit, then
embryonic connetions above the limit are not counted.
4. The FWSM might take up to 500 ms to remove a connection that is marked for deletion. Because any traffic on the connection
is dropped during this period, you cannot initiate a new connection to the same destination using the same source and
destination ports until the connection is deleted. Although most TCP applications do not resuse the same ports in back-to-back
connections, RSH might reuse the same ports. If you use RSH or any other application that resuses the same ports in
back-to-back connections, the FWSM might drop packets.
5. Because PAT requires a separate translation for each connection, the effective limit of connections using PAT is the
translation limit (256 K), not the higher connection limit. To use the connection limit, you need to use NAT, which allows
multiple connections using the same translation session.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
A-4 OL-8123-01
Appendix A Specifications
Fixed System Resources
Context Mode
Specification Single Multiple
AAA connections, rate 80 per second 80 per second divided between all contexts
Downloaded ACEs for network 5000 5000 divided between all contexts
access authorization
ACL logging flows, concurrent 32 K 32 K divided between all contexts
Alias statements 512 512 divided between all contexts
ARP table entries, concurrent 64 K 64 K divided between all contexts
DNS inspections, rate 5000 per second 5000 per second divided between all contexts
Global statements 4K 4 K divided between all contexts
Inspection statements 32 32 per context
NAT statements 2K 2 K divided between all contexts
Packet reassembly, concurrent 30,000 30,000 fragments divided between all contexts
Route table entries, concurrent 32 K 32 K divided between all contexts
Shun statements 5K 5 K divided between all contexts
Static NAT statements 2K 2 K divided between all contexts
1
TFTP sessions, concurrent 999,100 999,100 divided between all contexts
User authentication sessions, 50 K 50 K divided between all contexts
concurrent
User authorization sessions, 150 K 150 K divided between all contexts
concurrent
Maximum 15 Maximum 15 sessions per user.
sessions per user.
1. In FWSM Version 1.1, the number of TFTP sessions was limited to 1024 sessions.
Rule Limits
The FWSM supports a fixed number of rules for the entire system. Table A-6 lists the maximum number
of each rule type.
Context Mode
Multiple (Maximum per
Specification Single Partition) with 12 pools
AAA Rules 6451 992
ACEs 72,806 11,200
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 A-5
Appendix A Specifications
Rule Limits
Context Mode
Multiple (Maximum per
Specification Single Partition) with 12 pools
Established Rules 460 70
Filter Rules 2764 425
ICMP, Telnet, SSH, and HTTP Rules 1843 283
Policy NAT ACEs 1843 283
Inspect Rules 4147 1417
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
A-6 OL-8123-01
A P P E N D I X B
Sample Configurations
This appendix illustrates and describes a number of common ways to implement FWSM, and includes
the following sections:
• Routed Mode Sample Configurations, page B-1
• Transparent Mode Sample Configurations, page B-14
• Failover Example Configurations, page B-18
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 B-1
Appendix B Sample Configurations
Routed Mode Sample Configurations
Internet
MSFC
209.165.201.1
VLAN 3
Admin Context customerA customerB customerC
outside outside outside outside
209.165.201.2 209.165.201.3 209.165.201.4 209.165.201.5
DMZ
192.168.2.1
VLAN 8
Websense
inside inside inside inside 192.168.2.2
10.1.1.1 10.1.2.1 10.1.3.1 10.1.4.1
VLAN 4 VLAN 5 VLAN 6 VLAN 7
10.1.2.2
132977
customerA
Network 2
See the following sections for the configurations for this scenario:
• System Configuration (Example 1), page B-2
• Admin Context Configuration (Example 1), page B-3
• Customer A Context Configuration (Example 1), page B-4
• Customer B Context Configuration (Example 1), page B-4
• Customer C Context Configuration (Example 1), page B-5
• Switch Configuration (Example 1), page B-5
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
B-2 OL-8123-01
Appendix B Sample Configurations
Routed Mode Sample Configurations
hostname Farscape
password passw0rd
enable password chr1cht0n
admin-context admin
interface vlan 3
interface vlan 4
interface vlan 5
interface vlan 6
interface vlan 7
interface vlan 8
context admin
allocate-interface vlan3
allocate-interface vlan4
config-url disk://admin.cfg
member default
context customerA
description This is the context for customer A
allocate-interface vlan3
allocate-interface vlan5
config-url disk://contexta.cfg
member gold
context customerB
description This is the context for customer B
allocate-interface vlan3
allocate-interface vlan6
config-url disk://contextb.cfg
member silver
context customerC
description This is the context for customer C
allocate-interface vlan3
allocate-interface vlan7-vlan8
config-url disk://contextc.cfg
member bronze
class gold
limit-resource all 7%
limit-resource rate conns 2000
limit-resource conns 20000
class silver
limit-resource all 5%
limit-resource rate conns 1000
limit-resource conns 10000
class bronze
limit-resource all 3%
limit-resource rate conns 500
limit-resource conns 5000
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 B-3
Appendix B Sample Configurations
Routed Mode Sample Configurations
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
B-4 OL-8123-01
Appendix B Sample Configurations
Routed Mode Sample Configurations
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 B-5
Appendix B Sample Configurations
Routed Mode Sample Configurations
Management Host
209.165.200.225
Internet
MSFC
209.165.201.1
outside VLAN 3
209.165.201.3
dept1 DMZ
10.1.1.1 192.168.2.1
Department 1
VLAN 5 VLAN 10
Syslog Server
dept2 192.168.2.2
10.1.2.1
VLAN 4
Department 2
10.1.2.2
VLAN 9 192.168.1.1
132978
Department 2
Network 2
See the following sections for the configurations for this section:
• FWSM Configuration (Example 2), page B-7
• Switch Configuration (Example 2), page B-8
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
B-6 OL-8123-01
Appendix B Sample Configurations
Routed Mode Sample Configurations
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 B-7
Appendix B Sample Configurations
Routed Mode Sample Configurations
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
B-8 OL-8123-01
Appendix B Sample Configurations
Routed Mode Sample Configurations
Internet
MSFC
209.165.201.2
VLAN 200
132979
AAA Server Mail Server Syslog Server
10.1.1.6 10.1.1.7 10.1.1.8
See the following sections for the configurations for this scenario:
• System Configuration (Example 3), page B-9
• Admin Context Configuration (Example 3), page B-10
• Department 1 Context Configuration (Example 3), page B-11
• Department 2 Context Configuration (Example 3), page B-12
• Switch Configuration (Example 3), page B-12
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 B-9
Appendix B Sample Configurations
Routed Mode Sample Configurations
password pkd55
enable password deckard69
interface vlan 200
interface vlan 201
interface vlan 202
interface vlan 203
interface vlan 300
admin-context admin
context admin
allocate-interface vlan200
allocate-interface vlan201
allocate-interface vlan300
config-url disk0://admin.cfg
context department1
allocate-interface vlan200
allocate-interface vlan202
allocate-interface vlan300
config-url ftp://admin:[email protected]/dept1.cfg
context department2
allocate-interface vlan200
allocate-interface vlan203
allocate-interface vlan300
config-url ftp://admin:[email protected]/dept2.cfg
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
B-10 OL-8123-01
Appendix B Sample Configurations
Routed Mode Sample Configurations
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 B-11
Appendix B Sample Configurations
Routed Mode Sample Configurations
key TheUauthKey
server-port 16
! All traffic matching the WEBSERVER access list must authenticate with the AAA server
aaa authentication match WEBSERVER outside AAA-SERVER
logging trap 4
! System messages are sent to the syslog server on the Shared network
logging host shared 10.1.1.8
logging on
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
B-12 OL-8123-01
Appendix B Sample Configurations
Routed Mode Sample Configurations
IPv4
Network
10.142.10.1
IPv6
2001:400:3:1::1 Network
10.142.10.100
2001:400:3:1::100
10.140.10.100
2001:400:1:1::100
148961
IPv4/IPv6
Network
password pkd
enable password happy
hostname ubik
interface vlan 100
nameif outside
security-level 0
ip address 10.142.10.100 255.255.255.0
ipv6 address 2001:400:3:1::100/64
ipv6 nd suppress-ra
interface vlan 101
nameif inside
security-level 100
ip address 10.140.10.100 255.255.255.0
ipv6 address 2001:400:1:1::100/64
route outside 0.0.0.0 0.0.0.0 10.142.10.1 1
access-list INTERNET remark -Allows all inside IPv4 hosts to access the outside
access-list INTERNET extended permit ip any any
access-group INTERNET in interface inside
ipv6 route outside ::/0 2001:400:3:1::1
ipv6 access-list IPV6INTERNET permit ip any any
access-group IPV6INTERNET in interface inside
ipv6 access-list OUTACL permit icmp6 2001:400:2:1::/64 2001:400:1:1::/64
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 B-13
Appendix B Sample Configurations
Transparent Mode Sample Configurations
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
B-14 OL-8123-01
Appendix B Sample Configurations
Transparent Mode Sample Configurations
Internet
132981
Network 2 Network 2 Network 2 Network 2
See the following sections for the configurations for this scenario:
• System Configuration (Example 5), page B-15
• Admin Context Configuration (Example 5), page B-16
• Customer A Context Configuration (Example 5), page B-17
• Customer B Context Configuration (Example 5), page B-17
• Customer C Context Configuration (Example 5), page B-18
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 B-15
Appendix B Sample Configurations
Transparent Mode Sample Configurations
interface vlan 7
interface vlan 150
interface vlan 151
interface vlan 152
interface vlan 153
admin-context admin
context admin
allocate-interface vlan150
allocate-interface vlan4
config-url disk://admin.cfg
member default
context customerA
description This is the context for customer A
allocate-interface vlan151
allocate-interface vlan5
config-url disk://contexta.cfg
member gold
context customerB
description This is the context for customer B
allocate-interface vlan152
allocate-interface vlan6
config-url disk://contextb.cfg
member silver
context customerC
description This is the context for customer C
allocate-interface vlan153
allocate-interface vlan7
config-url disk://contextc.cfg
member bronze
class gold
limit-resource all 7%
limit-resource rate conns 2000
limit-resource conns 20000
class silver
limit-resource all 5%
limit-resource rate conns 1000
limit-resource conns 10000
class bronze
limit-resource all 3%
limit-resource rate conns 500
limit-resource conns 5000
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
B-16 OL-8123-01
Appendix B Sample Configurations
Transparent Mode Sample Configurations
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 B-17
Appendix B Sample Configurations
Failover Example Configurations
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
B-18 OL-8123-01
Appendix B Sample Configurations
Failover Example Configurations
Internet
VLAN 100
Context A
VLAN 201
Context B
VLAN 202
148178
Context C
VLAN 203
See the following sections for the configurations for this scenario:
• Primary FWSM Configuration (Example 6), page B-19
• Secondary FWSM System Configuration (Example 6), page B-21
• Switch Configuration (Example 6), page B-22
You must first enable multiple context mode using the mode multiple command. Then enter the
activation key to allow more than two contexts using the activation-key command. The mode and the
activation key are not stored in the configuration file, even though they do endure reboots. If you view
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 B-19
Appendix B Sample Configurations
Failover Example Configurations
the configuration on the FWSM using the write terminal, show startup, or show running commands,
the mode displays after the FWSM Release (blank means single mode, “<system>” means you are in
multiple mode in the system configuration, and <context> means you are in multiple mode in a context).
hostname primary
enable password farscape
password crichton
!The vlan 10 and 11 interfaces are created when you enter the failover lan interface and
failover link commands.
interface vlan 10
description LAN Failover interface
interface vlan 11
description STATE Failover interface
interface vlan 200
interface vlan 201
interface vlan 202
interface vlan 203
failover lan interface faillink vlan 10
failover link statelink vlan 11
failover lan unit primary
failover interface ip faillink 192.168.253.1 255.255.255.252 standby 192.168.253.2
failover interface ip statelink 192.168.253.5 255.255.255.252 standby 192.168.253.6
failover interface-policy 50%
failover replication http
failover
admin-context contexta
context contexta
allocate-interface vlan200
allocate-interface vlan201
config-url disk://contexta.cfg
context contextb
allocate-interface vlan200
allocate-interface vlan202
config-url ftp://admin:[email protected]/contextb.cfg
context contextc
allocate-interface vlan200
allocate-interface vlan203
config-url ftp://admin:[email protected]/contextc.cfg
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
B-20 OL-8123-01
Appendix B Sample Configurations
Failover Example Configurations
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 B-21
Appendix B Sample Configurations
Failover Example Configurations
failover
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
B-22 OL-8123-01
Appendix B Sample Configurations
Failover Example Configurations
Internet
VLAN 100
Failover Links:
VLAN 10
Trunk:
Primary Secondary
VLANs 10 and 11 VLAN 11
FWSM FWSM
Mgmt IPs: Mgmt IPs:
10.0.1.1 10.0.3.1 10.0.3.2 10.0.1.2
10.0.2.1 10.0.2.2
Context A
VLAN 4
Context B
148179
VLAN 5
Context C
VLAN 6
See the following sections for the configurations for this scenario:
• Primary FWSM Configuration (Example 7), page B-23
• Secondary FWSM System Configuration (Example 7), page B-26
• Switch Configuration (Example 7), page B-26
You must first enable multiple context mode using the mode multiple command. Then enter the
activation key to allow more than two contexts using the activation-key command. The mode and the
activation key are not stored in the configuration file, even though they do endure reboots. If you view
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 B-23
Appendix B Sample Configurations
Failover Example Configurations
the configuration on the FWSM using the write terminal, show startup, or show running commands,
the mode displays after the FWSM Release (blank means single mode, “<system>” means you are in
multiple mode in the system configuration, and <context> means you are in multiple mode in a context).
hostname primary
enable password farscape
password crichton
interface vlan 4
interface vlan 5
interface vlan 6
!The vlan 10 and 11 interfaces are created when you enter the failover lan interface and
failover link commands.
interface vlan 10
description LAN Failover interface
interface vlan 11
description STATE Failover interface
interface vlan 200
interface vlan 201
interface vlan 202
failover lan interface faillink vlan 10
failover link statelink vlan 11
failover lan unit primary
failover interface ip faillink 192.168.253.1 255.255.255.252 standby 192.168.253.2
failover interface ip statelink 192.168.253.5 255.255.255.252 standby 192.168.253.6
failover interface-policy 1
failover replication http
failover
admin-context contexta
context contexta
allocate-interface vlan200
allocate-interface vlan4
config-url disk://contexta.cfg
context contextb
allocate-interface vlan201
allocate-interface vlan5
config-url ftp://admin:[email protected]/contextb.cfg
context contextc
allocate-interface vlan202
allocate-interface vlan6
config-url ftp://admin:[email protected]/contextc.cfg
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
B-24 OL-8123-01
Appendix B Sample Configurations
Failover Example Configurations
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 B-25
Appendix B Sample Configurations
Failover Example Configurations
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
B-26 OL-8123-01
Appendix B Sample Configurations
Failover Example Configurations
VLAN 201
Internet
10.0.9.2 VLAN 202
10.0.9.1
10.0.5.1 10.0.5.2
192.168.1.1 192.168.1.2
Primary Trunk:
VLANs 10 and 11 Secondary
Failover Group 1 192.168.2.1 192.168.2.2 Failover Group 2
Active
Active
10.0.3.1
10.0.2.1
10.0.1.2
10.0.1.1
10.0.2.2
10.0.3.2
Active Contexts
Active Contexts
-Context A
-Context C
-Context B
Context C
VLAN 6
Context B
VLAN 5
148388
Context A
VLAN 4
Prerequisites
Both units must be in multiple context mode. Use the mode multiple command to switch the primary
and secondary FWSMs to multiple context mode. You must enter the mode multiple command on both
the primary and secondary unit to change modes; the mode multiple command is not replicated to the
secondary unit even in existing Active/Standby failover configurations.
Both FWSMs must be licensed for the same number of security contexts.
The failover groups and the failover and Stateful Failover VLANs are configured in the system context.
hostname cisco-primary
enable password farscape
password crichton
interface vlan 4
interface vlan 5
interface vlan 6
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 B-27
Appendix B Sample Configurations
Failover Example Configurations
!The vlan 10 and 11 interfaces are created when you enter the failover lan interface and
failover link commands.
interface vlan 10
description LAN Failover interface
interface vlan 11
description STATE Failover interface
interface vlan 201
interface vlan 202
failover
failover lan unit primary
failover lan interface faillink vlan 10
failover key MySecretKey
failover link statelink vlan 11
failover interface ip faillink 192.168.1.1 255.255.255.0 standby 192.168.1.2
failover interface ip statelink 192.168.2.1 255.255.255.0 standby 192.168.2.2
failover group 1
preempt
replication http
interface-policy 50%
failover group 2
secondary
preempt
replication http
interface-policy 50%
admin-context contexta
context contexta
description administrative context
allocate-interface vlan4
config-url disk://contexta.cfg
join-failover-group 1
context contextb
allocate-interface vlan201
allocate-interface vlan5
config-url ftp://admin:[email protected]/contextb.cfg
join-failover-group 1
context contextc
allocate-interface vlan202
allocate-interface vlan6
config-url ftp://admin:[email protected]/contextc.cfg
join-failover-group 2
Context A is the admin context. In this example the admin context contains only one interface, the inside
interface, for administrative access. Because the context contains only one interface, you cannot use
Telnet to access the FWSM through the interface. Telnet access is not permitted to the lowest security
level interface in a context, and because Context A has only one interface, it is the lowest level interface
by default. Instead, you must define an SSH connection to manage the FWSM through this interface.
interface vlan 4
nameif mgmt
security-level 5
ip address 10.0.3.1 255.255.255.0 standby 10.0.3.2
passwd secret1969
enable password h1andl0
monitor-interface inside
crypto key generate rsa modulus 1024
ssh 10.0.3.0 255.255.255.0 inside
ssh version 2
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
B-28 OL-8123-01
Appendix B Sample Configurations
Failover Example Configurations
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 B-29
Appendix B Sample Configurations
Failover Example Configurations
failover
failover lan unit secondary
failover lan interface faillink vlan 10
failover key MySecretKey
failover interface ip faillink 192.168.253.1 255.255.255.252 standby 192.168.253.2
When you enable failover with the failover command, the secondary FWSM obtains the configuration
from the primary FWSM.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
B-30 OL-8123-01
A P P E N D I X C
Using the Command-Line Interface
This appendix describes how to use the CLI on the FWSM, and includes the following sections:
• Firewall Mode and Security Context Mode, page C-1
• Command Modes and Prompts, page C-2
• Syntax Formatting, page C-3
• Abbreviating Commands, page C-3
• Command-Line Editing, page C-3
• Command Completion, page C-3
• Command Help, page C-4
• Filtering show Command Output, page C-4
• Command Output Paging, page C-5
• Adding Comments, page C-5
• Text Configuration Files, page C-6
Note The CLI uses similar syntax and other conventions to the Cisco IOS CLI, but the FWSM operating
system is not a version of Cisco IOS software. Do not assume that a Cisco IOS CLI command works
with or has the same function on the FWSM.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 C-1
Appendix C Using the Command-Line Interface
Command Modes and Prompts
When you are within a context, the prompt begins with the hostname followed by the context name:
hostname/context
hostname/context>
hostname/context#
hostname/context(config)#
hostname/context(config-if)#
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
C-2 OL-8123-01
Appendix C Using the Command-Line Interface
Syntax Formatting
Syntax Formatting
Command syntax descriptions use the following conventions:
Convention Description
bold Bold text indicates commands and keywords that you enter literally as shown.
italics Italic text indicates arguments for which you supply values.
[x] Square brackets enclose an optional element (keyword or argument).
| A vertical bar indicates a choice within an optional or required set of keywords or
arguments.
[x | y] Square brackets enclosing keywords or arguments separated by a vertical bar indicate
an optional choice.
{x | y} Braces enclosing keywords or arguments separated by a vertical bar indicate a required
choice.
[x {y | z}] Nested sets of square brackets or braces indicate optional or required choices within
optional or required elements. Braces and a vertical bar within square brackets indicate
a required choice within an optional element.
Abbreviating Commands
You can abbreviate most commands down to the fewest unique characters for a command; for example,
you can enter wr t to view the configuration instead of entering the full command write terminal, or
you can enter en to start privileged mode and conf t to start configuration mode. In addition, you can
enter 0 to represent 0.0.0.0.
Command-Line Editing
The FWSM uses the same command-line editing conventions as Cisco IOS software. You can view all
previously entered commands with the show history command or individually with the up arrow or ^p
command. Once you have examined a previously entered command, you can move forward in the list
with the down arrow or ^n command. When you reach a command you wish to reuse, you can edit it or
press the Enter key to start it. You can also delete the word to the left of the cursor with ^w, or erase the
line with ^u.
The FWSM permits up to 512 characters in a command; additional characters are ignored.
Command Completion
To complete a command or keyword after entering a partial string, press the Tab key. The FWSM only
completes the command or keyword if the partial string matches only one command or keyword. For
example, if you enter s and press the Tab key, the FWSM does not complete the command because it
matches more than one command. However, if you enter dis, the Tab key completes the command
disable.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 C-3
Appendix C Using the Command-Line Interface
Command Help
Command Help
Help information is available from the command line by entering the following commands:
• help command_name
Shows help for the specific command.
• help ?
Shows commands for which there is help.
• command_name ?
Shows a list of arguments available.
• string? (no space)
Lists the possible commands that start with the string.
• ? and +?
Lists all commands available. If you enter ?, the FWSM shows only commands available for the
current mode. To show all commands available, including those for lower modes, enter +?.
Note If you want to include a question mark (?) in a command string, you must press Ctrl-V before typing the
question mark so you do not inadvertently invoke CLI help.
In this command string, the first vertical bar (|) is the operator and must be included in the command.
This operator directs the output of the show command to the filter. In the syntax diagram, the other
vertical bars (|) indicate alternative options and are not part of the command.
The include option includes all output lines that match the regular expression. The grep option without
-v has the same effect. The exclude option excludes all output lines that match the regular expression.
The grep option with -v has the same effect. The begin option shows all the output lines starting with
the line that matches the regular expression.
Replace regexp with any Cisco IOS regular expression. See The regular expression is not enclosed in quotes
or double-quotes, so be careful with trailing white spaces, which will be taken as part of the regular
expression.
When creating regular expressions, you can use any letter or number that you want to match. In addition,
certain keyboard characters have special meaning when used in regular expressions. Table C-2 lists the
keyboard characters that have special meaning.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
C-4 OL-8123-01
Appendix C Using the Command-Line Interface
Command Output Paging
To use these special characters as single-character patterns, remove the special meaning by preceding
each character with a backslash (\).
The More prompt uses syntax similar to the UNIX more command:
• To view another screen, press the Space bar.
• To view the next line, press the Enter key.
• To return to the command line, press the q key.
Adding Comments
You can precede a line with a colon ( : ) to create a comment. However, the comment only appears in the
command history buffer and not in the configuration. Therefore, you can view the comment with the
show history command or by pressing an arrow key to retrieve a previous command, but because the
comment is not in the configuration, the write terminal command does not display it.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 C-5
Appendix C Using the Command-Line Interface
Text Configuration Files
In the text configuration file you are not prompted to enter commands, so the prompt is omitted:
context a
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
C-6 OL-8123-01
Appendix C Using the Command-Line Interface
Text Configuration Files
Line Order
For the most part, commands can be in any order in the file. However, some lines, such as ACEs, are
processed in the order they appear, and the order can affect the function of the access list. Other
commands might also have order requirements. For example, you must enter the nameif command for
an interface first because many subsequent commands use the name of the interface. Also, commands in
a command-specific configuration mode must directly follow the main command.
Passwords
The login, enable, and user passwords are automatically encrypted before they are stored in the
configuration. For example, the encrypted form of the password “cisco” might look like
jMorNbK0514fadBh. You can copy the configuration passwords to another FWSM in their encrypted
form, but you cannot unencrypt the passwords yourself.
If you enter an unencrypted password in a text file, the FWSM does not automatically encrypt them when
you copy the configuration to the FWSM. The FWSM only encrypts them when you save the
running configuration from the command line using the copy running-config startup-config or write
memory command.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 C-7
Appendix C Using the Command-Line Interface
Text Configuration Files
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
C-8 OL-8123-01
A P P E N D I X D
Addresses, Protocols, and Ports
This appendix provides a quick reference for IP addresses, protocols, and applications. This appendix
includes the following sections:
• IPv4 Addresses and Subnet Masks, page D-1
• IPv6 Addresses, page D-5
• Protocols and Applications, page D-11
• TCP and UDP Ports, page D-12
• Local Ports and Protocols, page D-14
• ICMP Types, page D-15
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 D-1
Appendix D Addresses, Protocols, and Ports
IPv4 Addresses and Subnet Masks
Classes
IP host addresses are divided into three different address classes: Class A, Class B, and Class C. Each
class fixes the boundary between the network prefix and the host number at a different point within the
32-bit address. Class D addresses are reserved for multicast IP.
• Class A addresses (1.xxx.xxx.xxx through 126.xxx.xxx.xxx) use only the first octet as the network
prefix.
• Class B addresses (128.0.xxx.xxx through 191.255.xxx.xxx) use the first two octets as the network
prefix.
• Class C addresses (192.0.0.xxx through 223.255.255.xxx) use the first three octets as the network
prefix.
Because Class A addresses have 16,777,214 host addresses, and Class B addresses 65,534 hosts, you can
use subnet masking to break these huge networks into smaller subnets.
Private Networks
If you need large numbers of addresses on your network, and they do not need to be routed on the
Internet, you can use private IP addresses that the Internet Assigned Numbers Authority (IANA)
recommends (see RFC 1918). The following address ranges are designated as private networks that
should not be advertised:
• 10.0.0.0 through 10.255.255.255
• 172.16.0.0 through 172.31.255.255
• 192.168.0.0 through 192.168.255.255
Subnet Masks
A subnet mask lets you convert a single Class A, B, or C network into multiple networks. With a subnet
mask, you can create an extended network prefix that adds bits from the host number to the network
prefix. For example, a Class C network prefix always consists of the first three octets of the IP address.
But a Class C extended network prefix uses part of the fourth octet as well.
Subnet masking is easy to understand if you use binary notation instead of dotted decimal. The bits in
the subnet mask have a one-to-one correspondence with the Internet address:
• The bits are set to 1 if the corresponding bit in the IP address is part of the extended network prefix.
• The bits are set to 0 if the bit is part of the host number.
Example 1: If you have the Class B address 129.10.0.0 and you want to use the entire third octet as part
of the extended network prefix instead of the host number, you must specify a subnet mask of
11111111.11111111.11111111.00000000. This subnet mask converts the Class B address into the
equivalent of a Class C address, where the host number consists of the last octet only.
Example 2: If you want to use only part of the third octet for the extended network prefix, then you must
specify a subnet mask like 11111111.11111111.11111000.00000000, which uses only 5 bits of the third
octet for the extended network prefix.
You can write a subnet mask as a dotted-decimal mask or as a /bits (“slash bits”) mask. In Example 1,
for a dotted-decimal mask, you convert each binary octet into a decimal number: 255.255.255.0. For a
/bits mask, you add the number of 1s: /24. In Example 2, the decimal number is 255.255.248.0 and the
/bits is /21.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
D-2 OL-8123-01
Appendix D Addresses, Protocols, and Ports
IPv4 Addresses and Subnet Masks
You can also supernet multiple Class C networks into a larger network by using part of the third octet
for the extended network prefix. For example, 192.168.0.0/20.
This section includes the following topics:
• Determining the Subnet Mask, page D-3
• Determining the Address to Use with the Subnet Mask, page D-3
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 D-3
Appendix D Addresses, Protocols, and Ports
IPv4 Addresses and Subnet Masks
For a network between 2 and 254 hosts, the fourth octet falls on a multiple of the number of host
addresses, starting with 0. For example, the 8-host subnets (/29) of 192.168.0.x are as follows:
To determine the network address to use with the subnet mask for a network with between 254 and
65,534 hosts, you need to determine the value of the third octet for each possible extended network
prefix. For example, you might want to subnet an address like 10.1.x.0, where the first two octets are
fixed because they are used in the extended network prefix, and the fourth octet is 0 because all bits are
used for the host number.
To determine the value of the third octet, perform the following steps:
Step 1 Calculate how many subnets you can make from the network by dividing 65,536 (the total number of
addresses using the third and fourth octet) by the number of host addresses you want.
For example, 65,536 divided by 4096 hosts equals 16.
Therefore, there are 16 subnets of 4096 addresses each in a Class B-size network.
Step 2 Determine the multiple of the third octet value by dividing 256 (the number of values for the third octet)
by the number of subnets:
In this example, 256/16 = 16.
The third octet falls on a multiple of 16, starting with 0.
Therefore, the 16 subnets of the network 10.1 are as follows:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
D-4 OL-8123-01
Appendix D Addresses, Protocols, and Ports
IPv6 Addresses
IPv6 Addresses
IPv6 is the next generation of the Internet Protocol after IPv4. It provides an expanded address space, a
simplified header format, improved support for extensions and options, flow labeling capability, and
authentication and privacy capabilities. IPv6 is described in RFC 2460. The IPv6 addressing architecture
is described in RFC 3513.
This section describes the IPv6 address format and architecture and includes the following topics:
• IPv6 Address Format, page D-5
• IPv6 Address Types, page D-6
• IPv6 Address Prefixes, page D-10
Note This section describes the IPv6 address format, the types, and prefixes. For information about
configuring FWSM to use IPv6, see Chapter 9, “Configuring IPv6.”
It is not necessary to include the leading zeros in an individual field of the address. But each field must
contain at least one digit. So the example address 2001:0DB8:0000:0000:0008:0800:200C:417A can be
shortened to 2001:0DB8:0:0:8:800:200C:417A by removing the leading zeros from the third through
sixth fields from the left. The fields that contained all zeros (the third and fourth fields from the left)
were shortened to a single zero. The fifth field from the left had the three leading zeros removed, leaving
a single 8 in that field, and the sixth field from the left had the one leading zero removed, leaving 800 in
that field.
It is common for IPv6 addresses to contain several consecutive hexadecimal fields of zeros. You can use
two colons (::) to compress consecutive fields of zeros at the beginning, middle, or end of an IPv6
address (the colons represent the successive hexadecimal fields of zeros). Table D-2 shows several
examples of address compression for different types of IPv6 address.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 D-5
Appendix D Addresses, Protocols, and Ports
IPv6 Addresses
Note Two colons (::) can be used only once in an IPv6 address to represent successive fields of zeros.
An alternative form of the IPv6 format is often used when dealing with an environment that contains
both IPv4 and IPv6 addresses. This alternative has the format x:x:x:x:x:x:y.y.y.y, where x represent the
hexadecimal values for the six high-order parts of the IPv6 address and y represent decimal values for
the 32-bit IPv4 part of the address (which takes the place of the remaining two 16-bit parts of the IPv6
address). For example, the IPv4 address 192.168.1.1 could be represented as the IPv6 address
0:0:0:0:0:0:FFFF:192.168.1.1, or ::FFFF:192.168.1.1.
Note There are no broadcast addresses in IPv6. Multicast addresses provide the broadcast functionality.
Unicast Addresses
This section describes IPv6 unicast addresses. Unicast addresses identify an interface on a network node.
This section includes the following topics:
• Global Address, page D-7
• Site-Local Address, page D-7
• Link-Local Address, page D-7
• IPv4-Compatible IPv6 Addresses, page D-7
• Unspecified Address, page D-8
• Loopback Address, page D-8
• Interface Identifiers, page D-8
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
D-6 OL-8123-01
Appendix D Addresses, Protocols, and Ports
IPv6 Addresses
Global Address
The general format of an IPv6 global unicast address is a global routing prefix followed by a subnet ID
followed by an interface ID. The global routing prefix can be any prefix not reserved by another IPv6
address type (see IPv6 Address Prefixes, page D-10, for information about the IPv6 address type
prefixes).
All global unicast addresses, other than those that start with binary 000, have a 64-bit interface ID in the
Modified EUI-64 format. See Interface Identifiers, page D-8, for more information about the Modified
EUI-64 format for interface identifiers.
Global unicast address that start with the binary 000 do not have any constraints on the size or structure
of the interface ID portion of the address. One example of this type of address is an IPv6 address with
an embedded IPv4 address (see IPv4-Compatible IPv6 Addresses, page D-7).
Site-Local Address
Site-local addresses are used for addressing within a site. They can be use to address an entire site
without using a globally unique prefix. Site-local addresses have the prefix FEC0::/10, followed by a
54-bit subnet ID, and end with a 64-bit interface ID in the modified EUI-64 format.
Site-local Routers do not forward any packets that have a site-local address for a source or destination
outside of the site. Therefore, site-local addresses can be considered private addresses.
Link-Local Address
All interfaces are required to have at least one link-local address. You can configure multiple IPv6
addresses per interfaces, but only one link-local address.
A link-local address is an IPv6 unicast address that can be automatically configured on any interface
using the link-local prefix FE80::/10 and the interface identifier in modified EUI-64 format. Link-local
addresses are used in the neighbor discovery protocol and the stateless autoconfiguration process. Nodes
with a link-local address can communicate; they do not need a site-local or globally unique address to
communicate.
Routers do not forward any packets that have a link-local address for a source or destination. Therefore,
link-local addresses can be considered private addresses.
There are two types of IPv6 addresses that can contain IPv4 addresses.
The first type is the “IPv4-compatibly IPv6 address.” The IPv6 transition mechanisms include a
technique for hosts and routers to dynamically tunnel IPv6 packets over IPv4 routing infrastructure. IPv6
nodes that use this technique are assigned special IPv6 unicast addresses that carry a global IPv4 address
in the low-order 32 bits. This type of address is termed an “IPv4-compatible IPv6 address” and has the
format ::y.y.y.y, where y.y.y.y is an IPv4 unicast address.
Note The IPv4 address used in the “IPv4-compatible IPv6 address” must be a globally-unique IPv4 unicast
address.
The second type of IPv6 address which holds an embedded IPv4 address is called the “IPv4-mapped
IPv6 address.” This address type is used to represent the addresses of IPv4 nodes as IPv6 addresses. This
type of address has the format ::FFFF:y.y.y.y, where y.y.y.y is an IPv4 unicast address.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 D-7
Appendix D Addresses, Protocols, and Ports
IPv6 Addresses
Unspecified Address
The unspecified address, 0:0:0:0:0:0:0:0, indicates the absence of an IPv6 address. For example, a newly
initialized node on an IPv6 network may use the unspecified address as the source address in its packets
until it receives its IPv6 address.
Note The IPv6 unspecified address cannot be assigned to an interface. The unspecified IPv6 addresses must
not be used as destination addresses in IPv6 packets or the IPv6 routing header.
Loopback Address
The loopback address, 0:0:0:0:0:0:0:1, may be used by a node to send an IPv6 packet to itself. The
loopback address in IPv6 functions the same as the loopback address in IPv4 (127.0.0.1).
Note The IPv6 loopback address cannot be assigned to a physical interface. A packet that has the IPv6
loopback address as its source or destination address must remain within the node that created the packet.
IPv6 routers do not forward packets that have the IPv6 loopback address as their source or destination
address.
Interface Identifiers
Interface identifiers in IPv6 unicast addresses are used to identify the interfaces on a link. They need to
be unique within a subnet prefix. In many cases, the interface identifier is derived from the interface
link-layer address. The same interface identifier may be used on multiple interfaces of a single node, as
long as those interfaces are attached to different subnets.
For all unicast addresses, except those that start with the binary 000, the interface identifier is required
to be 64 bits long and to be constructed in the Modified EUI-64 format. The Modified EUI-64 format is
created from the 48-bit MAC address by inverting the universal/local bit in the address and by inserting
the hexadecimal number FFFE between the upper three bytes and lower three bytes of the of the MAC
address.
For example, and interface with the MAC address of 00E0.b601.3B7A would have a 64-bit interface ID
of 02E0:B6FF:FE01:3B7A.
Multicast Address
An IPv6 multicast address is an identifier for a group of interfaces, typically on different nodes. A packet
sent to a multicast address is delivered to all interfaces identified by the multicast address. An interface
may belong to any number of multicast groups.
An IPv6 multicast address has a prefix of FF00::/8 (1111 1111). The octet following the prefix defines
the type and scope of the multicast address. A permanently assigned (“well known”) multicast address
has a flag parameter equal to 0; a temporary (“transient”) multicast address has a flag parameter equal
to 1. A multicast address that has the scope of a node, link, site, or organization, or a global scope has a
scope parameter of 1, 2, 5, 8, or E, respectively. For example, a multicast address with the prefix
FF02::/16 is a permanent multicast address with a link scope. Figure D-1 shows the format of the IPv6
multicast address.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
D-8 OL-8123-01
Appendix D Addresses, Protocols, and Ports
IPv6 Addresses
128 bits
0 Interface ID
4 bits 4 bits
1111 1111
0 if permanent
F F Flag Scope Flag =
1 if temporary
1 = node
8 bits 8 bits 2 = link
Scope = 4 = admin
5 = site
92617
8 = organization
E = global
IPv6 nodes (hosts and routers) are required to join the following multicast groups:
• The All Nodes multicast addresses:
– FF01:: (interface-local)
– FF02:: (link-local)
• The Solicited-Node Address for each IPv6 unicast and anycast address on the node:
FF02:0:0:0:0:1:FFXX:XXXX/104, where XX:XXXX is the low-order 24-bits of the unicast or
anycast address.
Note There are no broadcast addresses in IPv6. IPv6 multicast addresses are used instead of broadcast
addresses.
Anycast Address
The IPv6 anycast address is a unicast address that is assigned to more than one interface (typically
belonging to different nodes). A packet that is routed to an anycast address is routed to the nearest
interface having that address, the nearness being determined by the routing protocol in effect.
Anycast addresses are allocated from the unicast address space. An anycast address is simply a unicast
address that has been assigned to more than one interface, and the interfaces must be configured to
recognize the address as an anycast address.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 D-9
Appendix D Addresses, Protocols, and Ports
IPv6 Addresses
Required Addresses
IPv6 hosts must, at a minimum, be configured with the following addresses (either automatically or
manually):
• A link-local address for each interface.
• The loopback address.
• The All-Nodes multicast addresses
• A Solicited-Node multicast address for each unicast or anycast address.
IPv6 routers must, at a minimum, be configured with the following addresses (either automatically or
manually):
• The required host addresses.
• The Subnet-Router anycast addresses for all interfaces for which it is configured to act as a router.
• The All-Routers multicast addresses.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
D-10 OL-8123-01
Appendix D Addresses, Protocols, and Ports
Protocols and Applications
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 D-11
Appendix D Addresses, Protocols, and Ports
TCP and UDP Ports
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
D-12 OL-8123-01
Appendix D Addresses, Protocols, and Ports
TCP and UDP Ports
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 D-13
Appendix D Addresses, Protocols, and Ports
Local Ports and Protocols
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
D-14 OL-8123-01
Appendix D Addresses, Protocols, and Ports
ICMP Types
Table D-6 Protocols and Ports Opened by Features and Services (continued)
ICMP Types
Table D-7 lists the ICMP type numbers and names that you can enter in FWSM commands:
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 D-15
Appendix D Addresses, Protocols, and Ports
ICMP Types
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
D-16 OL-8123-01
A P P E N D I X F
Open Source License Acknowledgements
License Issues
The OpenSSL toolkit stays under a dual license, i.e. both the conditions of the OpenSSL License and the
original SSLeay license apply to the toolkit. See below for the actual license texts. Actually both licenses
are BSD-style Open Source licenses. In case of any license issues related to OpenSSL please contact
[email protected].
OpenSSL License:
© 1998-2007 The OpenSSL Project. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided
that the following conditions are met:
1. Redistributions of source code must retain the copyright notice, this list of conditions and the
following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions, and
the following disclaimer in the documentation and/or other materials provided with the distribution.
3. All advertising materials mentioning features or use of this software must display the following
acknowledgment: “This product includes software developed by the OpenSSL Project for use in the
OpenSSL Toolkit. (http://www.openssl.org/)”
4. The names “OpenSSL Toolkit” and “OpenSSL Project” must not be used to endorse or promote
products derived from this software without prior written permission. For written permission, please
contact [email protected].
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 F-1
Appendix F Open Source License Acknowledgements
Open Source License Acknowledgements
5. Products derived from this software may not be called “OpenSSL” nor may “OpenSSL” appear in
their names without prior written permission of the OpenSSL Project.
6. Redistributions of any form whatsoever must retain the following acknowledgment:
“This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit
(http://www.openssl.org/)”
THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT “AS IS”' AND ANY EXPRESSED OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
NO EVENT SHALL THE OpenSSL PROJECT OR ITS CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
This product includes cryptographic software written by Eric Young ([email protected]). This product
includes software written by Tim Hudson ([email protected]).
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
F-2 OL-8123-01
Appendix F Open Source License Acknowledgements
Open Source License Acknowledgements
THIS SOFTWARE IS PROVIDED BY ERIC YOUNG “AS IS” AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The license and distribution terms for any publicly available version or derivative of this code cannot be
changed. i.e. this code cannot simply be copied and put under another distribution license [including the
GNU Public License].
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 F-3
Appendix F Open Source License Acknowledgements
Open Source License Acknowledgements
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
F-4 OL-8123-01
GLOSSARY
A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X
Numerics
3DES See DES.
A
AAA Authentication, authorization, and accounting. See also TACACS+ and RADIUS.
ABR Area Border Router. In OSPF, a router with interfaces in multiple areas.
ACE Access Control Entry. Information entered into the configuration that lets you specify what type of
traffic to permit or deny on an interface. By default, traffic that is not explicitly permitted is denied.
Access Modes The FWSM CLI uses several command modes. The commands available in each mode vary. See also
user EXEC mode, privileged EXEC mode, global configuration mode, command-specific configuration
mode.
ACL access control list. A collection of ACEs. An ACL lets you specify what type of traffic to allow on an
interface. By default, traffic that is not explicitly permitted is denied. ACLs are usually applied to the
interface which is the source of inbound traffic. See also rule, outbound ACL.
ActiveX A set of object-oriented programming technologies and tools used to create mobile or portable
programs. An ActiveX program is roughly equivalent to a Java applet.
address translation The translation of a network address and/or port to another network address/or port. See also IP
address, interface PAT, NAT, PAT, Static PAT, xlate.
AES Advanced Encryption Standard. A symmetric block cipher that can encrypt and decrypt information.
The AES algorithm is capable of using cryptographic keys of 128, 192 and 256 bits to encrypt and
decrypt data in blocks of 128 bits. See also DES.
AH Authentication Header. An IP protocol (type 51) that can ensure data integrity, authentication, and
replay detection. AH is embedded in the data to be protected (a full IP datagram, for example). AH
can be used either by itself or with ESP. This is an older IPSec protocol that is less important in most
networks than ESP. AH provides authentication services but does not provide encryption services. It
is provided to ensure compatibility with IPSec peers that do not support ESP, which provides both
authentication and encryption. See also encryption and VPN. Refer to the RFC 2402.
A record address “A” stands for address, and refers to name-to-address mapped records in DNS.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 GL-1
Glossary
ARP Address Resolution Protocol. A low-level TCP/IP protocol that maps a hardware address, or MAC
address, to an IP address. An example hardware address is 00:00:a6:00:01:ba. The first three groups
of characters (00:00:a6) identify the manufacturer; the rest of the characters (00:01:ba) identify the
system card. ARP is defined in RFC 826.
ASA Adaptive Security Algorithm. Used by the FWSM to perform inspections. ASA allows one-way
(inside to outside) connections without an explicit configuration for each internal system and
application. See also inspection engine.
ASDM Adaptive Security Device Manager. An application for managing and configuring a single FWSM.
asymmetric Also called public key systems, asymmetric encryption allows anyone to obtain access to the public
encryption key of anyone else. Once the public key is accessed, one can send an encrypted message to that person
using the public key. See also encryption, public key.
authentication Cryptographic protocols and services that verify the identity of users and the integrity of data. One of
the functions of the IPSec framework. Authentication establishes the integrity of datastream and
ensures that it is not tampered with in transit. It also provides confirmation about the origin of the
datastream. See also AAA, encryption, and VPN.
B
BGP Border Gateway Protocol. BGP performs interdomain routing in TCP/IP networks. BGP is an Exterior
Gateway Protocol, which means that it performs routing between multiple autonomous systems or
domains and exchanges routing and access information with other BGP systems. The FWSM does not
support BGP. See also EGP.
BLT stream Bandwidth Limited Traffic stream. Stream or flow of packets whose bandwidth is constrained.
BOOTP Bootstrap Protocol. Lets diskless workstations boot over the network as is described in RFC 951 and
RFC 1542.
BPDU Bridge Protocol Data Unit. Spanning-Tree Protocol hello packet that is sent out at configurable
intervals to exchange information among bridges in the network. Protocol data unit is the OSI term
for packet.
C
CA Certificate Authority, Certification Authority. A third-party entity that is responsible for issuing and
revoking certificates. Each device with the public key of the CA can authenticate a device that has a
certificate issued by the CA. The term CA also refers to software that provides CA services. See also
certificate, CRL, public key, RA.
cache A temporary repository of information accumulated from previous task executions that can be reused,
decreasing the time required to perform the tasks.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
GL-2 OL-8123-01
Glossary
CBC Cipher Block Chaining. A cryptographic technique that increases the encryption strength of an
algorithm. CBC requires an initialization vector (IV) to start encryption. The IV is explicitly given in
the IPSec packet.
certificate A signed cryptographic object that contains the identity of a user or device and the public key of the
CA that issued the certificate. Certificates have an expiration date and may also be placed on a CRL
if known to be compromised. Certificates also establish non-repudiation for IKE negotiation, which
means that you can prove to a third party that IKE negotiation was completed with a specific peer.
CLI command-line interface. The primary interface for entering configuration and monitoring commands
to the FWSM.
client/server Distributed computing (processing) network systems in which transaction responsibilities are divided
computing into two parts: client (front end) and server (back end). Also called distributed computing. See also
RPC.
command-specific From global configuration mode, some commands enter a command-specific configuration mode. All
configuration mode user EXEC, privileged EXEC, global configuration, and command-specific configuration commands
are available in this mode. See also global configuration mode, privileged EXEC mode, user EXEC
mode.
configuration, A file on the FWSM that represents the equivalent of settings, preferences, and properties
config, config file administered by ASDM or the CLI.
cookie A cookie is a object stored by a browser. Cookies contain information, such as user preferences, to
persistent storage.
CRC cyclical redundancy check. Error-checking technique in which the frame recipient calculates a
remainder by dividing frame contents by a prime binary divisor and compares the calculated
remainder to a value stored in the frame by the sending node.
CRL Certificate Revocation List. A digitally signed message that lists all of the current but revoked
certificates listed by a given CA. This is analogous to a book of stolen charge card numbers that allow
stores to reject bad credit cards. When certificates are revoked, they are added to a CRL. When you
implement authentication using certificates, you can choose to use CRLs or not. Using CRLs lets you
easily revoke certificates before they expire, but the CRL is generally only maintained by the CA or
an RA. If you are using CRLs and the connection to the CA or RA is not available when authentication
is requested, the authentication request will fail. See also CA, certificate, public key, RA.
CRV Call Reference Value. Used by H.225.0 to distinguish call legs signalled between two entities.
cryptography Encryption, authentication, integrity, keys and other services used for secure communication over
networks. See also VPN and IPSec.
crypto map A data structure with a unique name and sequence number that is used for configuring VPNs on the
FWSM. A crypto map selects data flows that need security processing and defines the policy for these
flows and the crypto peer that traffic needs to go to. A crypto map is applied to an interface. Crypto
maps contain the ACLs, encryption standards, peers, and other parameters necessary to specify
security policies for VPNs using IKE and IPSec. See also VPN.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 GL-3
Glossary
CTIQBE Computer Telephony Interface Quick Buffer Encoding. A protocol used in IP telephony between the
Cisco CallManager and CTI TAPI and JTAPI applications. CTIQBE is used by the TAPI/JTAPI
protocol inspection module and supports NAT, PAT, and bi-directional NAT. This enables Cisco IP
SoftPhone and other Cisco TAPI/JTAPI applications to communicate with Cisco CallManager for call
setup and voice traffic across the FWSM.
cut-through proxy Enables the FWSM to provide faster traffic flow after user authentication. The cut-through proxy
challenges a user initially at the application layer. After the security appliance authenticates the user,
it shifts the session flow and all traffic flows directly and quickly between the source and destination
while maintaining session state information.
D
data confidentiality Describes any method that manipulates data so that no attacker can read it. This is commonly achieved
by data encryption and keys that are only available to the parties involved in the communication.
data integrity Describes mechanisms that, through the use of encryption based on secret key or public key
algorithms, allow the recipient of a piece of protected data to verify that the data has not been modified
in transit.
data origin A security service where the receiver can verify that protected data could have originated only from
authentication the sender. This service requires a data integrity service plus a key distribution mechanism, where a
secret key is shared only between the sender and receiver.
decryption Application of a specific algorithm or cipher to encrypted data so as to render the data comprehensible
to those who are authorized to see the information. See also encryption.
DES Data encryption standard. DES was published in 1977 by the National Bureau of Standards and is a
secret key encryption scheme based on the Lucifer algorithm from IBM. Cisco uses DES in classic
crypto (40-bit and 56-bit key lengths), IPSec crypto (56-bit key), and 3DES (triple DES), which
performs encryption three times using a 56-bit key. 3DES is more secure than DES but requires more
processing for encryption and decryption. See also AES, ESP.
DHCP Dynamic Host Configuration Protocol. Provides a mechanism for allocating IP addresses to hosts
dynamically, so that addresses can be reused when hosts no longer need them and so that mobile
computers, such as laptops, receive an IP address applicable to the LAN to which it is connected.
Diffie-Hellman A public key cryptography protocol that allows two parties to establish a shared secret over insecure
communications channels. Diffie-Hellman is used within IKE to establish session keys.
Diffie-Hellman is a component of Oakley key exchange.
Diffie-Hellman Diffie-Hellman refers to a type of public key cryptography using asymmetric encryption based on
Group 1, Group 2, large prime numbers to establish both Phase 1 and Phase 2 SAs. Group 1 provides a smaller prime
Group 5, Group 7 number than Group 2 but may be the only version supported by some IPSec peers. Diffe-Hellman
Group 5 uses a 1536-bit prime number, is the most secure, and is recommended for use with AES.
Group 7 has an elliptical curve field size of 163 bits and is for use with the Movian VPN client, but
works with any peer that supports Group 7 (ECC). See also VPN and encryption.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
GL-4 OL-8123-01
Glossary
DN Distinguished Name. Global, authoritative name of an entry in the OSI Directory (X.500).
DNS Domain Name System (or Service). An Internet service that translates domain names into IP
addresses.
DoS Denial of Service. A type of network attack in which the goal is to render a network service
unavailable.
DSL digital subscriber line. Public network technology that delivers high bandwidth over conventional
copper wiring at limited distances. DSL is provisioned via modem pairs, with one modem located at
a central office and the other at the customer site. Because most DSL technologies do not use the
whole bandwidth of the twisted pair, there is room remaining for a voice channel.
DSP digital signal processor. A DSP segments a voice signal into frames and stores them in voice packets.
DSS Digital Signature Standard. A digital signature algorithm designed by The US National Institute of
Standards and Technology and based on public-key cryptography. DSS does not do user datagram
encryption. DSS is a component in classic crypto, as well as the Redcreek IPSec card, but not in IPSec
implemented in Cisco IOS software.
Dynamic PAT Dynamic Port Address Translation. Dynamic PAT lets multiple outbound sessions appear to originate
from a single IP address. With PAT enabled, the FWSM chooses a unique port number from the PAT
IP address for each outbound translation slot (xlate). This feature is valuable when an ISP cannot
allocate enough unique IP addresses for your outbound connections. The global pool addresses always
come first, before a PAT address is used. See also NAT, Static PAT, and xlate.
E
ECHO See Ping, ICMP. See also inspection engine.
EGP Exterior Gateway Protocol. Replaced by BGP. The FWSM does not support EGP. See also BGP.
EIGRP Enhanced Interior Gateway Routing Protocol. The FWSM does not support EIGRP.
encryption Application of a specific algorithm or cipher to data so as to render the data incomprehensible to those
unauthorized to see the information. See also decryption.
ESMTP Extended SMTP. Extended version of SMTP that includes additional functionality, such as delivery
notification and session delivery. ESMTP is described in RFC 1869, SMTP Service Extensions.
ESP Encapsulating Security Payload. An IPSec protocol, ESP provides authentication and encryption
services for establishing a secure tunnel over an insecure network. For more information, refer to
RFCs 2406 and 1827.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 GL-5
Glossary
F
failover, failover Failover lets you configure two FWSMs so that one will take over operation if the other one fails. The
mode FWSM supports two failover configurations, Active/Active failover and Active/Standby failover. Each
failover configuration has its own method for determining and performing failover. With
Active/Active failover, both units can pass network traffic. This lets you configure load balancing on
your network. Active/Active failover is only available on units running in multiple context mode. With
Active/Standby failover, only one unit passes traffic while the other unit waits in a standby state.
Active/Standby failover is available on units running in either single or multiple context mode.
Flash, Flash A nonvolatile storage device used to store the configuration file when the FWSM is powered down.
memory
FQDN/IP Fully qualified domain name/IP address. IPSec parameter that identifies peers that are security
gateways.
FragGuard Provides IP fragment protection and performs full reassembly of all ICMP error messages and virtual
reassembly of the remaining IP fragments that are routed through the FWSM.
FTP File Transfer Protocol. Part of the TCP/IP protocol stack, used for transferring files between hosts.
G
GGSN gateway GPRS support node. A wireless gateway that allows mobile cell phone users to access the
public data network or specified private IP networks.
global Global configuration mode lets you to change the FWSM configuration. All user EXEC, privileged
configuration mode EXEC, and global configuration commands are available in this mode. See also user EXEC mode,
privileged EXEC mode, command-specific configuration mode.
GMT Greenwich Mean Time. Replaced by UTC (Coordinated Universal Time) in 1967 as the world time
standard.
GPRS general packet radio service. A service defined and standardized by the European Telecommunication
Standards Institute. GPRS is an IP-packet-based extension of GSM networks and provides mobile,
wireless, data communications
GRE Generic Routing Encapsulation described in RFCs 1701 and 1702. GRE is a tunneling protocol that
can encapsulate a wide variety of protocol packet types inside IP tunnels, creating a virtual
point-to-point link to routers at remote points over an IP network. By connecting multiprotocol
subnetworks in a single-protocol backbone environment, IP tunneling using GRE allows network
expansion across a single protocol backbone environment.
GSM Global System for Mobile Communication. A digital, mobile, radio standard developed for mobile,
wireless, voice communications.
GTP GPRS tunneling protocol. GTP handles the flow of user packet data and signaling information
between the SGSN and GGSN in a GPRS network. GTP is defined on both the Gn and Gp interfaces
of a GPRS network.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
GL-6 OL-8123-01
Glossary
H
H.225 A protocol used for TCP signalling in applications such as video conferencing. See also H.323 and
inspection engine.
H.225.0 An ITU standard that governs H.225.0 session establishment and packetization. H.225.0 actually
describes several different protocols: RAS, use of Q.931, and use of RTP.
H.320 Suite of ITU-T standard specifications for video conferencing over circuit-switched media, such as
ISDN, fractional T-1, and switched-56 lines. Extensions of ITU-T standard H.320 enable video
conferencing over LANs and other packet-switched networks, as well as video over the Internet.
H.323 Allows dissimilar communication devices to communicate with each other by using a standardized
communication protocol. H.323 defines a common set of CODECs, call setup and negotiating
procedures, and basic data transport methods.
H.323 RAS Registration, admission, and status signaling protocol. Enables devices to perform registration,
admissions, bandwidth changes, and status and disengage procedures between VoIP gateway and the
gatekeeper.
Hash, Hash A hash algorithm is a one way function that operates on a message of arbitrary length to create a
Algorithm fixed-length message digest used by cryptographic services to ensure its data integrity. MD5 has a
smaller digest and is considered to be slightly faster than SHA-1. Cisco uses both SHA-1 and MD5
hashes within our implementation of the IPSec framework. See also encryption, HMAC, and VPN.
headend A firewall, concentrator, or other host that serves as the entry point into a private network for VPN
client connections over the public network. See also ISP and VPN.
HMAC A mechanism for message authentication using cryptographic hashes such as SHA-1 and MD5.
host The name for any device on a TCP/IP network that has an IP address. See also network and node.
host/network An IP address and netmask used with other information to identify a single host or network subnet for
FWSM configuration, such as an address translation (xlate) or ACE.
HTTP Hypertext Transfer Protocol. A protocol used by browsers and web servers to transfer files. When a
user views a web page, the browser can use HTTP to request and receive the files used by the web
page. HTTP transmissions are not encrypted.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 GL-7
Glossary
I
IANA Internet Assigned Number Authority. Assigns all port and protocol numbers for use on the Internet.
ICMP Internet Control Message Protocol. Network-layer Internet protocol that reports errors and provides
other information relevant to IP packet processing.
IETF The Internet Engineering Task Force. A technical standards organization that develops RFC
documents defining protocols for the Internet.
IGMP Internet Group Management Protocol. IGMP is a protocol used by IPv4 systems to report IP multicast
memberships to neighboring multicast routers.
IKE Internet Key Exchange. IKE establishes a shared security policy and authenticates keys for services
(such as IPSec) that require keys. Before any IPSec traffic can be passed, each FWSM must verify the
identity of its peer. This can be done by manually entering preshared keys into both hosts or by a CA
service. IKE is a hybrid protocol that uses part Oakley and part of another protocol suite called
SKEME inside ISAKMP framework. This is the protocol formerly known as ISAKMP/Oakley, and is
defined in RFC 2409.
IKE Extended IKE Extended Authenticate (Xauth) is implemented per the IETF draft-ietf-ipsec-isakmp-xauth-04.txt
Authentication (“extended authentication” draft). This protocol provides the capability of authenticating a user within
IKE using TACACS+ or RADIUS.
IKE Mode IKE Mode Configuration is implemented per the IETF draft-ietf-ipsec-isakmp-mode-cfg-04.txt. IKE
Configuration Mode Configuration provides a method for a security gateway to download an IP address (and other
network level configuration) to the VPN client as part of an IKE negotiation.
ILS Internet Locator Service. ILS is based on LDAP and is ILSv2 compliant. ILS was developed by
Microsoft for use with its NetMeeting, SiteServer, and Active Directory products.
IMAP Internet Message Access Protocol. Method of accessing e-mail or bulletin board messages kept on a
mail server that can be shared. IMAP permits client e-mail applications to access remote message
stores as if they were local without actually transferring the message.
implicit rule An access rule automatically created by the FWSM based on default rules or as a result of user-defined
rules.
IMSI International Mobile Subscriber Identity. One of two components of a GTP tunnel ID, the other being
the NSAPI. See also NSAPI.
inside The first interface, usually port 1, that connects your internal, “trusted” network protected by the
FWSM. See also interface, interface names.
inspection engine The FWSM inspects certain application-level protocols to identify the location of embedded
addressing information in traffic. This allows NAT to translate these embedded addresses and to
update any checksum or other fields that are affected by the translation. Because many protocols open
secondary TCP or UDP ports, each application inspection engine also monitors sessions to determine
the port numbers for secondary channels. The initial session on a well-known port is used to negotiate
dynamically assigned port numbers. The application inspection engine monitors these sessions,
identifies the dynamic port assignments, and permits data exchange on these ports for the duration of
the specific session. Some of the protocols that the FWSM can inspect are CTIQBE, FTP, H.323,
HTTP, MGCP, SMTP, and SNMP.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
GL-8 OL-8123-01
Glossary
interface ip_address The IP address of a FWSM network interface. Each interface IP address must be unique. Two or more
interfaces must not be given the same IP address or IP addresses that are on the same IP network.
interface names Human readable name assigned to a FWSM network interface. The inside interface default name is
“inside” and the outside interface default name is “outside.” Any perimeter interface default names
are “intfn”, such as intf2 for the first perimeter interface, intf3 for the second perimeter interface, and
so on to the last interface. The numbers in the intf string corresponds to the position of the interface
card in the FWSM. You can use the default names or, if you are an experienced user, give each
interface a more meaningful name. See also inside, intfn, outside.
intfn Any interface, usually beginning with port 2, that connects to a subset network of your design that you
can custom name and configure.
interface PAT The use of PAT where the PAT IP address is also the IP address of the outside interface. See Dynamic
PAT, Static PAT.
Internet The global network that uses IP. Not a LAN. See also intranet.
intranet Intranetwork. A LAN that uses IP. See also network and Internet.
IP Internet Protocol. IP protocols are the most popular nonproprietary protocols because they can be used
to communicate across any set of interconnected networks and are equally well suited for LAN and
WAN communications.
IPS Intrusion Prevention System. An in-line, deep-packet inspection-based solution that helps mitigate a
wide range of network attacks.
IP address An IP protocol address. A FWSM interface ip_address. IP version 4 addresses are 32 bits in length.
This address space is used to designate the network number, optional subnetwork number, and a host
number. The 32 bits are grouped into four octets (8 binary bits), represented by 4 decimal numbers
separated by periods, or dots. The meaning of each of the four octets is determined by their use in a
particular network.
IP pool A range of local IP addresses specified by a name, and a range with a starting IP address and an ending
address. IP Pools are used by DHCP and VPNs to assign local IP addresses to clients on the inside
interface.
IPSec IP Security. A framework of open standards that provides data confidentiality, data integrity, and data
authentication between participating peers. IPSec provides these security services at the IP layer.
IPSec uses IKE to handle the negotiation of protocols and algorithms based on local policy and to
generate the encryption and authentication keys to be used by IPSec. IPSec can protect one or more
data flows between a pair of hosts, between a pair of security gateways, or between a security gateway
and a host.
IPSec Phase 1 The first phase of negotiating IPSec, includes the key exchange and the ISAKMP portions of IPSec.
IPSec Phase 2 The second phase of negotiating IPSec. Phase two determines the type of encryption rules used for
payload, the source and destination that will be used for encryption, the definition of interesting traffic
according to access lists, and the IPSec peer. IPSec is applied to the interface in Phase 2.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 GL-9
Glossary
IPSec transform set A transform set specifies the IPSec protocol, encryption algorithm, and hash algorithm to use on traffic
matching the IPSec policy. A transform describes a security protocol (AH or ESP) with its
corresponding algorithms. The IPSec protocol used in almost all transform sets is ESP with the DES
algorithm and HMAC-SHA for authentication.
ISAKMP Internet Security Association and Key Management Protocol. A protocol framework that defines
payload formats, the mechanics of implementing a key exchange protocol, and the negotiation of a
security association. See IKE.
ISP Internet service provider. An organization that provides connection to the Internet via their services,
such as modem dial in over telephone voice lines or DSL.
J
JTAPI Java Telephony Application Programming Interface. A Java-based API supporting telephony
functions. See also TAPI.
K
key A data object used for encryption, decryption, or authentication.
Kerberos A strong network authentication protocol for client-server applications that uses secret-key
cryptography. Kerberos is one of the SASL mechanisms available for security appliance
authentication to an LDAP server.
L
LAN Local area network. A network residing in one location, such as a single building or campus. See also
Internet, intranet, and network.
layer, layers Networking models implement layers with which different protocols are associated. The most
common networking model is the OSI model, which consists of the following 7 layers, in order:
physical, data link, network, transport, session, presentation, and application.
LDAP Lightweight Directory Access Protocol. LDAP provides management and browser applications with
access to X.500 directories.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
GL-10 OL-8123-01
Glossary
M
mask A 32-bit mask that shows how an Internet address is divided into network, subnet, and host parts. The
mask has ones in the bit positions to be used for the network and subnet parts, and zeros for the host
part. The mask should contain at least the standard network portion, and the subnet field should be
contiguous with the network portion.
MC router Multicast (MC) routers route multicast data transmissions to the hosts on each LAN in an internetwork
that are registered to receive specific multimedia or other broadcasts. See also multicast.
MD5 Message Digest 5. A one-way hashing algorithm that produces a 128-bit hash. Both MD5 and SHA-1
are variations on MD4 and are designed to strengthen the security of the MD4 hashing algorithm.
SHA-1 is more secure than MD4 and MD5. Cisco uses hashes for authentication within the IPSec
framework. Also used for message authentication in SNMP v.2. MD5 verifies the integrity of the
communication, authenticates the origin, and checks for timeliness. MD5 has a smaller digest and is
considered to be slightly faster than SHA-1.
Message Digest A message digest is created by a hash algorithm, such as MD5 or SHA-1, that is used for ensuring
message integrity.
MSFC Multilayer Switch Feature Card. The Multilayer Switch Feature Card is a router card installed in the
Catalyst 6500 switch or Cisco 7600 router.
MGCP Media Gateway Control Protocol. Media Gateway Control Protocol is a protocol for the control of
VoIP calls by external call-control elements known as media gateway controllers or call agents. MGCP
merges the IPDC and SGCP protocols.
Modular Policy Modular Policy Framework. A means of configuring FWSM features in a manner to similar to Cisco
Framework IOS software Modular QoS CLI.
MS mobile station. Refers generically to any mobile device, such as a mobile handset or computer, that is
used to access network services. GPRS networks support three classes of MS, which describe the type
of operation supported within the GPRS and the GSM mobile wireless networks. For example, a Class
A MS supports simultaneous operation of GPRS and GSM services.
MTU Maximum transmission unit, the maximum number of bytes in a packet that can flow efficiently across
the network with best response time. For Ethernet, the default MTU is 1500 bytes, but each network
can have different values, with serial connections having the smallest values. The MTU is described
in RFC 1191.
multicast Multicast refers to a network addressing method in which the source transmits a packet to multiple
destinations, a multicast group, simultaneously. See also PIM, SMR.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 GL-11
Glossary
N
N2H2 A third-party, policy-oriented filtering application that works with the FWSM to control user web
access. N2H2 can filter HTTP requests based on destination host name, destination IP address, and
username and password. The N2H2 corporation was acquired by Secure Computing in October, 2003.
NAT Network Address Translation. Mechanism for reducing the need for globally unique IP addresses.
NAT allows an organization with addresses that are not globally unique to connect to the Internet by
translating those addresses into a globally routable address space.
NEM Network Extension Mode. Lets VPN hardware clients present a single, routable network to the remote
private network over the VPN tunnel.
NetBIOS Network Basic Input/Output System. A Microsoft protocol that supports Windows host name
registration, session management, and data transfer. The FWSM supports NetBIOS by performing
NAT of the packets for NBNS UDP port 137 and NBDS UDP port 138.
network In the context of FWSM configuration, a network is a group of computing devices that share part of
an IP address space and not a single host. A network consists of multiple nodes or hosts. See also host,
Internet, intranet, IP, LAN, and node.
NMS network management system. System responsible for managing at least part of a network. An NMS is
generally a reasonably powerful and well-equipped computer, such as an engineering workstation.
NMSs communicate with agents to help keep track of network statistics and resources.
node Devices such as routers and printers that would not normally be called hosts. See also host, network.
nonvolatile storage, Storage or memory that, unlike RAM, retains its contents without power. Data in a nonvolatile storage
memory device survives a power-off, power-on cycle or reboot.
NP Network processor.
NSAPI Network service access point identifier. One of two components of a GTP tunnel ID, the other
component being the IMSI. See also IMSI.
NSSA Not-so-stubby-area. An OSPF feature described by RFC 1587. NSSA was first introduced in Cisco
IOS software release 11.2. It is a non-proprietary extension of the existing stub area feature that allows
the injection of external routes in a limited fashion into the stub area.
O
Oakley A key exchange protocol that defines how to acquire authenticated keying material. The basic
mechanism for Oakley is the Diffie-Hellman key exchange algorithm. Oakley is defined in RFC 2412.
object grouping Simplifies access control by letting you apply access control statements to groups of network objects,
such as protocol, services, hosts, and networks.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
GL-12 OL-8123-01
Glossary
OSPF Open Shortest Path First. OSPF is a routing protocol for IP networks. OSPF is a routing protocol
widely deployed in large networks because of its efficient use of network bandwidth and its rapid
convergence after changes in topology. The FWSM supports OSPF.
outbound Refers to traffic whose destination is on an interface with lower security than the source interface.
outside The first interface, usually port 0, that connects to other “untrusted” networks outside the FWSM; the
Internet. See also interface, interface names, outbound.
P
PAC PPTP Access Concentrator. A device attached to one or more PSTN or ISDN lines capable of PPP
operation and of handling the PPTP protocol. The PAC need only implement TCP/IP to pass traffic to
one or more PNSs. It may also tunnel non-IP protocols.
Perfmon The FWSM feature that gathers and reports a wide variety of feature statistics, such as
connections/second, xlates/second, etc.
PFS perfect forward secrecy. PFS enhances security by using different security key for the IPSec Phase 1
and Phase 2 SAs. Without PFS, the same security key is used to establish SAs in both phases. PFS
ensures that a given IPSec SA key was not derived from any other secret (like some other keys). In
other words, if someone were to break a key, PFS ensures that the attacker would not be able to derive
any other key. If PFS were not enabled, someone could hypothetically break the IKE SA secret key,
copy all the IPSec protected data, and then use knowledge of the IKE SA secret to compromise the
IPSec SA setup by this IKE SA. With PFS, breaking IKE would not give an attacker immediate access
to IPSec. The attacker would have to break each IPSec SA individually.
PIM Protocol Independent Multicast. PIM provides a scalable method for determining the best paths for
distributing a specific multicast transmission to a group of hosts. Each host has registered using IGMP
to receive the transmission. See also PIM-SM.
PIM-SM Protocol Independent Multicast-Sparse Mode. With PIM-SM, which is the default for Cisco routers,
when the source of a multicast transmission begins broadcasting, the traffic is forwarded from one MC
router to the next, until the packets reach every registered host. See also PIM.
PIX Private Internet eXchange. The Cisco PIX 500-series FWSMs range from compact, plug-and-play
desktop models for small/home offices to carrier-class gigabit models for the most demanding
enterprise and service provider environments. Cisco PIX FWSMs provide robust, enterprise-class
integrated network security services to create a strong multilayered defense for fast changing network
environments.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 GL-13
Glossary
PKCS12 A standard for the transfer of PKI-related data, such as private keys, certificates, and other data.
Devices supporting this standard let administrators maintain a single set of personal identity
information.
Policy NAT Lets you identify local traffic for address translation by specifying the source and destination
addresses (or ports) in an access list.
POP Post Office Protocol. Protocol that client e-mail applications use to retrieve mail from a mail server.
Port A field in the packet headers of TCP and UDP protocols that identifies the higher level service which
is the source or destination of the packet.
PPP Point-to-Point Protocol. Developed for dial-up ISP access using analog phone lines and modems.
PPTP Point-to-Point Tunneling Protocol. PPTP was introduced by Microsoft to provide secure remote
access to Windows networks; however, because it is vulnerable to attack, PPTP is commonly used
only when stronger security methods are not available or are not required. PPTP Ports are pptp,
1723/tcp, 1723/udp, and pptp. For more information about PPTP, see RFC 2637. See also PAC, PPTP
GRE, PPTP GRE tunnel, PNS, PPTP session, and PPTP TCP.
PPTP GRE tunnel A tunnel defined by a PNS-PAC pair. The tunnel protocol is defined by a modified version of GRE.
The tunnel carries PPP datagrams between the PAC and the PNS. Many sessions are multiplexed on a
single tunnel. A control connection operating over TCP controls the establishment, release, and
maintenance of sessions and of the tunnel itself.
PPTP session PPTP is connection-oriented. The PNS and PAC maintain state for each user that is attached to a PAC.
A session is created when end-to-end PPP connection is attempted between a dial user and the PNS.
The datagrams related to a session are sent over the tunnel between the PAC and PNS.
PPTP TCP Standard TCP session over which PPTP call control and management information is passed. The
control session is logically associated with, but separate from, the sessions being tunneled through a
PPTP tunnel.
preshared key A preshared key provides a method of IKE authentication that is suitable for networks with a limited,
static number of IPSec peers. This method is limited in scalability because the key must be configured
for each pair of IPSec peers. When a new IPSec peer is added to the network, the preshared key must
be configured for every IPSec peer with which it communicates. Using certificates and CAs provides
a more scalable method of IKE authentication.
primary, primary The FWSM normally operating when two units, a primary and secondary, are operating in failover
unit mode.
privileged EXEC Privileged EXEC mode lets you to change current settings. Any user EXEC mode command will work
mode in privileged EXEC mode. See also command-specific configuration mode, global configuration mode,
user EXEC mode.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
GL-14 OL-8123-01
Glossary
protocol, protocol A standard that defines the exchange of packets between network nodes for communication. Protocols
literals work together in layers. Protocols are specified in a FWSM configuration as part of defining a security
policy by their literal values or port numbers. Possible FWSM protocol literal values are ahp, eigrp,
esp, gre, icmp, igmp, igrp, ip, ipinip, ipsec, nos, ospf, pcp, snp, tcp, and udp.
Proxy-ARP Enables the FWSM to reply to an ARP request for IP addresses in the global pool. See also ARP.
public key A public key is one of a pair of keys that are generated by devices involved in public key infrastructure.
Data encrypted with a public key can only be decrypted using the associated private key. When a
private key is used to produce a digital signature, the receiver can use the public key of the sender to
verify that the message was signed by the sender. These characteristics of key pairs provide a scalable
and secure method of authentication over an insecure media, such as the Internet.
Q
QoS quality of service. Measure of performance for a transmission system that reflects its transmission
quality and service availability.
R
RA Registration Authority. An authorized proxy for a CA. RAs can perform certificate enrollment and can
issue CRLs. See also CA, certificate, public key.
RADIUS Remote Authentication Dial-In User Service. RADIUS is a distributed client/server system that
secures networks against unauthorized access. RFC 2058 and RFC 2059 define the RADIUS protocol
standard. See also AAA and TACACS+.
Refresh Retrieve the running configuration from the FWSM and update the screen. The icon and the button
perform the same function.
replay-detection A security service where the receiver can reject old or duplicate packets to defeat replay attacks.
Replay attacks rely on the attacker sending out older or duplicate packets to the receiver and the
receiver thinking that the bogus traffic is legitimate. Replay-detection is done by using sequence
numbers combined with authentication, and is a standard feature of IPSec.
RFC Request for Comments. RFC documents define protocols and standards for communications over the
Internet. RFCs are developed and published by IETF.
RIP Routing Information Protocol. Interior gateway protocol (IGP) supplied with UNIX BSD systems.
The most common IGP in the Internet. RIP uses hop count as a routing metric.
RLLA Reserved Link Local Address. Multicast addresses range from 224.0.0.0 to 239.255.255.255, however
only the range 224.0.1.0 to 239.255.255.255 is available to us. The first part of the multicast address
range, 224.0.0.0 to 224.0.0.255, is reserved and referred to as the RLLA. These addresses are
unavailable. We can exclude the RLLA range by specifying: 224.0.1.0 to 239.255.255.255. 224.0.0.0
to 239.255.255.255 excluding 224.0.0.0 to 224.0.0.255. This is the same as specifying: 224.0.1.0 to
239.255.255.255.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 GL-15
Glossary
routed firewall In routed firewall mode, the FWSM is counted as a router hop in the network. It performs NAT
mode between connected networks and can use OSPF or RIP. See also transparent firewall mode.
RP Rendezvous Point. An RP acts as the meeting place for sources and receivers of multicast data in a
PIM multicast environment.
RPC Remote Procedure Call. RPCs are procedure calls that are built or specified by clients and executed
on servers, with the results returned over the network to the clients.
RSA A public key cryptographic algorithm (named after its inventors, Rivest, Shamir, and Adelman) with
a variable key length. The main weakness of RSA is that it is significantly slow to compute compared
to popular secret-key algorithms, such as DES. The Cisco implementation of IKE uses a
Diffie-Hellman exchange to get the secret keys. This exchange can be authenticated with RSA (or
preshared keys). With the Diffie-Hellman exchange, the DES key never crosses the network (not even
in encrypted form), which is not the case with the RSA encrypt and sign technique. RSA is not public
domain, and must be licensed from RSA Data Security.
RSH Remote Shell. A protocol that allows a user to execute commands on a remote system without having
to log in to the system. For example, RSH can be used to remotely examine the status of a number of
access servers without connecting to each communication server, executing the command, and then
disconnecting from the communication server.
RTCP RTP Control Protocol. Protocol that monitors the QoS of an IPv6 RTP connection and conveys
information about the on-going session. See also RTP.
RTP Real-Time Transport Protocol. Commonly used with IP networks. RTP is designed to provide
end-to-end network transport functions for applications transmitting real-time data, such as audio,
video, or simulation data, over multicast or unicast network services. RTP provides such services as
payload type identification, sequence numbering, timestamping, and delivery monitoring to real-time
applications.
RTSP Real Time Streaming Protocol. Enables the controlled delivery of real-time data, such as audio and
video. RTSP is designed to work with established protocols, such as RTP and HTTP.
rule Conditional statements added to the FWSM configuration to define security policy for a particular
situation. See also ACE, ACL, NAT.
running The configuration currently running in RAM on the FWSM. The configuration that determines the
configuration operational characteristics of the FWSM.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
GL-16 OL-8123-01
Glossary
S
SA security association. An instance of security policy and keying material applied to a data flow. SAs
are established in pairs by IPSec peers during both phases of IPSec. SAs specify the encryption
algorithms and other security parameters used to create a secure tunnel. Phase 1 SAs (IKE SAs)
establish a secure tunnel for negotiating Phase 2 SAs. Phase 2 SAs (IPSec SAs) establish the secure
tunnel used for sending user data. Both IKE and IPSec use SAs, although SAs are independent of one
another. IPSec SAs are unidirectional and they are unique in each security protocol. A set of SAs are
needed for a protected data pipe, one per direction per protocol. For example, if you have a pipe that
supports ESP between peers, one ESP SA is required for each direction. SAs are uniquely identified
by destination (IPSec endpoint) address, security protocol (AH or ESP), and Security Parameter Index.
IKE negotiates and establishes SAs on behalf of IPSec. A user can also establish IPSec SAs manually.
An IKE SA is used by IKE only, and unlike the IPSec SA, it is bidirectional.
SASL Simple Authentication and Security Layer. An Internet standard method for adding authentication
support to connection-based protocols. SASL can be used between a security appliance and an LDAP
server to secure user authentication.
SCCP Skinny Client Control Protocol. A Cisco-proprietary protocol used between Cisco Call Manager and
Cisco VoIP phones.
SCEP Simple Certificate Enrollment Protocol. A method of requesting and receiving (also known as
enrolling) certificates from CAs.
SDP Session Definition Protocol. An IETF protocol for the definition of Multimedia Services. SDP
messages can be part of SGCP and MGCP messages.
secondary unit The backup FWSM when two are operating in failover mode.
secret key A secret key is a key shared only between the sender and receiver. See key, public key.
security context You can partition a single FWSM into multiple virtual firewalls, known as security contexts. Each
context is an independent firewall, with its own security policy, interfaces, and administrators.
Multiple contexts are similar to having multiple stand-alone firewalls.
serial transmission A method of data transmission in which the bits of a data character are transmitted sequentially over
a single channel.
SGCP Simple Gateway Control Protocol. Controls VoIP gateways by an external call control element (called
a call-agent).
SGSN Serving GPRS Support Node. The SGSN ensures mobility management, session management and
packet relaying functions.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 GL-17
Glossary
SHA-1 Secure Hash Algorithm 1. SHA-1 [NIS94c] is a revision to SHA that was published in 1994. SHA is
closely modeled after MD4 and produces a 160-bit digest. Because SHA produces a 160-bit digest, it
is more resistant to brute-force attacks than 128-bit hashes (such as MD5), but it is slower. Secure
Hash Algorithm 1 is a joint creation of the National Institute of Standards and Technology and the
National Security Agency. This algorithm, like other hash algorithms, is used to generate a hash value,
also known as a message digest, that acts like a CRC used in lower-layer protocols to ensure that
message contents are not changed during transmission. SHA-1 is generally considered more secure
than MD5.
SIP Session Initiation Protocol. Enables call handling sessions, particularly two-party audio conferences,
or “calls.” SIP works with SDP for call signaling. SDP specifies the ports for the media stream. Using
SIP, the FWSM can support any SIP VoIP gateways and VoIP proxy servers.
site-to-site VPN A site-to-site VPN is established between two IPSec peers that connect remote networks into a single
VPN. In this type of VPN, neither IPSec peer is the destination or source of user traffic. Instead, each
IPSec peer provides encryption and authentication services for hosts on the LANs connected to each
IPSec peer. The hosts on each LAN send and receive data through the secure tunnel established by the
pair of IPSec peers.
SKEME A key exchange protocol that defines how to derive authenticated keying material, with rapid key
refreshment.
SMR Stub Multicast Routing. SMR allows the FWSM to function as a “stub router.” A stub router is a device
that acts as an IGMP proxy agent. IGMP is used to dynamically register specific hosts in a multicast
group on a particular LAN with a multicast router. Multicast routers route multicast data transmissions
to hosts that are registered to receive specific multimedia or other broadcasts. A stub router forwards
IGMP messages between hosts and MC routers.
SMTP Simple Mail Transfer Protocol. SMTP is an Internet protocol that supports email services.
SNMP Simple Network Management Protocol. A standard method for managing network devices using data
structures called Management Information Bases.
split tunneling Allows a remote VPN client simultaneous encrypted access to a private network and clear unencrypted
access to the Internet. If you do not enable split tunneling, all traffic between the VPN client and the
FWSM is sent through an IPSec tunnel. All traffic originating from the VPN client is sent to the
outside interface through a tunnel, and client access to the Internet from its remote site is denied.
spoofing A type of attack designed to foil network security mechanisms such as filters and access lists. A
spoofing attack sends a packet that claims to be from an address from which it was not actually sent.
SQL*Net Structured Query Language Protocol. An Oracle protocol used to communicate between client and
server processes.
SSH Secure Shell. An application running on top of a reliable transport layer, such as TCP/IP, that provides
strong authentication and encryption capabilities.
SSL Secure Sockets Layer. A protocol that resides between the application layer and TCP/IP to provide
transparent encryption of data traffic.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
GL-18 OL-8123-01
Glossary
stateful inspection Network protocols maintain certain data, called state information, at each end of a network connection
between two hosts. State information is necessary to implement the features of a protocol, such as
guaranteed packet delivery, data sequencing, flow control, and transaction or session IDs. Some of the
protocol state information is sent in each packet while each protocol is being used. For example, a
browser connected to a web server uses HTTP and supporting TCP/IP protocols. Each protocol layer
maintains state information in the packets it sends and receives. The FWSM and some other firewalls
inspect the state information in each packet to verify that it is current and valid for every protocol it
contains. This is called stateful inspection and is designed to create a powerful barrier to certain types
of computer security threats.
Static PAT Static Port Address Translation. Static PAT is a static address that also maps a local port to a global
port. See also Dynamic PAT, NAT.
SVC The SSL VPN Client (SVC) is a VPN tunneling technology that gives remote users the benefits of an IPSec
VPN client without the need for network administrators to install and configure IPSec VPN clients on
remote computers. The SVC uses the SSL encryption that is already present on the remote computer and
the WebVPN login and authentication of the security appliance.
T
TACACS+ Terminal Access Controller Access Control System Plus. A client-server protocol that supports AAA
services, including command authorization. See also AAA, RADIUS.
TAPI Telephony Application Programming Interface. A programming interface in Microsoft Windows that
supports telephony functions.
TCP Transmission Control Protocol. Connection-oriented transport layer protocol that provides reliable
full-duplex data transmission.
TCP Intercept With the TCP intercept feature, once the optional embryonic connection limit is reached, and until the
embryonic connection count falls below this threshold, every SYN bound for the effected server is
intercepted. For each SYN, the FWSM responds on behalf of the server with an empty SYN/ACK
segment. The FWSM retains pertinent state information, drops the packet, and waits for the client
acknowledgment. If the ACK is received, then a copy of the client SYN segment is sent to the server
and the TCP three-way handshake is performed between the FWSM and the server. If this three-way
handshake completes, may the connection resume as normal. If the client does not respond during any
part of the connection phase, then the FWSM retransmits the necessary segment using exponential
back-offs.
TDP Tag Distribution Protocol. TDP is used by tag switching devices to distribute, request, and release tag
binding information for multiple network layer protocols in a tag switching network. TDP does not
replace routing protocols. Instead, it uses information learned from routing protocols to create tag
bindings. TDP is also used to open, monitor, and close TDP sessions and to indicate errors that occur
during those sessions. TDP operates over a connection-oriented transport layer protocol with
guaranteed sequential delivery (such as TCP). The use of TDP does not preclude the use of other
mechanisms to distribute tag binding information, such as piggybacking information on other
protocols.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 GL-19
Glossary
Telnet A terminal emulation protocol for TCP/IP networks such as the Internet. Telnet is a common way to
control web servers remotely; however, its security vulnerabilities have led to its replacement by SSH.
TFTP Trivial File Transfer Protocol. TFTP is a simple protocol used to transfer files. It runs on UDP and is
explained in depth in RFC 1350.
traffic policing The traffic policing feature ensures that no traffic exceeds the maximum rate (bits per second) that you
configure, thus ensuring that no one traffic flow can take over the entire resource.
transparent firewall A mode in which the FWSM is not a router hop. You can use transparent firewall mode to simplify
mode your network configuration or to make the FWSM invisible to attackers. You can also use transparent
firewall mode to allow traffic through that would otherwise be blocked in routed firewall mode. See
also routed firewall mode.
transport mode An IPSec encryption mode that encrypts only the data portion (payload) of each packet, but leaves the
header untouched. Transport mode is less secure than tunnel mode.
tunnel mode An IPSec encryption mode that encrypts both the header and data portion (payload) of each packet.
Tunnel mode is more secure than transport mode.
tunnel A method of transporting data in one protocol by encapsulating it in another protocol. Tunneling is
used for reasons of incompatibility, implementation simplification, or security. For example, a tunnel
lets a remote VPN client have encrypted access to a private network.
Turbo ACL Increases ACL lookup speeds by compiling them into a set of lookup tables. Packet headers are used
to access the tables in a small, fixed number of lookups, independent of the existing number of ACL
entries.
U
UDP User Datagram Protocol. A connectionless transport layer protocol in the IP protocol stack. UDP is a
simple protocol that exchanges datagrams without acknowledgments or guaranteed delivery, which
requires other protocols to handle error processing and retransmission. UDP is defined in RFC 768.
UMTS Universal Mobile Telecommunication System. An extension of GPRS networks that moves toward an
all-IP network by delivering broadband information, including commerce and entertainment services,
to mobile users via fixed, wireless, and satellite networks
Unicast RPF Unicast Reverse Path Forwarding. Unicast RPF guards against spoofing by ensuring that packets have
a source IP address that matches the correct source interface according to the routing table.
URL Uniform Resource Locator. A standardized addressing scheme for accessing hypertext documents and
other services using a browser. For example, http://www.cisco.com.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
GL-20 OL-8123-01
Glossary
user EXEC mode User EXEC mode lets you to see the FWSM settings. The user EXEC mode prompt appears as follows
when you first access the FWSM. See also command-specific configuration mode, global configuration
mode, and privileged EXEC mode.
UTC Coordinated Universal Time. The time zone at zero degrees longitude, previously called Greenwich
Mean Time (GMT) and Zulu time. UTC replaced GMT in 1967 as the world time standard. UTC is
based on an atomic time scale rather than an astronomical time scale.
UTRAN Universal Terrestrial Radio Access Network. Networking protocol used for implementing wireless
networks in UMTS. GTP allows multi-protocol packets to be tunneled through a UMTS/GPRS
backbone between a GGSN, an SGSN and the UTRAN.
UUIE User-User Information Element. An element of an H.225 packet that identifies the users implicated in
the message.
V
VLAN Virtual LAN. A group of devices on one or more LANs that are configured (using management
software) so that they can communicate as if they were attached to the same physical network cable,
when in fact they are located on a number of different LAN segments. Because VLANs are based on
logical instead of physical connections, they are extremely flexible.
VoIP Voice over IP. VoIP carries normal voice traffic, such as telephone calls and faxes, over an IP-based
network. DSP segments the voice signal into frames, which then are coupled in groups of two and
stored in voice packets. These voice packets are transported using IP in compliance with ITU-T
specification H.323.
VPN Virtual Private Network. A network connection between two peers over the public network that is
made private by strict authentication of users and the encryption of all data traffic. You can establish
VPNs between clients, such as PCs, or a headend, such as the FWSM.
VSA Vendor-specific attribute. An attribute in a RADIUS packet that is defined by a vendor rather than by
RADIUS RFCs. The RADIUS protocol uses IANA-assigned vendor numbers to help identify VSAs.
This lets different vendors have VSAs of the same number. The combination of a vendor number and
a VSA number makes a VSA unique. For example, the cisco-av-pair VSA is attribute 1 in the set of
VSAs related to vendor number 9. Each vendor can define up to 256 VSAs. A RADIUS packet
contains any VSAs attribute 26, named Vendor-specific. VSAs are sometimes referred to as
subattributes.
W
WAN wide-area network. Data communications network that serves users across a broad geographic area
and often uses transmission devices provided by common carriers.
Websense A content filtering solution that manages employee access to the Internet. Websense uses a policy
engine and a URL database to control user access to websites.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 GL-21
Glossary
WEP Wired Equivalent Privacy. A security protocol for wireless LANs, defined in the IEEE 802.11b
standard.
WINS Windows Internet Naming Service. A Windows system that determines the IP address associated with
a particular network device, also known as “name resolution.” WINS uses a distributed database that
is automatically updated with the NetBIOS names of network devices currently available and the IP
address assigned to each one.WINS provides a distributed database for registering and querying
dynamic NetBIOS names to IP address mapping in a routed network environment. It is the best choice
for NetBIOS name resolution in such a routed network because it is designed to solve the problems
that occur with name resolution in complex networks.
X
X.509 A widely used standard for defining digital certificates. X.509 is actually an ITU recommendation,
which means that it has not yet been officially defined or approved for standardized usage.
xlate An xlate, also referred to as a translation entry, represents the mapping of one IP address to another,
or the mapping of one IP address/port pair to another.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
GL-22 OL-8123-01
INDEX
comments 10-16
Symbols
commitment 10-5
/bits subnet masks D-3 deny flows, managing 10-21
? downloadable 15-8
command string C-4 EtherType, adding 10-9
help C-4 EtherType, overview 10-8
expanded 10-5
extended, adding 10-5
A
extended, overview 10-6
AAA implicit deny 10-3
accounting 15-10 inbound 11-1
authentication interface, applying 11-4
CLI access 21-11 IP address guidelines with NAT 10-3
network access 15-1 logging 10-18
privileged EXEC mode 21-12 maximum rules 10-5
authorization memory limits 10-5
commands 21-13 memory partitions 4-16
downloadable access lists 15-7 NAT addresses 10-3
network access 15-6 object grouping 10-10
clearing settings 24-7 outbound 11-1
local database support 14-8 overview 10-1
maximum rules A-5 remarks 10-16
overview 14-1 standard access lists, adding 10-10
performance 15-1 accounting 15-10
server ACEs
adding 14-11 expanded 10-5
types 14-3 logging 10-18
support summary 14-3 maximum 10-5
with web clients 15-4 order 10-2
abbreviating commands C-3 Active/Active failover
access lists about 13-12
ACE logging, configuring 10-20 actions 13-14
ACE order 10-2 active state 13-12
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 IN-1
Index
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
IN-2 OL-8123-01
Index
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 IN-3
Index
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
IN-4 OL-8123-01
Index
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 IN-5
Index
G
I
global addresses
guidelines 12-13 ICMP
specifying 12-25 management access 21-10
GTP inspection maximum rules A-6
configuring 20-29 testing connectivity 24-1
overview 20-27 type numbers D-15
IGMP 8-20
IKE 21-5
H
ILS application inspection 20-45
H.225, configuring 20-34 IM 20-58
H.245 inbound access lists 11-1
monitoring 20-38 information
troubleshooting 20-38 reply, ICMP message D-15
H.323 request, ICMP message D-15
transparent firewall guidelines 5-10 inside, definition 1-1
H.323 inspection inspection
configuring 20-35 See application inspection
limitations 20-33 installation
overview 20-32 module verification 2-2
troubleshooting 20-38 software to any partition 22-5
half-closed connection limits 19-4 software to current partition 22-3, 22-8
help, command line C-4 Instant Messaging 20-58
hostname, setting 7-3 interfaces
hosts, subnet masks for D-3 configuring poll times 13-22, 13-27
HSRP 5-9 global addresses 12-25
HTTP(S) health monitoring 13-17
authentication 21-11 maximum A-3
filtering 16-4 naming 6-2, 6-4
maximum connections A-4 shared 4-6
maximum rules A-6 turning off 6-6
HTTP inspection turning on 6-6
viewing monitored interface status 13-36
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
IN-6 OL-8123-01
Index
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 IN-7
Index
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
IN-8 OL-8123-01
Index
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 IN-9
Index
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
IN-10 OL-8123-01
Index
See ICMP
R
policy NAT
dynamic, configuring 12-24 RADIUS
maximum rules A-6 configuring a server 14-11
overview 12-9 downloadable access lists 15-8
static, configuring 12-27 network access authentication 15-2
static PAT, configuring 12-28 network access authorization 15-7
pools, addresses support 14-4
DHCP 8-29 RAS H.323 troubleshooting 20-39
global NAT 12-25 RealPlayer 20-54
VPN 21-8 rebooting
PORT command, FTP 20-23 from the FWSM CLI 24-6
ports from the switch 2-13
open on device D-14 redirect, ICMP message D-15
redirection, NAT 12-36 Related Documentation 1-xxvi
private networks D-2 reloading
privileged EXEC mode contexts 4-24
accessing 3-2 from the FWSM CLI 24-6
authentication 21-12 from the switch 2-13
prompt C-2 remarks
prompts access lists 10-16
command C-2 configuration C-5
more C-5 remote management
setting 7-4 ASDM 21-4
protocol numbers and literal values D-11 SSH 21-2
proxy servers, SIP 20-57 Telnet 21-1
VPN 21-4
requirements A-1
Q resetting
QoS compatibility 1-7 from the FWSM CLI 24-6
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 IN-11
Index
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
IN-12 OL-8123-01
Index
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 IN-13
Index
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
IN-14 OL-8123-01
Index
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
OL-8123-01 IN-15
Index
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide
IN-16 OL-8123-01