Cyber Security Community Question

Where does a Firewall actually sit in the OSI model for modern Cyber Security?

Posted on 2024-02-22 • In Cyber Security • By Jennifer White

I'm confused about the placement of security appliances. Some say Firewalls are Layer 3, but I’ve heard about "Next-Gen Firewalls" working at Layer 7. If I am designing a secure network architecture, at which layers should I be implementing filtering to prevent sophisticated SQL injection or DDoS attacks?

3 Answers 11,079 Views

All answers to this question 3 Answers

Linda Montgomery Answered on 2024-02-23
Answered

Think of security as a "Defense in Depth" strategy. You need filtering at Layer 3 for volume and Layer 7 for context.

Jennifer White Commented on 2024-02-24
Commented

Exactly, Linda. Relying on just one layer is like having a front door lock but leaving the windows wide open. Most modern SOCs monitor across the entire stack.

David Clark Answered on 2024-02-24
Answered

If a firewall is inspecting Layer 7 data, doesn't that cause massive latency issues for high-traffic enterprise applications?

Christopher Evans Commented on 2024-02-26
Commented

David, you're right to worry about latency. That's why high-end hardware uses dedicated ASICs to speed up deep packet inspection. In my experience, the security trade-off is mandatory today; a slight delay is much better than a total data breach.

Patricia Davis Answered on 2024-11-15
Answered

It depends on the type of firewall. A traditional packet-filtering firewall operates at Layer 3 (Network) and Layer 4 (Transport) by looking at IP addresses and port numbers. However, a Next-Generation Firewall (NGFW) or a Web Application Firewall (WAF) goes all the way up to Layer 7 (Application). In a project I led in 2024, we had to deploy WAFs specifically to inspect HTTP traffic for SQL injection. You can't catch those at Layer 3 because the "malicious" data is hidden inside the application payload, which lower-layer firewalls simply ignore.

Write a Comment

Your email address will not be published. Required fields are marked (*)

Join the LearnersEra Community

Ask questions, share knowledge and learn from professionals across technology, project management and certification topics.

Change Country and Nearest City

Select your country and nearest city to see courses available in your region.