Site icon Geeknizer

Pros and cons of using Cisco ASA Multiple Context Mode

The Cisco ASA supports firewall Multiple Contexts, also called Firewall Multimode, but there are pros and cons to be considered before implementing this configuration.

Multiple Context Mode can be viewed as having multiple separate (virtual) firewalls on the same hardware. Each context is its own security entity with its own security policy and interfaces. While most features are supported while using Multiple Contexts, some are not.

When would you want to use multiple security contexts?

When should you not use multiple security contexts?

Firewall management

It may seem that it would be easier to manage one firewall than several firewalls. This is true once you understand that there are some major differences between single-mode and multimode firewall configurations.

In multiple security context mode, there are three types of configuration files rather than one:

Another difference is how packets are classified. With a multimode configuration, interfaces can be shared between contexts so the ASA has to determine which packets should be sent to which contexts. The ASA can classify packets based on a variety of information such as MAC address, destination address, or NAT mapping. Depending on your situation, you may need to assign a unique MAC address to shared interfaces to alleviate routing issues, which makes your firewall management a bit more complicated.

A few other things to keep in mind

When changing from single mode to multiple mode or back, the commands must be done from the command line (CLI) and cannot be done via the ASDM GUI interface. When going from single to multimode, the ASA converts the running configuration into two files, creating a new startup configuration (system configuration) file and an admin context file (admin.cfg). The original startup configuration is not saved, but the original running configuration is saved as old_running.cfg.

By default, all security contexts have unlimited access to the ASA resources. Depending on your particular environment, you may find that you need to configure resource management to limit some contexts that may be starving other contexts. This is done by configuring resource classes and assigning them to the contexts.

Multimode offers some distinct advantages in certain situations, but you need to carefully consider your requirements before implementing a solution. There are limitations, and while the number of devices you manage may go down, the complication of those device configurations may go way up.

Exit mobile version