Lesson plan: Host-Based Firewalls
AP Cybersecurity · Unit 4 Securing Devices · Topic 4.3 Protecting Devices · Practice set
At a glance
- Suggested time
- 2 class periods (45 min)
- Pacing
- Last of three sets for Topic 4.3. The CED gives Topic 4.3 five class periods; this plan suggests 1 for Device Policies, 2 for Anti-Malware and Patching, and 2 for this set. The split is this plan's own; the CED does not divide the topic.
- Before this set
- Access Control Lists and Rule Order and Firewall Types and Placement in Securing Networks (how a network-based firewall reads its rule list, first match). No problem needs a port's meaning; each trace is matched on the number. If students ask: 21 FTP, 22 SSH, 23 Telnet, 53 DNS, 80 HTTP, 123 time sync, 443 HTTPS, 445 SMB file sharing, 514 log forwarding (syslog), 3389 RDP, and 9100 printing. They should also read an address range like
10.6.1.0/24. - 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 host-based firewall guards one device, in both directions, and reads its rule list the way a network firewall does: from the top, stopping at the first rule whose every field fits. The device is one end of every connection, so a rule names only the other end.
Day by day
Day 1 · One device's rule list45 min
- Open (5 min)Project the rule list at the top of the mini-lesson. Ask: a coworker at 10.40.3.17 starts a playtest on UDP port 7777; which rule handles it? (Rule 1.) Collect answers before reading on.
- Mini-lesson (15 min)Teach Host-Based Firewalls. Stop at its two questions, the coworker's TCP request in the opening section and matching Blaster's two steps to rules under Blaster, and take answers before reading the paragraph that follows each.
- Do together (5 min)Problem 2 🔒 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
- On their own (12 min)Problem 1 🔒 what the host-based firewall adds · Problem 3 🔒 which field picks out one program · Problem 4 🔒 what an outbound block prevents.
- Do together (8 min)Problem 5 🔒 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
Day 2 · First match, then a change45 min
- Open (5 min)Problem 3 🔒 Problem 4 🔒 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
- In pairs (15 min)Problem 6 🔒 Problem 7 🔒 Problem 8 🔒 Problem 9 🔒: one student reads the connection's direction, protocol, address, and port aloud, and the other walks the rules. Problem 8 🔒 also asks what the network-based firewall saw.
- On their own (10 min)Problem 10 🔒 Problem 11 🔒 Problem 12 🔒.
- Discuss (5 min)Problem 10 🔒 Problem 11 🔒 Problem 12 🔒 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
- Write (10 min)Problem 11 🔒 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
Differentiation
- If students are struggling
- Hand out the tables on paper. Trace Problem 5 🔒 and Problem 6 🔒 as a class, crossing out each rule on the first field that fails (direction, protocol, address, or port), before students try Problem 7 🔒 on their own.
- Extension
- 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
- Vocabulary support
- host-based and network-based firewall, inbound and outbound, remote address, source port and destination port, subnet, exfiltrate (copy data out to the adversary).
🔒 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 4.3.D Configure a host-based firewall.
- 4.3.D.1 Host-based firewalls allow or deny traffic into or out of a single device. This provides an extra layer of security in case a host is connected to a compromised network.
- 4.3.D.2 A host-based firewall is software that runs on a device and follows a set of rules (an ACL) like a network-based firewall. Firewall rules are implemented in order, applying the first rule that matches.
- 4.3.D.3 A host-based firewall can also block specified types of outbound traffic. Host-based firewalls should always block ports or services not needed for a given device.
- 4.3.D.4 The rules for a host-based firewall can allow or deny traffic based on source or destination port or IP address, service, protocol, or application.