TechKnowSurge
NIST 800-53 SC-7 CompTIA Network+ 4.3 Cisco CCNA 5.6 Cisco CCST Cybersecurity 2.3 CompTIA Network+ 1.2 Cisco CCST Networking 6.1 ISC2 CC 4.1
VideoSecurityFree

Security - Firewalls

Firewalls serve as the primary security boundary between an internal network and the outside world, controlling which traffic is allowed in or out based on defined rules and inspection methods. This content covers firewall fundamentals, security zones, access control lists, and the advanced capabilities of next-generation firewalls.

Complete this video to capture a CTF flag worth 1 point.

About this video

A firewall is the primary security boundary between an organization's internal network and the outside world, responsible for permitting or denying traffic based on a defined set of criteria. Because completely isolating a network from the internet is impractical for most organizations, the firewall serves as the controlled gateway that enforces security policy without cutting off necessary connectivity. It tracks both outbound and inbound traffic, making decisions not just about what enters the network, but also about what is allowed to leave. Firewalls typically operate across multiple security zones — commonly the internet, a DMZ or screened subnet, and the internal network — each assigned a different trust level. Traffic is generally permitted to flow from higher-trust zones to lower-trust zones, but movement in the opposite direction must meet explicit conditions. Two of the most common exceptions are returning traffic, where the firewall tracks outbound requests and automatically permits the corresponding responses, and access control list rules, which define specific types of inbound traffic that should be allowed, such as external users reaching a public-facing web server. ACLs can filter traffic based on MAC address, IP address, port, application, and other attributes, and may incorporate techniques like stateful packet inspection to evaluate traffic more thoroughly. Traditional firewalls operate primarily at the lower layers of the OSI model, making decisions based on a limited set of header-level attributes. Next-generation firewalls expand on this by performing deep packet inspection, analyzing the actual contents of network traffic to identify threats such as malware or suspicious behavior that would not be visible through conventional filtering alone. This application-layer awareness allows next-generation firewalls to make more informed and precise security decisions, making them a significantly more capable tool for protecting modern networks.

What you'll learn

What's covered

Firewalls & Network Security

Aligned to

NIST 800-53
SC-7 Boundary Protection
CompTIA Network+
4.3 Given a scenario, apply network security features, defense techniques, and solutions.
1.2 Compare and contrast networking appliances, applications, and functions.
Cisco CCNA
5.6 Configure and verify access control lists
Cisco CCST Cybersecurity
2.3 Describe network infrastructure and technologies
Cisco CCST Networking
6.1 Describe how firewalls operate to filter traffic
ISC2 CC
4.1 Understand network security

Key terms

Firewall
A network security device that monitors and controls incoming and outgoing traffic based on predefined security rules.
Demilitarized Zone
DMZ
A network segment that sits between a trusted internal network and an untrusted external network, hosting public-facing services.
Access Control List
ACL
A set of rules that defines which users or systems are granted or denied access to a resource.
Packet Filtering
A firewall technique that inspects packets and allows or blocks them based on source, destination, and protocol.
Stateful Firewall
A firewall that tracks the state of active network connections and makes filtering decisions based on context.
Next-Generation Firewall
NGFW
A Next-Generation Firewall is an advanced network security device that combines traditional stateful packet inspection with application awareness, deep packet inspection, intrusion prevention, and threat intelligence to control traffic at Layer 7.

Topics

Network Security Firewalls Security Zones Access Control Lists Stateful Inspection Next Generation Firewalls Deep Packet Inspection

Transcript

What a Firewall Is

One of the most critical pieces on our network from a security standpoint is our firewall.

The most secure you can make your internal network is just by unplugging it from the rest of the world, from not letting it connect to the internet. There's too many threats out there, and there are some systems that actually implement security using this manner. However, most businesses, most organizations, most individuals need access to the outside world. That's how we do business nowadays, and so we need something that protects us from the rest of the world. That's what a firewall does. It's the protection between our internal network and the rest of the world.

So how does it do that? Well, one, it blocks traffic from coming into your network. But it can't do just that, because obviously if I'm going out and asking for a web page, that web page needs to come back into the network, that data needs to come back into the network, since I requested it. So for that reason the firewall actually is the thing that makes the decision on what it's going to let out of the network and what it's going to let into the network. And so that's what a firewall's job is: it's the security point that allows or denies traffic inside and outside of these networks.

Security Zones

One of the key ways a firewall makes its decision is by the interface and whether the traffic is coming in or out of each of these interfaces, and you can think of these as security zones. So in this instance right here you really have three different security zones. You've got the internet right here, which is considered the least secure. You've got the screened subnet, or the DMZ, right here, which is considered more secure. And then you have this zone right here, which is considered the internal network, which is the most secure.

So there are different ways that we can control the traffic coming in and out of these different zones, but one of the common ways that these firewalls are set up is that anything from the internal zone could go to the DMZ or the internet, anything from the DMZ could go out to the internet, but nothing from the internet could automatically be accepted to go into the DMZ or the internal network, and nothing from the DMZ could automatically be allowed into the internal network. So it allows traffic to go from a secured zone to a less secure zone, but it doesn't allow the traffic to go the other way unless specific conditions are met.

Returning Traffic

One of those specific conditions is returning traffic. So if a machine goes out and asks for a website and is requesting resources from a web page, then this firewall would track that information going out and say, okay, I'm going to expect then a return traffic to come back in, and I'm going to allow that returning traffic to come back in. So that's one of the ways that it would make an exception to go from the internet to the internal zone.

Access Control Lists

Another way is through the use of access control lists, or ACLs. You might have an access control list that says, well, allow people from the internet to get to our web servers. So that's another exception where traffic would be allowed, because we want people to access our web servers, and that's what an ACL would allow us to do, is create rules that would allow that type of traffic.

There are several ways that an ACL could filter off of. It could do it off of a MAC address, it could do it off of IP address, it could do it off of applications and ports, it could do it through URL filtering, it could do it through stateful packet inspection. So when that traffic is coming through this firewall, then it can do these different rules, have these different ACLs, to have different methods to actually look at the traffic going across there and accept or deny based off of some of these criteria.

Next Generation Firewalls

Traditional firewalls really were based off of the MAC address, the IP address, the application or the port numbers. It would do some filtering at a very, I'd say, low level. If you look at the OSI models, it's levels 1, 2, 3 and four. So it's really just basing it off of a few pieces of information here on whether it's going to accept or deny.

The next generation firewall, or the NGFW, these are firewalls that will actually do these deeper packet inspections. They actually go in there and look at the traffic going back and forth and start recognizing if there is maybe some malware that's involved with this transaction, or if there's something else that's going on with the packets that are flowing back and forth. And so the idea behind the next generation firewall is it's a firewall that can do a deeper packet inspection to figure out what's going on with the traffic that's going across it.

Firewalls are a critical part of protecting our network, and so setting up a firewall correctly is going to be really important. We talked about how a firewall has these different interfaces or the different zones, that it can actually allow certain traffic to go between from a secure zone to an insecure zone, but then things that are going from an insecure zone into a secure zone have to meet certain criteria. For instance, maybe it's returning traffic, traffic that's been requested, or maybe we have some sort of ACL that allows it. And then we wrapped things up talking about a next generation firewall, which actually gets into that packet inspection and is able to make some decisions based off of things that are found at the application level and something that's much deeper inside the packet.

About TechKnowSurge

TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.

Explore free tools and programs →