A next-generation firewall (NGFW) is a network security device that combines a traditional firewall with additional functions like deep packet inspection and application awareness. For example, while a standard firewall might block all traffic on port 80, an NGFW can allow a user to access Facebook but block them from using Facebook Games.
Identify the Difference Between Traditional and Next Gen Firewalls
Traditional firewalls operate primarily at the transport layer of the OSI model. They use a method called stateful inspection to track the state of active connections and make decisions based on a set of static rules. These rules typically look at the source IP address, the destination IP address, and the port number. If a rule says that traffic on port 443 is allowed, the traditional firewall lets it through regardless of what that traffic actually is.
An NGFW moves beyond these simple markers by performing deep packet inspection (DPI). Instead of just looking at the "envelope" of the data packet, it opens the envelope to examine the actual payload. This allows the device to identify the specific application generating the traffic. If an attacker tries to hide malicious commands inside a standard HTTPS stream, the NGFW can see the command pattern and drop the packet even though the port is technically open.
One common misconception is that an NGFW is simply a traditional firewall with an antivirus plugin. In reality, the integration is architectural. The application awareness is baked into the inspection engine, meaning the firewall does not have to hand off the data to a separate piece of software for every check. This reduces latency and allows for more complex policy enforcement across a wider range of traffic types.
You will find that NGFWs also integrate Intrusion Prevention Systems (IPS). While a traditional firewall stops unauthorized access to a port, an IPS looks for known attack signatures within the allowed traffic. If a packet matches a signature for a known exploit, the NGFW blocks it immediately. This creates a layered defense where the firewall handles the "who" and "where," while the IPS handles the "what."
Execute the Deep Packet Inspection Process
The process of filtering traffic in an NGFW happens in a sequence of logical steps to ensure that security does not create an unusable bottleneck for the user. First, the firewall performs a basic packet filter check. It looks at the IP addresses and ports to see if the traffic is explicitly denied by a basic rule. If the traffic is allowed at this level, it moves to the next stage.
Second, the device performs protocol decoding. It determines if the traffic is actually using the protocol it claims to be using. For instance, if traffic arrives on port 80 but does not follow HTTP standards, the NGFW flags it as suspicious. This prevents attackers from using common ports to tunnel non-standard, malicious traffic into a network.
Third, the NGFW applies application identification. It uses a database of signatures to recognize the "fingerprint" of specific software. It can distinguish between a Zoom call, a Salesforce update, and a BitTorrent download, even if all three are using the same encrypted port. This allows you to create a policy that says "Allow Zoom for the Sales team, but block BitTorrent for everyone."
Fourth, the system conducts the actual deep packet inspection. The firewall scans the payload for malware, viruses, or exploit strings. This often involves reassembling the packets into a stream to see the full context of the data. If the payload contains a known malicious string, the connection is severed.
Finally, the firewall applies user identity. Instead of just seeing an IP address like 192.168.1.50, the NGFW integrates with directory services to see that the user is "John Doe from Accounting." This allows the administrator to apply rules based on job roles rather than volatile IP addresses that change every time a laptop reconnects to Wi-Fi.
Configure Rules Based on Application and User Identity
Setting up an NGFW requires a shift from port-based thinking to identity-based thinking. In a traditional setup, you would create a rule: "Allow TCP Port 443 from Any to Any." In an NGFW, you create a rule based on the application and the user group. Labels may differ by version, but the general path is usually found under Security > Policies > Firewall Rules.
To create a functional rule, you first define the user group. You link the firewall to your identity provider, such as Active Directory. You then select the application from a pre-defined list provided by the vendor. For example, you might select "Office 365" as the application. Finally, you set the action to "Allow" or "Block." This ensures that only authorized personnel can use specific cloud tools, regardless of which device they use or where they are located in the building.
You should also implement SSL/TLS inspection. Because most modern traffic is encrypted, an NGFW cannot see the payload unless it decrypts it. The firewall acts as a transparent proxy: it intercepts the encrypted request, decrypts it using a local certificate, scans the content, and then re-encrypts it before sending it to the destination. Without this step, the deep packet inspection is blind to any threats hidden in HTTPS traffic.
Consider a worked example of throughput and resource impact. Imagine a network with 100 users, each generating an average of 10 Mbps of traffic. This creates a total load of 1,000 Mbps (1 Gbps). If you enable only basic stateful inspection, the firewall CPU might run at 10% load because it only checks headers. However, if you enable full Deep Packet Inspection and SSL decryption for all 1,000 Mbps, the CPU load might jump to 70% because the device must decrypt, scan, and re-encrypt every single packet. This is why you must size your hardware based on "Threat Prevention Throughput" rather than "Firewall Throughput."
Prevent Common Deployment Failures
One of the most frequent errors is the "Allow All" fallback. Administrators often find that a strict NGFW policy breaks a critical business application because the application uses a non-standard port or a proprietary protocol that the firewall doesn't recognize. To fix this quickly, they create a rule that allows all traffic from that server. This creates a massive hole in the security perimeter that attackers can exploit.
The correct approach is to use a "Learning Mode" or "Log Only" policy. Instead of blocking unknown traffic immediately, you set the rule to allow the traffic but log exactly what it is. After 24 to 48 hours, you review the logs to identify the specific application signatures being used. You then create a precise rule for that application and switch the policy back to "Block" for everything else.
Another failure point is neglecting certificate management for SSL inspection. When the NGFW decrypts traffic, it presents its own certificate to the user's browser. If that certificate is not trusted by the computer, the user will see a "Your connection is not private" warning on every single website they visit. To prevent this, you must deploy the firewall's root certificate to all managed devices via Group Policy or a Mobile Device Management (MDM) tool before turning on decryption.
Finally, avoid ignoring the update cycle for application signatures. An NGFW is only as smart as its signature database. If the vendor releases a new signature for a zero-day exploit and your firewall is not updating automatically, you are effectively running a traditional firewall. Ensure that the update schedule is set to "Automatic" or "Hourly" under System > Updates > Signature Services.
Select NGFW Capabilities for Specific Network Sizes
For a small office with 10 to 20 users, the primary focus should be on integrated UTM (Unified Threat Management) features. In these environments, the firewall often handles DNS filtering and basic VPN access in addition to NGFW capabilities. You do not need massive throughput, but you do need a device that can handle the encrypted traffic of a few dozen people without lagging.
For medium to large enterprises with 500 or more users, the focus shifts to segmentation and high availability. You will likely deploy NGFWs in a "cluster" or "Active-Passive" pair. This means if one firewall hardware unit fails, the second unit takes over the traffic in less than 1 second, preventing a total network outage. In these setups, you also implement "Internal Segmentation Firewalls" (ISFW). Instead of just protecting the edge of the network, you place NGFWs between different departments (e.g., between Finance and Engineering) to prevent a breach in one area from spreading to another.
When evaluating hardware, look at the "Concurrent Sessions" limit. A session is a single connection between a client and a server. A typical user might open 50 to 100 sessions simultaneously across various browser tabs and background apps. If you have 1,000 users, your firewall must be capable of handling at least 100,000 concurrent sessions without dropping packets. If the session table fills up, the firewall will start rejecting new connections, which users perceive as the internet being "down."
NGFW Integration with Other Security Layers
An NGFW does not operate in a vacuum; it is most effective when linked to a SIEM (Security Information and Event Management) system. The firewall generates thousands of logs per minute. A SIEM collects these logs and looks for patterns that a single firewall might miss. For example, if the NGFW blocks a single port scan from an IP address, it is a minor event. But if the SIEM sees that same IP address attempting to log into a VPN and then hitting the NGFW, it can trigger a high-priority alert.
You should also coordinate your NGFW with your endpoint protection (EDR). Some modern security ecosystems allow the NGFW to tell the endpoint software to isolate a specific computer. If the firewall detects that a workstation is sending out command-and-control traffic to a known botnet, it can send a signal to the workstation's antivirus to quarantine the machine from the rest of the local network immediately.
Lastly, consider the role of the Cloud Access Security Broker (CASB). While an NGFW can see that a user is accessing "Dropbox," a CASB can see what specific file is being uploaded and whether that file contains sensitive data like credit card numbers. By integrating the NGFW with a CASB, you can enforce a policy that allows the use of cloud storage for collaboration but blocks the upload of regulated data to non-corporate accounts.