Use this when blocking detected attacks automatically.
Intrusion Prevention System
An intrusion prevention system (IPS) inspects traffic inline and blocks detected attacks automatically, often as part of a next-generation firewall, using signatures and protocol analysis.
1. IPS sits inline and blocks malicious traffic.
2. Risk of blocking legitimate traffic — tune first.
3. Fail-open vs fail-closed decision.
4. Performance sizing.
5. Monitor blocks.
traffic → IPS inline → drop/allow
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Suricata inline example Narrow the fault
# /etc/suricata/suricata.yaml (excerpt)
nfq:
mode: accept
# iptables
iptables -I FORWARD -j NFQUEUE --queue-num 0 --queue-bypass
suricata -c /etc/suricata/suricata.yaml -q 0
Documented example, not captured output. Rules with drop actions block; --queue-bypass lets traffic pass if Suricata is not running.
Step 2 Common mistakes Narrow the fault
- Inline IPS without fail-open/fail-closed decision.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- An IPS sits inline and blocks.
- It is often part of a next-generation firewall.
- Tune before blocking.
suricata -c /etc/suricata/suricata.yaml --af-packet -D (inline/IPS mode)— engine mode- IPS block logs — prevented attacks
- Fail-open/fail-closed setting — availability
ReferenceWhy it matters1 section · depth on demand
Running an IPS safely
- Start with the vendor's balanced/connectivity policy, not "max detection".
- Deploy new signatures in alert mode, then block after review.
- Decide fail-open (availability) vs fail-closed (security) per link, and test it.
- Monitor latency and CPU; inspect only traffic that needs it.
- Keep signatures updated automatically.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
An Intrusion Prevention System (IPS) inspects traffic inline and can block malicious packets or sessions in real time, in addition to alerting. Modern IPS functions are usually part of next-generation firewalls, though standalone IPS platforms and open-source engines (Suricata in IPS mode) exist.
Operating an IPS:
| Practice | Reason |
|---|---|
| Start in detection mode | Learn false positives before blocking |
| Enable block for high-confidence signatures first | Limit disruption |
| Profile per zone | Server-facing profiles differ from user egress |
| Keep signatures updated | New exploits appear daily |
| Decide failure behaviour | Fail-open (availability) or fail-closed (security) |
| Monitor performance | Inspection adds latency and limits throughput |
Virtual patching with IPS signatures can protect unpatched systems temporarily while fixes are deployed.
Fail-open vs fail-closed
| Mode | On IPS failure | Use when |
|---|---|---|
| Fail-open (bypass) | Traffic passes uninspected | Availability matters most |
| Fail-closed | Traffic is dropped | Security matters more than uptime |
Hardware bypass NICs or HA pairs reduce the impact. Test the failure mode during a maintenance window.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IDS / IPS → Intrusion Prevention System. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/94/final · confidence 94%