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.
Topic: Network Security in Cybersecurity & Ethical Hacking · Explainer
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?
- How Do You Write NGFW Policies?
- How Does TLS Inspection Work?
- Where Are NGFWs Deployed?
- What Are the Limitations?
- How Do You Secure the NGFW Itself?
- How Do You Select an NGFW?
- How Do You Review and Clean Up Firewall Rules?
- References
What Features Define an NGFW?
| Feature | What it adds |
|---|---|
| Stateful inspection | Baseline connection tracking |
| Application identification | Recognises apps regardless of port or encryption tricks |
| User identity | Rules by user or group from Active Directory or SSO |
| Intrusion prevention | Blocks exploit attempts using signatures and behaviour |
| URL filtering | Blocks categories and malicious sites |
| TLS inspection | Decrypts and inspects encrypted traffic |
| Threat intelligence and sandboxing | Blocks 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?
- Never expose management interfaces to the internet; use a dedicated management network.
- Patch firmware promptly; check the CISA KEV catalogue for your vendor.
- Use MFA for administrators and send logs to a SIEM.
- Follow the 2025 multinational edge device guidance and the NSA network infrastructure security guide.
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?
- Export the rule base and list rules with zero hits over 90 days.
- Identify overly broad rules (any source, any service).
- Confirm owners and business reasons for each rule.
- Remove or tighten rules through change control.
- 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
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0