Explain it simpler
A firewall controls which network traffic is allowed in or out. A layer 4 firewall makes decisions based on addresses and port numbers, the network equivalent of checking the address on an envelope. A layer 7 firewall looks inside the traffic to understand the actual application and content. A next-generation firewall (NGFW) combines these with extra features like identifying apps and spotting known attacks. A web application firewall (WAF) specifically protects websites from attacks such as SQL injection and cross-site scripting. Unified threat management (UTM) puts many tools, like firewall, antivirus, and content filtering, into one box, which is common for small businesses. Think of a building lobby: a basic guard checks names on a list, a sharper guard opens bags, and a dedicated guard watches only the front desk for scams.
It is Monday morning at Copperline Outfitters, a small online gear shop, and Priya from the web team forwards you a screenshot. Over the weekend someone typed a strange string into the store's search box, and the product page briefly displayed customer email addresses. 'How did that get through?' she asks. 'We have a firewall.' You open the firewall log and see the requests clearly: allowed, port 443, from the internet to the web server, exactly as the rule says. The firewall did its job perfectly and the attack still landed. So what kind of firewall was actually needed, and where should it sit?
Begin with what every firewall does. A firewall enforces rules about which network traffic may pass between zones, such as between the internet and an internal network or between internal segments. Firewalls differ mainly in how deeply they look at traffic, and Security+ tests whether you can match the right type to a threat. The layer numbers refer to the Open Systems Interconnection (OSI) model: a Layer 4 firewall decides using addresses, protocols and ports, while a Layer 7 firewall understands the application data itself. Choosing correctly means knowing what each type can see and, just as important, what it cannot.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 8 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.