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

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).

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.