In multiple security context mode, the Cisco security appliance can be divided into three types:
All contexts must be configured correctly for proper function. Similar to a real network, in which one misconfigured device can affect the operations of other network devices, misconfiguration of a security context can impact the overall operation of a security appliance.
System Execution Space
Unlike other contexts, the system execution space does not have any Layer 2 or Layer 3 interfaces or any network settings. Rather, it is mainly used to define the attributes of other security context attributes. Here are the three important attributes configured for each context in the system execution space:
Additionally, many optional features, such as interface and boot parameters, can be configured within the system execution space. Table 9-1 lists the important features that can be set up through the system execution space.
Feature |
Description |
---|---|
Interface |
Sets up physical interfaces for speed and duplex. Interfaces can be enabled or disabled. |
Banner |
Specifies a login or session banner when connecting to the security appliance. |
Boot |
Specifies boot parameters to load proper image. |
Activation key |
Enables or disables security appliance features. |
File management |
Adds or deletes the security context configurations that are stored locally on the security appliance. |
Firewall mode |
Configures single- or multiple-mode firewall in the system execution space. |
Failover |
Sets the failover parameters to accommodate multiple physical security appliances. |
The system execution space configuration resides in the nonvolatile random-access memory (NVRAM) area of the security appliance, while the configurations for security contexts are stored either in local Flash memory or on a network storage server using one of the following protocols:
The system execution space designates one of the security contexts as the admin context, which is responsible for providing network access when the system needs to contact resources. The admin context is discussed next.
Admin Context
The admin context provides connectivity to network resources, as mentioned earlier. The IP addresses on the allocated interfaces can be used for remote management purposes, such as SSH or Telnet. The security appliance also uses the IP addresses to retrieve configurations for other contexts if they are located on a network share. A system administrator with access to the admin context can switch into the other contexts to manage them. The security appliance uses the admin context to send the syslog messages that relate to the system.
The admin context must be created before defining other contexts. Additionally, it must reside on the local disk. A new admin context can be designated at any time by using the admin-context command, which is discussed in the "Configuration of Security Context" section, later in this chapter.
When a Cisco ASA is converted from single mode to multi-mode, the network-related configuration of the single-mode security appliance is saved as the admin context. The security appliance names this context as, admin.
Note
Changing the name of the admin context from admin is not recommended.
The admin context configuration is similar to a customer context. Aside from its relationship to the system execution space, it can be used as a regular context. However, using it as a regular context is not recommended, because of its significance.
Customer Context
Each customer context acts as a virtual firewall with its own configuration that contains almost all the options that are available in a standalone firewall. Table 9-2 lists the differences between a security appliance running in single mode and an appliance running in multiple mode.
Feature |
Single Mode |
Multiple Mode |
---|---|---|
Interface |
All physical interfaces are available for use. |
Only allocated interfaces are available in the contexts. |
File management |
Allows an administrator to copy system images and configurations. |
Restricts a context administrator to manage the context configurations. |
Firewall management |
Allows a system administrator to fully manage the security appliance. |
Allows a context administrator to manage the context. |
Addressing scheme |
Does not allow overlapping networks. |
Allows overlapping networks between the contexts. |
Routing protocols |
Supports RIP and OSPF as the dynamic routing protocols. |
Does not allow any dynamic routing protocols. |
Licensing |
There are no security contexts in single mode, hence no license is needed to turn on the security contexts. |
Needs a license to activate more than two security contexts. The default license includes two customer security contexts and an admin context. |
Resource allocation |
The security appliance uses all the available resources. |
The security appliance shares the system resources between the contexts. |
Failover |
Does not allow Active/Active failover. |
Allows Active/Active failover for redundancy and load-balancing. |
Quality of service |
Supports QoS. |
Does not support QoS. |
Multicast |
Supports multicast using PIM-SM. |
Does not support multicast. |
VPN |
Supports remote access and site-to-site VPN tunnels. |
Does not support VPNs. |
The number of customer contexts depends on the installed activation key. To find out how many customer contexts are allowed on a security appliance, look at the security context information in show version, as shown in Example 9-1. In this example, the ASA can have up to five customer contexts.
Example 9-1. Verifying the Number of Security Contexts
Chicago# show version | include Security Contexts Security Contexts : 5
Note
The number of available contexts does not include the admin context, because of its significance to the system execution space.
Packet Flow in Multiple Mode
When the packets traverse through the security appliance in multiple mode, they are classified and forwarded to the right context. The packets are then processed based on the configured security policies on a context. The packet classification and the forwarding mechanism are discussed in the following subsections.
Packet Classification
In multiple mode, the security appliance must classify the packets to find out which context should operate on them. The packet classification is done at the ingress interface point that tags the packets using the source IP address, source port, destination IP address, destination port, and the interface or VLAN. The packet is processed based on the security policies configured in that context. Cisco ASA uses the following fields or packet identifiers to classify them properly:
Figure 9-2. Packet Classification Using Source Interface
Packet Forwarding Between Contexts
In multiple mode, the two contexts communicate with each other as if two standalone appliances were communicating with one another. The security contexts can talk to each other in two ways:
Depending on what mode you use, the packet flow is different, as discussed in the following subsections.
Forwarding Without a Shared Interface
As Figure 9-3 illustrates, SecureMe's ASA has four interfaces: two of them belong to the CustA context and the remaining two are allocated to CustB. The outside interface of both contexts is connected to Router1, which is responsible for routing packets from one context to another.
Figure 9-3. Security Contexts Without a Shared Interface
If NAT and packet filtering are set up on the security appliance, then the following sequence of events takes place when Host A sends an ICMP ping packet to Host B:
Forwarding with a Shared Interface
Figure 9-4 illustrates another network topology, where SecureMe uses a shared outside LAN interface. To provide Internet connectivity, it has Router1 connected to the same shared interface. Using the shared interfaces, SecureMe can conserve the address space and the allocated interfaces. Additionally, shared contexts are useful when multiple security contexts need access to one public interface to get Internet connectivity.
Figure 9-4. Security Contexts with a Shared Interface
Using the previous example, when Host A sends an ICMP ping packet to Host B, the following steps are taken for successful communication:
Note
Because the security contexts reside on a physical security appliance, the packet never leaves the device when it moves from the outside interface of CustA to the outside interface of CustB.
Note
You will need to translate the destination IP addresses for the traffic traversing from a shared interface.
Note
Cisco ASA cannot classify packets if they are sourced from one shared interface and destined to another shared interface.
Part I: Product Overview
Introduction to Network Security
Product History
Hardware Overview
Part II: Firewall Solution
Initial Setup and System Maintenance
Network Access Control
IP Routing
Authentication, Authorization, and Accounting (AAA)
Application Inspection
Security Contexts
Transparent Firewalls
Failover and Redundancy
Quality of Service
Part III: Intrusion Prevention System (IPS) Solution
Intrusion Prevention System Integration
Configuring and Troubleshooting Cisco IPS Software via CLI
Part IV: Virtual Private Network (VPN) Solution
Site-to-Site IPSec VPNs
Remote Access VPN
Public Key Infrastructure (PKI)
Part V: Adaptive Security Device Manager
Introduction to ASDM
Firewall Management Using ASDM
IPS Management Using ASDM
VPN Management Using ASDM
Case Studies