By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
Firewalls, Intrusion Detection/Prevention Systems (IDS/IPS), and network segmentation are the first line of defense in network security. They control traffic flow, detect malicious activity, and limit lateral movement during breaches. A real-world example: The 2017 Equifax breach (147M records exposed) occurred because an unpatched web application firewall (WAF) allowed attackers to exploit a known vulnerability (CVE-2017-5638). Without proper segmentation, attackers moved freely across Equifax’s network, exfiltrating sensitive data. These controls are critical for defense-in-depth, compliance (PCI DSS, NIST SP 800-53), and preventing ransomware spread.
Web Application Firewall (WAF): Protects web apps (Layer 7) from attacks like SQLi, XSS, and CSRF (e.g., ModSecurity, Cloudflare WAF). Required for PCI DSS compliance.
IDS (Intrusion Detection System): Monitors network traffic for suspicious activity and alerts security teams (e.g., Snort, Suricata, Zeek). Passive—does not block attacks.
HIDS (Host IDS): Installed on endpoints (e.g., OSSEC, Tripwire) to monitor file integrity and logs.
IPS (Intrusion Prevention System): Like IDS but actively blocks malicious traffic (e.g., drops packets, resets connections). Inline—traffic must pass through it.
False Negative: Malicious traffic missed (e.g., a zero-day exploit bypasses IPS).
Network Segmentation: Dividing a network into isolated subnets to limit lateral movement (e.g., separating HR, Finance, and IoT devices).
Zero Trust: "Never trust, always verify"—assumes breach and enforces least privilege (e.g., Google’s BeyondCorp).
ACL (Access Control List): A set of rules defining permitted/denied traffic (e.g., "allow TCP 443 from 10.0.0.0/24 to 192.168.1.100").
Implicit Deny: Traffic not explicitly allowed is blocked by default (critical for security!).
NAT (Network Address Translation): Translates private IPs (e.g., 192.168.1.1) to public IPs (e.g., 203.0.113.5) to hide internal network structure.
DNAT (Destination NAT): Used for inbound traffic (e.g., port forwarding to a web server).
VPN (Virtual Private Network): Encrypts traffic between remote users and the corporate network (e.g., OpenVPN, IPSec, WireGuard).
Split Tunneling: Allows users to access the internet directly (not through VPN), reducing bandwidth but increasing risk.
Proxy Server: Acts as an intermediary for requests (e.g., filtering web content, caching, anonymizing traffic). Forward Proxy (client-side) vs. Reverse Proxy (server-side, e.g., Nginx, Cloudflare).
Non-Transparent Proxy: Requires manual configuration (e.g., browser settings).
SIEM (Security Information and Event Management): Aggregates logs from firewalls, IDS/IPS, and endpoints to detect threats (e.g., Splunk, IBM QRadar, ELK Stack).
Goal: Secure a corporate network with internet access, a DMZ, and internal segments.1. Define Security Zones: - Untrusted (Internet) → DMZ (Web/Email Servers) → Trusted (Internal Network). - Use VLANs (e.g., VLAN 100 for DMZ, VLAN 200 for internal).2. Write Firewall Rules (Least Privilege): - DMZ Rules: - Allow TCP 80/443 from Internet → DMZ Web Server. - Allow TCP 25 (SMTP) from DMZ Email Server → Internet. - Deny all other inbound traffic to DMZ. - Internal Rules: - Allow TCP 3389 (RDP) from IT VLAN → Server VLAN (with MFA). - Allow TCP 443 from Internal → Internet (for updates). - Block all inbound traffic from DMZ to Internal.3. Enable Logging & Alerts: - Log denied connections (e.g., "Blocked TCP 22 from 1.2.3.4"). - Set alerts for port scans (e.g., 10+ connection attempts in 1 minute).4. Test Rules: - Use nmap to scan from an external IP: nmap -Pn -p 1-1000 <firewall-IP>. - Verify only allowed ports (e.g., 80/443) respond.5. Enable IPS (Inline Mode): - Deploy Snort/Suricata or NGFW IPS (e.g., Palo Alto Threat Prevention). - Test with Metasploit: msfconsole > use exploit/multi/http/apache_mod_cgi_bash_env_exec.
nmap -Pn -p 1-1000 <firewall-IP>
msfconsole > use exploit/multi/http/apache_mod_cgi_bash_env_exec
snort.conf
192.168.1.0/24
!$HOME_NET
frag3
stream5
snort -A console -q -c /etc/snort/snort.conf -i eth0
curl http://testmyids.com
drop tcp any any -> $HOME_NET 80 (msg:"SQL Injection Attempt"; content:"' OR 1=1"; sid:1000001; rev:1;)
A) Block the IP at the firewall.B) Disable SSH on the server.C) Enable rate-limiting on the SSH port.D) Deploy an IPS in inline mode to block the attacks.
✅ Correct Answer: AExplanation: Blocking the IP at the firewall is the fastest and most effective way to stop the attack. Disabling SSH (B) is too disruptive, rate-limiting (C) may not stop the attack, and deploying an IPS (D) is a longer-term solution.
A) Placing IoT devices on a separate VLAN.B) Using a stateful firewall to block all traffic to/from IoT devices.C) Deploying a DMZ for IoT devices.D) Implementing microsegmentation with host-based firewalls.
✅ Correct Answer: DExplanation: Microsegmentation (e.g., VMware NSX, host-based firewalls) provides per-device isolation, which is stronger than VLANs (A) or DMZs (C). A stateful firewall (B) alone doesn’t segment within the network.
A) Exploit a misconfigured firewall rule allowing DMZ → Internal traffic.B) Use ARP spoofing to intercept traffic between the DMZ and internal network.C) Brute-force the domain controller from the DMZ server.D) Deploy a reverse proxy to pivot into the internal network.
✅ Correct Answer: AExplanation: The most common lateral movement path is exploiting misconfigured firewall rules (e.g., "allow DMZ → Internal on TCP 3389"). ARP spoofing (B) is Layer 2 and less likely in a segmented network. Brute-forcing (C) is noisy, and reverse proxies (D) are not typical for lateral movement.
WAF: Protects web apps (Layer 7), blocks SQLi/XSS.
IDS vs. IPS:
IPS: Active, blocks traffic (e.g., Snort in inline mode).
Network Segmentation:
Microsegmentation: Per-device isolation (e.g., VMware NSX).
Key Ports:
UDP 53: DNS
NAT Types:
DNAT: Destination NAT (port forwarding).
Zero Trust Principle: "Never trust, always verify" – least privilege, microsegmentation, MFA.
⚠️ Common Exam Trap: "Firewalls operate at Layer 3 only" → False! NGFWs/WAFs operate at Layer 7.
Implicit Deny: The last firewall rule should always be "deny any any".
False Positives vs. False Negatives:
False Negative: Malicious traffic allowed.
PCI DSS Requirement 1: Install and maintain a firewall to protect cardholder data.
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.