Study guide

9.2 Firewalls, IDS & IPS

U.S. Air Force Cyber Test CSAT/ICTL

Track your progress as you read

Finished sections get a check mark.

1 Introduction & Exam Overview

1.1 Current Exam Facts 1.2 Cyber AFSCs & Qualification Pipeline 1.3 How to Use This Guide & Study Plan

2 Number Systems & Encoding

2.1 Binary & Decimal Conversion 2.2 Hexadecimal & ASCII 2.3 Bitwise Operations & Two's Complement

3 Computing Architecture

3.1 Memory Hierarchy 3.2 CPU, Components & Data Path 3.3 Core Data Structures

4 Boolean Logic & Storage

4.1 Boolean Algebra & Logic Gates 4.2 Encoding, Files & Storage Concepts

5 Networking Models

5.1 OSI Model 5.2 TCP/IP Model & Encapsulation 5.3 Topologies & Transmission Media

6 Addressing & Subnetting

6.1 IPv4 Addressing 6.2 Subnetting & CIDR 6.3 IPv6 Fundamentals

7 Protocols & Network Services

7.1 TCP, UDP & Well-Known Ports 7.2 DNS & DHCP 7.3 Routing & Switching Basics

8 Cybersecurity Foundations

8.1 CIA Triad & Security Goals 8.2 Threats, Vulnerabilities & Malware 8.3 Social Engineering & Human Factors

9 Defensive Controls

9.1 Access Control & Authentication 9.2 Firewalls, IDS & IPS 9.3 SIEM & Defense in Depth

10 Programming Fundamentals

10.1 Variables, Types & Operators 10.2 Control Flow 10.3 Functions & Recursion

11 Languages & Debugging

11.1 Python Essentials for the Cyber Test 11.2 C++ Basics & Debugging Concepts

12 Operating Systems

12.1 Linux Fundamentals & Commands 12.2 Windows Fundamentals 12.3 Processes, Permissions & File Systems

13 Cryptography

13.1 Symmetric Encryption (AES) 13.2 Asymmetric Crypto & PKI 13.3 Hashing, MACs & Integrity

14 ICTL-Style Logic Reasoning

14.1 Deductive Logic & Syllogisms 14.2 Sequences & Pattern Recognition 14.3 Arrangement & Conditional Puzzles

15 Test Strategy & Mixed Review

15.1 Pacing, Elimination & AF Testing Day 15.2 Mixed Domain Review & Next Steps

9.2 Firewalls, IDS & IPS

Key Takeaways Explain This Topic AI

Firewalls enforce network policy by allowing or denying traffic between trust zones based on rules

Packet filters check headers (IP, port, protocol) without deep connection tracking; stateful firewalls track connection state; proxies mediate at the application layer

IDS detects and alerts on suspicious activity; IPS can actively block or drop malicious traffic inline

IDS is typically passive/out-of-band monitoring; IPS sits inline in the traffic path — that placement difference drives exam answers

Firewalls, IDS, and IPS complement each other: policy enforcement, detection, and automated prevention are related but not identical jobs

Last updated: July 2026

Once identities and permissions are under control, defenders still need to police traffic moving across network boundaries. Firewalls, intrusion detection systems (IDS), and intrusion prevention systems (IPS) are core network defensive controls on the Cyber Test. Questions usually test whether you can distinguish firewall types and whether a sensor merely alerts or can actively block.

What a Firewall Does

A firewall is a network security device or software that sits between zones of different trust (for example, the internet and an internal network, or a user LAN and a restricted server segment). It evaluates traffic against a policy — a set of allow/deny rules — and either forwards or drops packets. Default-deny ("deny all unless explicitly allowed") is the stronger posture; default-allow is easier to misconfigure into exposure.

Firewalls implement segmentation : they shrink the attack surface by ensuring that only approved services are reachable across a boundary. They do not replace host hardening, patching, or good authentication — they are one layer in a deeper defense strategy covered in the next section.

Packet-Filtering Firewalls

A packet-filtering firewall (also called a stateless packet filter when it lacks connection tracking) inspects individual packets, typically looking at Layer 3/4 header fields : source and destination IP addresses, protocol (TCP/UDP/ICMP), and port numbers. Rules might say "allow TCP 443 to the web server subnet" or "deny all inbound Telnet (TCP 23)."

