Lesson plan: Access Control Lists and Rule Order

AP Cybersecurity · Unit 3 Securing Networks · Topic 3.4 Protecting Networks: Firewalls · Practice set

At a glance

Suggested time
3 class periods (45 min), plus 1 optional
Pacing
Second of two sets for Topic 3.4. The CED gives Topic 3.4 eight class periods; this plan suggests 3 for Firewall Types and Placement, 3 for this set, 1 for the optional CED Scenario 3A day below and 1 for review.
Before this set
Firewall Types and Placement (what a firewall is, stateless and stateful filtering). Students should know these ports: 22 SSH, 23 Telnet, 25 SMTP, 53 DNS, 80 HTTP, 443 HTTPS, 3389 RDP.
Skills
2.B Determine layered security controls that address vulnerabilities.
2.D Implement and log mitigations with and without the support of AI.

The one idea: A firewall reads its rules from the top and stops at the first rule that matches every field. Nothing below that rule matters for that packet.

Day by day

Day 1 · What a rule says45 min

Day 2 · First match wins45 min

Day 3 · Order changes the result45 min

  • Open (5 min)The CED's example reversed: "Swap these two rules. What happens to SSH now?"
  • Do together (15 min)Problem 14 🔒: two orderings of the same rules. Then Problem 12 🔒: a rule that does not seem to work.
  • On their own (20 min)Problem 11 🔒: put four rules in order (expect many first tries to be wrong; each student gets two) · Problem 13 🔒: one more trace.
  • Wrap (5 min)Students write in one sentence where an exception goes in relation to the broader rule it is an exception to.

Optional day · CED Scenario 3A45 min

  • Groups (45 min)Configure Firewall A for Adams County Hospital (CED Scenario 3A): let outside traffic reach the patient web server and block everything else. Groups write 4 to 6 rules, then swap lists and look for a packet that gets through wrongly. Groups that finish write Firewall B's rules: only the internal network may reach the file server holding patient records.

Differentiation

If students are struggling
Do Problem 6 🔒 and Problem 9 🔒 as a class first, marking each rule's fields as matching or not. Hold Problem 11 🔒 for the optional day or homework.
Extension
Problem 11 🔒 with a fifth requirement (block one more host). Or have students write a 6-rule list with a hidden mistake for a partner to find.
Vocabulary support
inbound and outbound, permit and deny, source and destination, address range (/24).

From the course framework

LO 3.4.B Explain how a firewall uses an access control list to allow or deny traffic entering or leaving a network.

  • 3.4.B.1 Network administrators create a set of rules, called an access control list (ACL), that a firewall uses to permit or deny inbound and outbound network traffic.
  • 3.4.B.2 ACL rules are checked in order and the first rule that matches the criteria will be executed for the specified data.
  • 3.4.B.3 A typical ACL will specify the direction of traffic (inbound or outbound), the criterion to filter by (IP addresses, logical port, service, or application), and the action to take (permit or deny).

LO 3.4.D Configure a firewall to manage the flow of network traffic.

  • 3.4.D.1 The requirements for a firewall will specify what type of traffic from which sources or to which destinations should be allowed or denied.
  • 3.4.D.2 Specific rules for a firewall can allow or deny inbound or outbound traffic based on source or destination port or IP address, service, protocol, or application.
  • 3.4.D.3 Rules are implemented in order, and changing the order of a set of rules can change which traffic is allowed or denied. Consideration must be given to the precedence of filtering priorities when establishing the order of rules.

Framework example: Rule 1: ALLOW inbound TCP port 22 from ALL; then Rule 2: DENY inbound TCP ALL from ALL; allows SSH and denies other inbound TCP. Reversed, the list denies all inbound TCP, SSH included.