What Are Next-Generation Firewalls and How Do They Work?

A next-generation firewall (NGFW) combines traditional stateful filtering with deeper inspection: it identifies applications regardless of port, ties traffic to users through directory integration, blocks attacks with an intrusion prevention system (IPS), filters websites by category, can inspect encrypted TLS traffic, and uses threat intelligence and sometimes sandboxing to catch malware.

Jul 18, 2025 - 16:20
Updated: 
102.4k

Network Security in Cybersecurity & Ethical Hacking · Explainer

What Are Next-Generation Firewalls and How Do They Work?

Quick answer: A next-generation firewall (NGFW) combines traditional stateful filtering with deeper inspection: it identifies applications regardless of port, ties traffic to users through directory integration, blocks attacks with an intrusion prevention system (IPS), filters websites by category, can inspect encrypted TLS traffic, and uses threat intelligence and sometimes sandboxing to catch malware. This lets policies say "allow sales staff to use Salesforce, block file-sharing apps" instead of only "allow port 443". NGFWs are powerful but must be kept patched and hardened, because firewalls themselves are frequent targets for attackers.

Key takeaways

  • NGFWs add application, user and threat awareness to stateful firewalls.
  • Policies based on applications and users are more precise than ports and IPs.
  • TLS inspection improves visibility but needs careful privacy and performance planning.
  • NGFW vulnerabilities often appear in CISA's Known Exploited Vulnerabilities list.
  • Restrict management interfaces and patch firmware quickly.

Table of Contents

What Features Define an NGFW?

FeatureWhat it adds
Stateful inspectionBaseline connection tracking
Application identificationRecognises apps regardless of port or encryption tricks
User identityRules by user or group from Active Directory or SSO
Intrusion preventionBlocks exploit attempts using signatures and behaviour
URL filteringBlocks categories and malicious sites
TLS inspectionDecrypts and inspects encrypted traffic
Threat intelligence and sandboxingBlocks known bad indicators, detonates unknown files

NIST SP 800-41 covers firewall policy, and NIST SP 800-94 covers intrusion detection and prevention.

How Do You Write NGFW Policies?

An example rule set in plain form:

1  Allow   Finance-Users  ->  Internet   App: SAP-Cloud, Office365   IPS: strict
2  Allow   All-Staff      ->  Internet   URL: business categories    IPS: default
3  Block   All-Staff      ->  Internet   App: torrent, anonymiser proxies
4  Allow   Admins         ->  Servers    App: ssh, rdp  (from admin VLAN only)
5  Deny    Any            ->  Any        (log)

Start in monitoring mode, review what applications are in use, then enforce gradually. Review rules regularly and remove unused ones.

How Does TLS Inspection Work?

The NGFW acts as a trusted intermediary: it terminates the client's TLS connection using a certificate from an internal CA trusted by managed devices, inspects the traffic, and opens a new TLS connection to the server. Exclude sensitive categories such as banking and health where policy or law requires, and expect some applications using certificate pinning to break. Inspection also adds load, so size hardware accordingly.

Where Are NGFWs Deployed?

  • Internet edge, controlling outbound and inbound traffic.
  • Data centre and internal segmentation between zones.
  • Cloud, as virtual appliances or firewall-as-a-service.
  • Branch offices, often combined with SD-WAN.

What Are the Limitations?

  • Cannot inspect what it cannot decrypt, and inspection has privacy implications.
  • Does not replace endpoint protection, MFA or secure coding.
  • Complex rule bases become hard to manage and audit.
  • Appliances themselves can be vulnerable.

Open source IPS engines such as Suricata show how signature-based detection works.

How Do You Secure the NGFW Itself?

Related: types of firewalls and the FortiWeb vulnerability. WebAsha offers firewall training.

How Do You Select an NGFW?

  • Throughput with all features on, including TLS inspection, measured against your traffic.
  • Vendor track record on vulnerabilities and patch speed; check the KEV catalogue.
  • Integration with identity, SIEM and endpoint tools.
  • Central management for many sites.
  • Support for secure-by-design features such as MFA for admins and logging by default.

How Do You Review and Clean Up Firewall Rules?

  1. Export the rule base and list rules with zero hits over 90 days.
  2. Identify overly broad rules (any source, any service).
  3. Confirm owners and business reasons for each rule.
  4. Remove or tighten rules through change control.
  5. Repeat at least every six months.

NIST SP 800-41 recommends periodic policy review, and CIS Control 12 covers network infrastructure management.

References

Frequently Asked Questions

A firewall that adds application identification, user awareness, intrusion prevention and threat intelligence to stateful filtering.

Traditional firewalls filter by IP and port; NGFWs also understand applications, users and threats.

Decrypting encrypted traffic at the firewall, inspecting it, and re-encrypting it to the destination.

No. Endpoint protection is still needed for threats on devices and traffic the firewall cannot see.

Recognising which application generates traffic regardless of port, so policies can target applications.

Yes. Firewall vulnerabilities frequently appear in CISA’s Known Exploited Vulnerabilities catalogue.

Keep management interfaces off the internet, use MFA, patch firmware and log administrative actions.

At the internet edge, between internal zones, in the cloud and at branch offices.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Vaishnavi

Vaishnavi is a skilled tech professional at the Ethical Hacking Training Institute in Pune, responsible for managing and optimizing the technical infrastructure that supports advanced cybersecurity education. With deep expertise in network security, backend operations, and system performance, she ensures that practical labs, online modules, and assessments run smoothly and securely. Her behind-the-scenes contributions play a vital role in delivering a seamless and secure learning experience for aspiring ethical hackers.