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
- Open (5 min)Project the CED's two-rule example (bottom of this plan) and ask what traffic Rule 1 allows. Collect answers before the mini-lesson.
- Mini-lesson (10 min)Teach Access Control Lists and Rule Order. Read it together, or assign it the night before.
- Do together (5 min)Problem 3 🔒: read one rule field by field.
- On their own (20 min)Problem 1 🔒 Problem 2 🔒 vocabulary · Problem 4 🔒 Problem 5 🔒 turn a plain-English requirement into a rule.
- Exit check (5 min)🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
Day 2 · First match wins45 min
- Do together (10 min)Problem 6 🔒: trace the packet through the 9-rule table out loud, one rule at a time. Model "match? no, next" for each line.
- In pairs (20 min)Problem 7 🔒 Problem 9 🔒 Problem 10 🔒: one student reads the packet, the other walks the rules.
- On their own (5 min)Problem 8 🔒: what happens to a packet no rule matches. Neither the lesson nor the CED says, so expect guesses; settle it after students commit to an answer.
- Discuss (10 min)Problem 10 🔒 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
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).
🔒 Answer keyEvery problem's answer, the concept and essential knowledge it checks, and the trap it targets.Sign in as a teacher to see this🔒 Traps this set testsWhat each common wrong answer looks like, and one line to say when you see it.Sign in as a teacher to see this🔒 What to emphasizeThe points that decide the set's problems.Sign in as a teacher to see this🔒 Questions to ask aloudQuestions for the class discussion, with what to listen for.Sign in as a teacher to see this🔒 On the examHow the set's ideas appear on the AP exam, from the course framework.Sign in as a teacher to see this🔒 Your class so farLive results for your section: the problems a third or more missed on the first try, the most common wrong answer, and what it usually means.Sign in as a teacher to see this
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.