What is the difference between an IDS and an IPS, in terms of passive and active?
An IDS is passive: it detects, logs and alerts but does not intervene. An IPS is active: it also blocks or terminates the malicious traffic itself.
* An IDS gets a copy and can only alert; an IPS sits in the path and can drop what it flags. *
| IDS (Intrusion Detection System) | IPS (Intrusion Prevention System) | |
|---|---|---|
| Role | Monitoring system | Monitoring + enforcement |
| Reaction | Logs and raises an alert | Drops packets, resets or blocks connections |
| Placement | Can sit beside the traffic (copy via SPAN/TAP) | Must sit inline, so traffic passes through it |
| Failure cost | A missed alert | A false positive blocks legitimate traffic |
Example: a botnet member inside your network contacts its command server. An IDS logs it and alerts; the connection still succeeds. An IPS recognises it and kills the connection.
The same engine can often do both: Suricata is an IDS when it only inspects a copy of the traffic, and an IPS when it runs inline and its rules use drop. In this lab it runs as an IDS, and the "prevention" step is done separately with a firewall rule.
Go deeper:
Suricata: IPS Concept — what changes when the same engine runs inline, such as policies that default to drop.
IPS vs. IDS vs. Firewall (Palo Alto Networks) — side-by-side placement: IDS on a mirrored copy, IPS inline behind the firewall.
Intrusion detection system (Wikipedia) — includes the IPS section and why it needs inline placement.