Black Friday sale: an extra 40% off every course until Monday, November 30.New Year sale: an extra 30% off every course until Friday, January 1.Memorial Day sale: an extra 25% off every course until Monday, May 31.SysAdmin Day sale: an extra 25% off every course until Sunday, August 1.Back to School sale: an extra 25% off every course until Sunday, August 22.Labor Day sale: an extra 25% off every course until Monday, September 6.Black Friday sale: an extra 40% off every course until Monday, November 29.New Year sale: an extra 30% off every course until Saturday, January 1.Choose your certification →

Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

5.5.1. Firewalls, IDS/IPS, and Web Filters

💡 First Principle: These technologies control and inspect network traffic at different layers and points in the network. Each serves a distinct purpose, and understanding when to use each — and how they complement each other — is essential.

Firewall rule management — rules should follow the principle of least privilege: deny by default, allow only what's explicitly needed. Rules are processed top-to-bottom; the first match applies. Rule ordering matters — a broad allow rule above a specific deny rule renders the deny rule useless. Regular rule reviews prune stale rules that accumulate over time. Implicit deny at the bottom blocks everything not explicitly permitted.

IDS vs. IPS — IDS detects and alerts; IPS detects and blocks. IDS is passive (monitors a copy of traffic), while IPS sits inline (traffic passes through it). IPS can stop attacks in real time but introduces a potential single point of failure.

IDS/IPS deployment modes:
  • Network-based (NIDS/NIPS) — monitors network traffic at strategic points (network taps, SPAN ports). Sees all traffic passing through that network segment but can't inspect encrypted traffic.
  • Host-based (HIDS/HIPS) — installed on individual systems. Sees all activity on that host, including encrypted traffic after decryption. Provides deeper visibility into individual system behavior.

Web filtering — controls web access by category (block gambling, social media during work hours) or reputation (block known-malicious domains). Prevents users from reaching phishing sites, drive-by download pages, and command-and-control servers.

Content filtering — inspects the content of web traffic (not just the URL) for malicious scripts, embedded malware, or policy violations. Goes deeper than URL filtering by examining what's inside the page.

URL filtering — blocks or allows access based on the specific URL or domain. Uses categorized databases of millions of websites updated in real time.

Firewall capabilities to know:
  • Rule-based firewall — decisions come from an ordered rule list matched on criteria such as source, destination, port, protocol and time of day; this is the rule-processing model described above.
  • Layer 4 vs. Layer 7 — a Layer 4 firewall decides on IP addresses, protocols, TCP/UDP ports and connection state, so it cannot tell a web browser from malware tunneling over port 443. A Layer 7 (application-layer) firewall, such as an NGFW or WAF, inspects the application traffic itself: it can allow Microsoft Teams but block a file-sharing app on the same port, or drop a SQL injection string inside an otherwise valid HTTPS request (after TLS inspection). The price is more processing and latency.
  • Rate limiting requests — capping how many requests a source may make in a time window (for example, 100 API calls a minute, or 5 login attempts a minute per IP address) and dropping or delaying the excess. It blunts brute-force and credential-stuffing attempts, scraping and application-layer floods, and is a common WAF, load-balancer and API-gateway feature. Against a large distributed attack it only reduces the impact, because each bot can stay under the per-source limit.
  • Unified threat management (UTM) — one appliance combining firewall, IDS/IPS, antivirus, content and URL filtering, VPN and often spam filtering. Typical at small and mid-size sites: one box, one console, lower cost. The trade-offs are a single point of failure and throughput that drops as more inspection engines are switched on.

Wireless intrusion prevention system (WIPS) — dedicated sensors, or access points in sensor mode, monitor the radio spectrum for rogue access points, evil twins (a fake AP broadcasting the corporate SSID), deauthentication floods and unauthorized ad hoc networks, and can contain a rogue AP, for example by blocking the switch port it is plugged into or preventing clients from associating with it. A wired NIDS cannot see these attacks, because they happen over the air before any traffic reaches the wired network.

Content filter deployment — filtering can be centralized through a proxy (an on-premises forward proxy or a cloud secure web gateway) that all web traffic passes through, or agent-based, with software on each endpoint enforcing the policy wherever the device is. A proxy is simple to manage but protects only traffic that goes through it; an agent keeps protecting a laptop on hotel Wi-Fi. Many organizations use both, often with DLP inspection built into the same path.

⚠️ Exam Trap: IDS detects and alerts; IPS detects and blocks. Firewall rules process top-to-bottom — the first matching rule applies. If you see a question about a rule that should block traffic but doesn't, check if a broader allow rule above it matches first.

See how it connects
Alvin Varughese
Written byAlvin Varughese
Founder•26 professional certifications earned