CEH · M12

Firewalls and detection: verify allow, block and alert separately

Network controls and detection systems provide different evidence. Use a control matrix to check legitimate traffic, prohibited traffic and events that should be observed.

After this lesson, you can
  • Distinguish firewall policy, IDS alerts and IPS blocking.
  • Explain why no alert does not imply no event.

Prerequisites: Port states: what do open, closed and filtered tell you?

Different controls have different jobs

A firewall controls traffic according to policy. An IDS observes and alerts. An IPS can block traffic on its path. Products may combine these abilities, so check deployment location, mode and rules rather than relying on a product label.

A honeypot can provide clues from interactions with a decoy asset, but its view is also limited. Although the module follows the official chapter structure, this introductory unit focuses on defensive validation and supplies no procedure for bypassing real monitoring.

Further reading: NIST SP 800-41 Rev. 1: Firewalls and Firewall Policy

Put expectations and observations in one table

List source, destination, protocol, action and expected result, then record actual allowance, blocking and alerts. Blocking a legitimate service affects availability. Allowing prohibited traffic violates policy. An event without an alert may indicate a detection or collection gap.

With no alert, check whether the sensor saw the event, whether a rule applies, and whether clocks and forwarding work. A quiet dashboard is not proof of no attack without those checks.

Example: allow web traffic, deny an administration port

A fictional policy allows visitors to 443, denies them an administration port and logs denials. Synthetic results show both blocked, with only the administration-port denial logged.

Blocking administration matches policy; blocking 443 breaks legitimate functionality. Testing only prohibited cases would miss it. Log completeness must also be compared with the stated logging requirement.

Conclusion: Include at least one allow case, one deny case and evidence for both.

Offline exercise: a control matrix

Fill a synthetic table without changing firewalls or monitoring.

  1. Create visitor→443 and visitor→administration-port rows.
  2. Enter expected and observed outcomes and log presence.
  3. Identify the rule needing correction and the observation requiring follow-up.

Expected result

Restore legitimate 443 access, retain the administration denial and check logging requirements separately.

Check your work

Why does blocking every flow not necessarily pass acceptance?

Finish and clean up

Keep the matrix; no real rules require rollback.

Q&A · Check your reasoning

Choose an answer and confidence, then read every explanation. Answers stay in this browser.

ceh-m12-controls-q1 · Original practice

What can first be said when an IDS shows no alert?

What can first be said when an IDS shows no alert?
ceh-m12-controls-q2 · Original practice

Why include legitimate traffic in firewall testing?

Why include legitimate traffic in firewall testing?

Connect the next idea

Terms: Firewall policy·Detection visibility·Availability

Sources & scope

These sources support the technical principles. Examples, questions and exercises are original to this series.