Application layer filtering allows firewalls to inspect actual traffic content rather than relying solely on port numbers, closing a significant gap that adversaries can exploit. This advancement helps ensure that the application communicating across the network matches what the firewall expects to see.
Application Layer Filtering
Another advancement that firewalls took was filtering things at the application layer. It might sound like we've already done that when it comes to layer 4 and talking about ports, but there are ways to get around that.
When we're talking about ACLs and rules, we've been mainly talking about using layer 3 and 4. At layer 3, we want to filter things based off IP addresses, both the source and the destination IP addresses. Same thing with layer 4 when it comes to the port, and the port is associated with some sort of service. As an example, 20 and 21 is associated with FTP, or 22 with SSH, and so on and so forth. So we have these ports that are associated with certain services. By looking at the TCP header, we can know what the source port and destination port is, and we can use that information to either permit or block certain traffic.
The problem is that even though there's an association between an application and the port that it uses, it's not always exactly the same. As an example, HTTP: the standard port for it is port 80, so we have a correlation between port 80 and HTTP. The problem is that we could set it to something else, like we could set it to port 8080, or we could have port 80 that's associated with some other service like FTP. So just because we specify a port doesn't necessarily mean that is the application that's 100% associated with that port.
If we have a firewall and it's strictly based off of the port, many times, most times, that is going to be sufficient enough, but adversaries can use this mapping to be able to carry out certain attacks that we need to be concerned with. So we need to look into the application layer and see what it's doing. As firewalls started progressing, they started looking at this application layer and figuring out what is the application that's actually trying to be communicated here, and does it line up with what it's expecting or what it's allowing across this network. So it's just one advancement that firewalls took to help our networks be more secure.
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 →