Example for Using Advanced ACLs to Control Access to the Specified Server in the Specified Time Range
ACL Overview
An Access Control List (ACL) consists of one rule or a set of rules that describe the packet matching conditions. These conditions include source addresses, destination addresses, and port numbers of packets.
An ACL filters packets based on rules. A device with an ACL configured matches packets based on the rules to obtain the packets of a certain type, and then decides to forward or discard these packets according to the policies used by the service module to which the ACL is applied.
Depending on the rule definition methods, ACLs include basic ACL, advanced ACL, and Layer 2 ACL. An advanced ACL defines rules to filter IPv4 packets based on source IP addresses, destination IP addresses, IP protocol types, TCP source/destination port numbers, UDP source/destination port numbers, fragment information, and time ranges. Compared with a basic ACL, an advanced ACL is more accurate, flexible, and provides more functions. For example, if you want to filter packets based on source and destination IP addresses, configure an advanced ACL.
In this example, an advanced ACL is configured so that the device can filter the packets sent from external hosts to internal servers and thus restrict access of external hosts to internal servers.
Networking Requirements
As shown in Figure 10-161, the departments of an enterprise are connected through the Switch. The R&D and marketing departments cannot access the salary query server at 10.164.9.9/24 in work hours (08:00 to 17:30), whereas the president office can access the server at anytime.
Configuration Roadmap
- Configure VLANs and configure IP addresses for VLANIF interfaces.
- Configure a time range and advanced ACLs.
- Apply the ACLs so that the device can filter packets sent from users to the server in the specified time range. In this way, you can restrict the access of different users to the server in the specified time range.
Procedure
- Add interfaces to VLANs and assign IP addresses to the VLANIF interfaces.
- Configure a time range.
- Configure ACLs.
- Apply the ACLs.
Result
- Choose Figure 10-169 and Figure 10-170.to view ACL information, as shown in
- Choose Figure 10-167 and Figure 10-168. . Click GigabitEthernet1/0/2 and GigabitEthernet1/0/3 to view the ALCs applied on these interfaces, as shown in
The R&D and marketing departments cannot access the salary query server in work hours (08:00 to 17:30).