The following section is a summary of the major points you should be aware of in this chapter.
Switch Port Security
- The port security feature is a dynamic Catalyst switch feature that secures switch ports
- Port security also protects the CAM by limiting the number of addresses learned on a port
- Port security protect the switched LAN from two primary methods of attack:
- CAM Table Overflow Attacks
- MAC Spoofing Attacks
- CAM overflow attacks target the CAM fixed, allocated memory space
- CAM overflow attacks flood the switch with invalid, randomly generated packets
- CAM table attacks are easy to perform
- MAC address spoofing is used to spoof a source MAC address
- MAC spoofing causes the switch to believe that the same host is connected to two ports
- MAC spoofing causes repetitive rewrites of MAC address table entries
- MAC spoofing also results in a Denial of Service (DoS) attack on the legitimate host(s)
- The methods of port security implementation supported in switches are:
- Static Secure MAC Addresses
- Dynamic Secure MAC Addresses
- Sticky Secure MAC Addresses
- Static secure MAC addresses are statically configured by network administrators
- Static secure MAC addresses are stored in the MAC table and the switch configuration
- Dynamic secure MAC addresses are dynamically learned by the switch
- Dynamic secure MAC addresses are stored in the MAC table, but not the configuration
- Sticky secure MAC addresses are a mix of static and dynamic secure MAC addresses
- Sticky addresses can be learned dynamically or configured statically
- Sticky addresses are stored in the MAC table as well as the switch configuration
- The port security feature can perform the following in the event of a security violation:
- Protect
- Shutdown (default)
- Restrict
- Shutdown VLAN
- The protect option forces the port into a protected port mode
- In protected mode, frames with unknown source addresses are simply discarded
- The shutdown option places a port in an err-disabled state if a violation is detected
- Shutdown sends an SNMP trap, a Syslog message, and increments the violation counter
- Restrict drops frames from unknown MACs when the address limit is reached
- Restrict also sends an SNMP trap, a Syslog message, and increments the violation counter
- The shutdown VLAN option shuts down the VLAN on multi-VLAN access ports
Dynamic ARP Inspection
- DAI is a security feature that validates Address Resolution Protocol packets in a network
- ARP spoofing occurs during the ARP request and reply message exchange between hosts
- DAI determines the validity of packets via an IP-to-MAC address binding inspection
- DAI will drop all packets with invalid IP-to-MAC address bindings that fail the inspection
- Dynamic ARP Inspection can be used in both DHCP and non-DHCP environments
- DAI associates a trust state with each interface on the switch
- All packets that arrive on trusted interfaces bypass all DAI validation checks
- All packets that arrive on untrusted interfaces undergo the DAI validation process
DHCP Snooping and IP Source Guard
- DHCP spoofing and starvation attacks are used to exhaust the DHCP address pool
- DHCP Snooping uses the concept of trusted and untrusted interfaces
- Packets received on untrusted ports are dropped if they have invalid bindings
- The IP Source Guard feature is typically enabled in conjunction with DHCP Snooping
- IP Source Guard is a feature that restricts IP traffic on untrusted Layer 2 ports
- IP Source Guard filters traffic based on the DHCP Snooping Binding Database
- IP Source Guard also filters traffic based on configured IP source bindings
- The IP Source Guard feature is primary used to prevent IP address spoofing attacks
- For each untrusted Layer 2 port, there are two modes of IP traffic filtering:
- Source IP address filter
- Source IP and MAC address filter
Securing Trunk Links
- VLAN hopping attacks attempt to bypass Layer 3 communication between VLANs
- The two primary methods used to perform VLAN hopping attacks are:
- Switch spoofing
- Double-tagging
- In switch spoofing, the attacker impersonates a switch by emulating a trunk
- Switch spoofing attacks attempt to exploit the default native VLAN
- Switch spoofing attacks can be prevented by performing the following:
- Disabling the Dynamic Trunking Protocol on trunk ports
- Disabling trunking capability on ports that should not be configured as trunk
- Preventing user data from traversing the native VLAN
- Double-tagging VLAN attacks involve tagging frames with two 802.1Q tags
- Double-tagging VLAN attacks can be prevented by performing the following:
- Ensuring the native VLAN on trunk ports is different from user access VLANs
- Configuring the native VLAN to tag all traffic
Identity Based Networking Services
- IBNS provides identity-based access control and policy enforcement at the switch port level
- IBNS incorporates 802.1x, EAP, and the RADIUS security protocols
- IBNS offers scalable and flexible access control and policy enforcement services and allows:
- Per-user or per-service authentication services
- Policies mapped to network identity
- Port-based network access control based on authentication and authorization policies
- Additional policy enforcement based on access level
- IEEE 802.1x is an open protocol standard framework for both wired and wireless LANs
- 802.1x is an IEEE standard for access control and authentication
- 802.1x provides the definition to encapsulate the transport of EAP messages at Layer 2
- There are three primary components in the 802.1x authentication process:
- Supplicant or Client
- Authenticator
- Authentication Server
- An 802.1x supplicant or client is simply an 802.1x-compliant device, such as a workstation
- An 802.1x authenticator is a device that enforces physical access control to the network
- The authentication server validates the identity of the client and authorizes the client access
- EAPOL frames have a destination MAC of 01-80-C3-00-00-03
- Either the Switch or the Client (Supplicant) can initiate 802.1x authentication
- 802.1x authentication is initiated when the link transitions from a state of down to up
Private VLANs
- Private VLANs allow for the segregation of traffic at Layer 2
- PVLANs transform a Broadcast segment into a non-Broadcast multi-access segment
- The private VLAN feature uses three different types of ports:
- Community
- Isolated
- Promiscuous
- The three types of VLANs used in PVLANs are:
- The Primary VLAN
- Isolated VLANs
- Community VLAN
- A private VLAN therefore actually contains three elements:
- The PVLAN itself
- The secondary VLANs (Community and Isolated)
- The promiscuous port
Port ACLs and VLAN ACLs
- PACLs are similar to RACLs but are supported and configured on Layer 2 interfaces
- Port ACLs are supported on both physical and Etherchannel interfaces
- Port ACLs perform access control on all traffic entering the specified Layer 2 port
- Port ACLs apply only to ingress traffic on the port
- PACLs are supported only in hardware only and do not affect packets routed in software
- When you create a Port ACL, an entry is created in the ACL TCAM
- VACLs operate similar to RACLs
- VACLs apply access control to packets bridged within a VLAN or routed between VLANs
- VACLs have no sense of direction and apply to traffic at both ingress and egress
Other Security Features
- Storm control prevents network traffic from being disrupted by traffic storms or floods
- Protected ports operate in a similar manner to private VLANs
- Traffic between protected ports cannot be switched and must therefore be routed
- Port blocking blocks unknown Unicast and Multicast traffic