The most basic form of an ACL is: for a specific protocol type and port combination, permit or deny traffic from and/or to a host.
Stateful firewalls filter on one-way data flow (flow) or stream, and a stateful firewall compares inbound traffic with defined policies, creates a connection record if traffic is allowed, and automatically releases subsequent packets that belong to the connection without having to compare again.
Due to the high efficiency of the ACL's statelessness, it is well suited to deploy a firewall to perform boundary filtering, or to protect the network infrastructure itself.
Protect infrastructure with ACLs:
To prevent the switch or router from accidental or deliberate risks, you need to deploy infrastructure protection ACLs at the point of entry for your network. These ACLs deny access from external sources to all network infrastructure addresses (such as router interfaces). At the same time, legitimate cross-flow traffic can be allowed unimpeded through the network infrastructure.
The data received by any switch or router can be categorized into the following two categories:
Traffic across a switch or router
Traffic to the switch or router itself
Because the traffic on the control plane of the switch and router is handled by the CPU, it is easy to cause a Dos attack on the control plane. Therefore, access to the external source to the network infrastructure needs to be filtered.
A common border entry ACL:
Three types of ACLs:
Router ACL (RACL): An IP-based ACL that is applied on the routing interface
VLAN ACL (vacl): Traffic that acts on VLANs or VLANs and is applied to all ports in a given VLAN in global configuration mode. It can be filtered by the standard (MAC address) of the second layer and the parameters of the third and fourth layers.
Port-based ACLs (PACL): equivalent to Vacl on a single port that is applied within a VLAN.
| RACL |
Vacl |
PACL |
| Allow or deny flow of traffic between three layers of subnets |
Allow or deny traffic flows between three-tier subnet/vlan or within a VLAN |
Allow or deny traffic flows between three-tier subnet/vlan or within a VLAN |
| Applied as an input or output policy on a third-tier interface |
As a policy is applied to the VLAN interface, it is inherent in both outbound and inbound traffic |
Applied as a policy to the second-tier switch port and is only used for inbound traffic |
Using Racl
The RACL acts on traffic that is routed by the switch. The RACL can be applied on an SVI or a third-tier physical interface.
The SVI interface is the internal interface of a VLAN configured with an IP address, and hosts within the VLAN can use the SVI interface to get out of the VLAN.
Using Vacl
The VACL has the ability to filter traffic between hosts in the same VLAN, and VACL also acts on IP and non-IP traffic.
In contrast to Vacl, Racl cannot match traffic within VLANs because traffic between hosts within the same VLAN is not sent through the routing interface at all.
Because the SVI is no direction, so the Vacl is also no direction. That is, vacl matches both into a VLAN and outgoing traffic from the same VLAN.
Can be combined with racl and vacl on a given VLAN. This combination provides the flexibility to simultaneously control the traffic that is bridged within the VLAN and the traffic that is routed outside the VLAN.
Note : Vacl basically follow the same format as RACL, except that there are differences in how they operate.
Using Pacl
can be mapped to a physical port within a VLAN. A VLAN typically consists of multiple physical ports, and Pacl provides a more granular flow filtering capability on a specific physical port. It can be treated as a port-based vacl. As with Vacl, Pacl is also used for packets that are forwarded on the second and third tiers.
Pacl precedence over vacl,vacl takes precedence over Racl.
Configuration method:
RACL:
1. Match traffic with IP access-list
2. Call on an SVI or routed interface
Vacl:
1. Match traffic with IP access-list or Mac Access-list
2. Use VLAN access-map to do the strategy
3.vlan Filter Set the VLAN that calls this policy
4.clear Arp-cache, clear arp table
PACL:
1. Match traffic with IP access-list or Mac Access-list
2. Call on port (only in)
In order to meet the requirements of traffic capacity in large LAN networks, the hardware architecture of most LAN switches relies on ASIC or unique memory architecture and circuitry. An example of this technique is the Cisco TCAM.
Several switches also come with option features that can perform more operations on a packet than the standard "permit/deny" action. For example, it is quite common for LAN switches to be able to capture traffic that matches an ACL and deliver those traffic to the capture port where the traffic analyzer resides. Another type of action involves redirecting matching traffic from its incoming port to another port.
Access Control List