Strengths: fast, relatively simple, low latency. Weaknesses: limited context. Without remembering whether a packet belongs to an established conversation, a naive filter can be tricked by crafted packets that look like replies or that abuse allowed ports. Packet filters also generally do not understand application content (for example, malicious commands inside an allowed HTTPS session).

Think of a packet filter as a bouncer checking IDs at the door by looking at the address on the envelope — not reading the letter inside, and not always remembering who already came in.

Stateful Firewalls

A stateful firewall tracks connection state . When an internal host starts an outbound TCP connection, the firewall records that conversation in a state table. Matching return traffic is allowed because it belongs to an established session; unsolicited inbound packets that do not match a known state can be dropped even if a naive port rule might have been ambiguous.

Stateful inspection dramatically improves accuracy for protocols like TCP, where the difference between "reply to our request" and "unsolicited inbound probe" matters. Most modern network firewalls are stateful by default. On the exam, if a question emphasizes tracking established sessions or dynamic allow of return traffic, the answer is stateful inspection — not a simple static packet filter.

Proxy (Application-Layer) Firewalls

A proxy firewall (application proxy / application-layer gateway) does not simply forward packets between client and server. It terminates the client connection, inspects or rebuilds the request at the application layer, and opens a separate connection to the destination if policy allows. From the outside, the proxy is the visible endpoint.

Because proxies understand application protocols (HTTP, SMTP, and others depending on the product), they can enforce content rules: block certain URLs, strip dangerous attachments, or validate protocol compliance. That depth costs performance and can require protocol-specific proxy support. Proxy firewalls are stronger at application abuse detection than pure packet filters, but they are not a magic "read encrypted everything" solution without TLS interception and careful design.

Quick firewall comparison:

  • Type Decision basis Context depth Typical tradeoff
  • Packet filter Headers (IP/port/protocol) Low / per-packet Fast, limited awareness
  • Stateful Headers + connection state Medium Accurate session handling
  • Proxy Application content/protocol High Deeper control, more overhead
  • Intrusion Detection Systems (IDS)

An IDS monitors network or host activity for signs of malicious or policy-violating behavior and generates alerts . Classic approaches include:

Signature-based detection — matches known attack patterns (like antivirus signatures). Good for known threats; weak against brand-new (zero-day) variants until signatures update.

Anomaly-based detection — flags deviations from a learned "normal" baseline. Can catch novel behavior; risks more false positives if the baseline is noisy.

Network IDS (NIDS) watches traffic (often via SPAN/mirror ports or taps). Host IDS (HIDS) watches a single system's logs, files, or processes. Critically for the exam: a pure IDS is detective . It informs analysts; it does not, by definition, have to sit inline and stop the packet.

Intrusion Prevention Systems (IPS)

An IPS uses similar detection techniques but can actively block , drop, reset, or otherwise prevent malicious traffic. To do that effectively, an IPS is typically deployed inline — traffic must pass through it. That placement enables prevention but also means a failed IPS can become a network bottleneck or outage point if not engineered carefully (high availability, fail-open vs fail-closed policy decisions).

Exam distinction in one sentence: IDS detects and alerts; IPS detects and can block. If a question says "passive monitoring" or "out-of-band sensor," think IDS. If it says "inline" and "automatically drops the attack packet," think IPS. Many enterprise platforms blend IDS/IPS features; the Cyber Test still expects the conceptual split.

How Firewalls Relate to IDS/IPS

Do not treat these as interchangeable labels:

Firewall — primarily enforces allow/deny policy between zones (ports, addresses, applications, users depending on generation)

  • IDS — finds suspicious activity and notifies
  • IPS — finds suspicious activity and intervenes

In practice, next-generation firewalls may include IPS signatures, application awareness, and user identity rules. For aptitude-exam purposes, answer with the primary function described in the stem. "Blocks TCP 23 from the internet" sounds like firewall policy. "Alerts when a known exploit payload is seen on the SPAN port" sounds like IDS. "Drops packets matching an exploit signature on the inline path" sounds like IPS.

Placement Mental Model

Picture a base network edge: internet → border firewall (stateful rules) → demilitarized zone (DMZ) services → internal firewall → mission LAN. An IDS sensor might watch a mirrored copy of DMZ traffic and page analysts. An IPS module might sit inline before critical servers to stop worm-like traffic automatically. Analysts still review alerts because automated blocks can false-positive and interrupt legitimate missions.

Master the three firewall depths (packet / stateful / proxy) and the IDS-vs-IPS action difference. Those two distinctions unlock most Cyber Test items in this topic.