Transparent Firewalls and VPNsWhen the Cisco ASA runs in transparent mode, the following limitations and restrictions apply to configuring the IPSec tunnels on it:
|
Configuration of Transparent Firewall
Implementing a transparent firewall
Configuration Guidelines
The following guidelines are useful if you are introducing a new ASA firewall into an environment where
Configuration StepsThe following steps can be taken to configure Cisco ASA for transparent firewalls:
Step 1: Enabling Transparent FirewallsThe default routed mode can be changed to transparent mode by using the firewall transparent command, as shown in Example 10-1. Example 10-1. Enabling Transparent Firewall
Sydney(config)#
firewall transparent
Switched to transparent mode
After switching modes, the ASA clears the running configuration because most of the routed mode commands are not compatible in transparent mode. Example 10-2 illustrates how to revert to routed mode. Example 10-2. Enabling Routed Firewall
Sydney(config)#
no firewall transparent
Switched to router mode
Use the
show firewall
command to verify in which mode your firewall is running, as
Example 10-3. Verifying Firewall Mode
Sydney(config)#
show firewall
Firewall mode: Transparent
Step 2: Setting Up Interfaces
After you
Example 10-4. Setting Up InterfacesSydney(config)# interface GigabitEthernet0/0 Sydney(config-if)# no shutdown Sydney(config-if)# nameif outside INFO: Security level for "outside" set to 0 by default. Sydney(config-if)# security-level 0 Sydney(config-if)# exit Sydney(config)# interface GigabitEthernet0/1 Sydney(config-if)# no shutdown Sydney(config-if)# nameif inside INFO: Security level for "inside" set to 100 by default. Sydney(config-if)# security-level 100
Note Transparent firewall mode on the security appliance allows only two interfaces to pass through traffic. However, you can set up a dedicated management interface, which can be either a physical interface or a subinterface, as a third interface. This interface must be set up for the management-only command. Step 3: Configuring an IP AddressUnlike routed mode, the ASA in transparent mode does not allow you to configure IP addresses on the interfaces. Rather, an IP address is assigned in global configuration mode. This IP address is used exclusively for management purposes, such as SSH, Telnet, PDM, SNMP traps and polling, AAA, and ARP resolution. Here is the command syntax to configure an IP address: ip address ip_address [ mask ] [ standby sby_ip_addr ] ip_address is the configured IP address on the ASA, and mask is the network mask of the assigned IP address. Optionally, a standby IP address can be used for the appliance failover. This is covered in Chapter 11, "Failover and Redundancy." Example 10-5 shows how to configure an IP address of 192.168.1.10 with a 27-bit mask on the ASA running in transparent mode. Example 10-5. Assigning an IP Address
Sydney(config)#
ip address 192.168.1.10 255.255.255.224
Note In an MMTF, an IP address must be configured for each context. The command syntax remains the same as what was just discussed. Step 4: Configuring Interface ACLsAs discussed in Chapter 5, "Network Access Control," extended ACLs can filter out IP packets by looking at various headers. EtherType-based ACLs can be used to filter IP- and non-IP-based traffic. Here is the command syntax for an EtherType ACL: access-list id ethertype { deny permit } { ether-value bpdu ipx mpls-unicast mpls-multicast any } ether-value is a 2-byte value specified in the Layer 2 datagram under the EtherType code field. For IP-based traffic, the EtherType code value is 0x800. Novell IPX uses 0x8137-8138 and 0xAAAA depending on the NetWare version.
Note
Cisco ASA only supports Ethernet II frames. The IEEE 802.3
The security appliance does not restrict ARP packets to pass through it even if the ACL blocks ARP packets. On the other hand, the security appliance does not allow Cisco Discovery Protocol (CDP) packets to traverse through it, even if the ACL allows them. All other packets, such as DHCP, RIP, OSPF, BGP, BPDU, multicast, and MPLS packets, can be controlled by the ACL entries.
Note Because the non-TCP and non-UDP packets do not create sessions, the security appliance must be configured for ACLs on both interfaces.
Tip A list of commonly used EtherType codes is available on the following Cisco.com page:
Figure 10-5 shows an IPX packet captured using Ethereal, a sniffing tool. As you can see, the Ethernet type is 0x8137. Figure 10-5. Sniffer Trace Showing an IPX Packet
Tip You can also use the capture command to sniff the IPX or non-IP packets traversing through the security appliance. Example 10-6 shows how to restrict the LAN segment to allow IPX traffic to pass through, and how to block all other traffic. Example 10-6. Configuring an IPX-Based EtherType ACLSydney(config)# access-list 100 ethertype permit ipx Sydney(config)# access-list 100 ethertype deny any
Note
Cisco ASA does not forward bridge protocol data units (BPDUs) to prevent bridging
Step 5: Adding Static L2F Table Entries (Optional)As mentioned earlier in this chapter, the L2F entries are learned dynamically when the IP packets traverse through the ASA. However, you can define a host-based static L2F entry to associate a host's MAC address to an interface. This disables the appliance to learn the MAC address and port binding dynamically for that particular host. Example 10-7 shows how to add the static L2F entry for a router so that the ASA does not have to time out the entry and go through the learning process again. Example 10-7. Static L2F Entry
Sydney(config)#
mac-address-table static outside 00ff.fff0.003e
Added <00ff.fff0.003e> to the bridge table
Tip If a static ARP entry is configured, the appliance also adds the corresponding static L2F table entry. Step 6: Enabling ARP Inspection (Optional)Cisco ASA, deployed in transparent mode, provides a way to prevent attacks related to ARP spoofing. This feature, called ARP inspection, is disabled by default. Once ARP inspection is enabled, the ASA examines all ARP packets (reply or gratuitous ARP) before forwarding them. ARP inspection can be configured to either flood the packet to other interfaces (by using the flood keyword) or drop the packet and generate a syslog (by using no-flood ).
ARP inspection can be enabled per interface. When the Cisco ASA receives an ARP packet, it checks the static ARP table for a hit. Based on the hit or
The command syntax to enable ARP inspection is arp-inspection interface_name enable [ flood no-flood ]
Example 10-8 illustrates how to turn on ARP inspection on the outside interface with
no-flood
. This will drop the packets if there is a miss on the static ARP table. With this option enabled, the security appliance needs to know the ARP entries of all the
Example 10-8. Enabling ARP Inspection
Sydney(config)#
arp-inspection outside enable no-flood
Note To set ARP inspection back to the default on all interfaces, use clear configure arp-inspection . Step 7: Modifying L2F Table Parameters (Optional)Cisco ASA is flexible in many ways to suit different security policies. For example, the default L2F table aging time can be changed from 5 minutes to a maximum of 12 hours. This way, dynamically learned entries for a specified host will not be aged out so frequently. Example 10-9 modifies the L2F aging time from 5 minutes to 60 minutes. Example 10-9. L2F Table Aging Time
Sydney(config)#
mac-address-table aging-time 60
If the security policy does not allow the ASA to learn the L2F table dynamically on an interface, the learning process can be disabled by using the mac-learn disable command. The complete command syntax is mac-learn interface_name disable Once you disable the learning process on an interface, you need to add static L2F entries for the hosts toward that interface. Example 10-10 shows how to turn off MAC address learning on the outside interface. Example 10-10. Disable L2F Learning on Outside Interface
Sydney(config)#
mac-learn outside disable
|

Cisco ASA Configuration (Networking Professional's Library)

The Accidental Administrator: Cisco ASA Security Appliance: A Step-by-Step Configuration Guide

Cisco ASA: All-in-One Firewall, IPS, Anti-X, and VPN Adaptive Security Appliance (2nd Edition)

NX-OS and Cisco Nexus Switching: Next-Generation Data Center Architectures (Networking Technology)