Network Bytes · Episode 101 · CCNA 1.1
"IPS: intrusion prevention"
A firewall mostly checks addresses and ports, so attacks can hide inside allowed traffic. An intrusion prevention system sits inline, matches traffic against signatures of known attacks and strange behavior, drops what matches and logs an alert, while an IDS only watches a copy and alerts.
Why a firewall isn't enough
A traditional firewall decides mostly by the label on the outside: source and destination addresses, ports and connection state. If a rule says port 443: allow, any packet to port 443 gets through, whatever it carries. An attack can hide inside traffic that looks perfectly allowed, and the firewall never looks inside to notice.
The airport scanner on the cable
An intrusion prevention system is placed inline, between the firewall and the servers, so every packet has to pass through it, like bags riding a conveyor through an airport scanner. Because the traffic flows through it, an IPS can act in real time: it doesn't just see an attack, it can stop it before it reaches the server.
Signatures and strange behavior
An IPS looks for trouble in two main ways:
- Signature-based detection: it compares traffic with signatures, patterns of known attacks, much like antivirus definitions. Signatures are precise but only catch attacks someone has already seen.
- Anomaly- or behavior-based detection: it learns what normal traffic looks like and flags strange behavior, such as a sudden flood of connections. This can catch new attacks but makes more mistakes.
When something matches, the IPS drops the packet and logs an alert (it can also reset the connection), so the security team can see what happened.
IPS vs IDS, and false positives
An IDS (intrusion detection system) is the IPS's cousin. It usually sits off to the side and receives a copy of the traffic, for example from a switch's SPAN port or a network tap. It can raise the alarm, but the original packet has already gone on its way.
No scanner is perfect. When an IPS blocks good traffic by mistake, that is a false positive: a real user's request gets dropped. The opposite, an attack that slips through unnoticed, is a false negative. Tuning an IPS means balancing the two.
Try it yourself
Look up the security log or event viewer on a home router or firewall you own (many consumer routers have an "intrusion prevention" or "threat protection" switch). See whether it is on, and whether its log shows any blocked events. If it does, ask yourself for each one: was that a real attack, or something harmless that got caught?
Good to know
- CCNA 1.1 lists next-generation firewalls and IPS among network components (EP76 covers stateful firewalls).
- An IPS sits inline, inspects packet contents (payloads, not only headers) and can drop malicious traffic in real time.
- Detection methods include signature-based matching against known attack patterns and anomaly- or behavior-based detection.
- An IDS usually receives a copy of the traffic (for example from a SPAN port or tap) and only alerts.
- Traditional firewalls filter mostly by addresses, ports and connection state; next-generation firewalls often build IPS features in, so a separate box is not always used.
- A false positive is benign traffic flagged as an attack; a false negative is an attack that gets through.
- An IPS also logs and can reset connections; "drops the packet" is a simplification.
- "Airport scanner" is the analogy.
For CCNA learners
CCNA exam topic 1.1 includes next-generation firewalls and IPS as network components. Know that an IPS is inline and can block, an IDS watches a copy and only alerts, how signature-based and anomaly-based detection differ, and what a false positive is.
Answer to the comment question
6. Every blocked packet that wasn't a real attack was good traffic blocked by mistake, so the false positives are 10 blocked − 4 real attacks = 6.
Test your knowledge
Quick quiz: "IPS: intrusion prevention"
4 multiple-choice questions. Pick one answer for each, then check how you did.
Sources
- NIST, "SP 800-94, Guide to Intrusion Detection and Prevention Systems (IDPS)": how an IPS sits inline and stops attacks, signature-based and anomaly-based detection, and false positives
- IBM, "What is an intrusion prevention system (IPS)?": an IPS watches traffic for threats and blocks them automatically, unlike an IDS, which only alerts
- Cisco, "Cisco IOS Intrusion Prevention System" data sheet: IPS as an inline, deep-packet inspection feature that blocks attacks
- Cisco, "CCNA 200-301 v1.1 exam topics": 1.1 network components, including next-generation firewalls and IPS
Video transcript
A firewall checks a packet's address. So who checks what's inside it?
A firewall mostly checks addresses and ports. An attack can hide inside traffic that looks allowed.
An intrusion prevention system, or IPS, sits right in the path, like an airport scanner checking inside every bag.
It compares traffic with signatures, patterns of known attacks, and watches for strange behavior.
When it finds a match, it drops the packet and logs an alert.
Its cousin, an IDS, only watches a copy of the traffic and raises the alarm.
But scanners make mistakes. Blocking good traffic is called a false positive.
An IPS blocks 10 packets in an hour. Only 4 were real attacks. How many false positives? Comment your answer below!
That's your byte.
More from Network Bytes
- EP99"STP port roles: root, designated, blocked"
- EP103"The console port: managing a switch with no IP"
- EP104"IPv6 static and default routes"
- EP105"Northbound vs southbound APIs"