TechKnowSurge
Cisco CCNA 1.1 Cisco CCNA 5.6 Cisco CCNA 5.1
VideoNetworkFree

Firewalls

Firewalls serve as the critical security boundary between internal networks 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, returning traffic handling, access control lists, and next-generation firewall capabilities.

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

About this video

A firewall acts as the security boundary between a trusted internal network and untrusted external networks, making decisions about which traffic to allow or deny in both directions. While the most secure approach would be to isolate a network entirely from the internet, practical business requirements demand connectivity, making firewalls an essential control for managing that risk. The firewall monitors outbound and inbound traffic across its interfaces, using the concept of security zones to apply different levels of trust — with the internal network being the most secure, the DMZ occupying a middle tier, and the internet treated as the least trusted zone. Traffic is generally permitted to flow from higher-trust zones toward lower-trust zones, but movement in the opposite direction requires specific conditions to be satisfied. One such condition is returning traffic, where the firewall tracks outbound requests and permits the corresponding inbound responses. Another is the use of access control lists, or ACLs, which define explicit rules to allow particular types of inbound traffic — such as permitting internet users to reach a public-facing web server. ACLs can filter traffic based on MAC address, IP address, port number, application, URL patterns, or stateful packet inspection, giving administrators granular control over what crosses the boundary. Traditional firewalls operate primarily at the lower layers of the OSI model, making decisions based on relatively simple criteria such as IP addresses and port numbers. Next-generation firewalls expand on this by performing deep packet inspection, analyzing the actual content of network traffic to identify threats like malware and anomalous behavior at the application layer. This deeper visibility allows next-generation firewalls to make more informed allow-or-deny decisions, making them a more robust option for organizations facing sophisticated threats.

What you'll learn

What's covered

Firewalls & Network Security

Aligned to

Cisco CCNA
1.1 Explain the role and function of network components
5.6 Configure and verify access control lists
5.1 Define key security concepts

Key terms

Firewall
A network security device that monitors and controls incoming and outgoing traffic based on predefined security rules.
Access Control List
ACL
A set of rules that defines which users or systems are granted or denied access to a resource.
Demilitarized Zone
DMZ
A network segment that sits between a trusted internal network and an untrusted external network, hosting public-facing services.
Stateful Firewall
A firewall that tracks the state of active network connections and makes filtering decisions based on context.
Packet Filtering
A firewall technique that inspects packets and allows or blocks them based on source, destination, and protocol.
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.
Security Zone
A logical grouping of network interfaces on a firewall that share the same trust level, used to control how traffic is permitted to flow between network segments.

Transcript

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

What a firewall is

The most secure you can make your internal network is just by unplugging it from the rest of the world, by not letting it connect to the internet. There are 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? 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. 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. 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. You can think of these as security zones. 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.

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. If a machine goes out and asks for a website and requests 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. It could do it off of a MAC address, it could do it off an 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 model, it's levels 1, 2, 3 and 4. 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. 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. A next generation firewall 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 →