Distributed Intrusion Detection and Prevention System
Schools get enterprise-grade network protection on commodity hardware. Threats are detected and blocked in real time, while staff see everything on a single live dashboard - no security team required on site.
- Period
- oct 2025 – may 2026
- Kind of project
- Network Security
- Status
- Finished

What it changed
- Real-time threat detection and automatic blocking
- One dashboard for the whole network - no specialist needed
- Runs on a Raspberry Pi: minimal hardware investment
This is my own project, not client work: my final-year project at ProvilION. In 2026 the mayor of Lommel gave me ProvilION's "Meest verdienstelijke leerling" (most meritorious student) award.
The problem
Educational networks are an attractive, under-defended target: hundreds of devices, limited IT budget, and no dedicated security staff watching traffic around the clock. Commercial intrusion detection appliances exist, but they're priced and licensed for enterprises, not schools.
The gap wasn't a lack of good ideas about security. It was that every practical option assumed a budget and a team this environment didn't have.
The approach
The solution splits the problem in two: a small, cheap device that watches traffic where it enters the network, and a separate server that does the heavy analytical thinking. Without ever making the network wait on it.
- A Raspberry Pi sits inline, watching every packet as it passes
- Traffic is streamed to a remote server for deeper analysis and threat detection
- Verdicts (block or allow) are enforced locally on the Pi. No waiting on a round trip
- One live dashboard gives staff a single place to see what's happening, with no specialist required
The outcome
- Added inline latency
- <1ms
- Autonomous monitoring
- 24/7
- Per-seat licensing cost
- €0
The network gets continuous, real-time threat detection and automatic blocking, staff get one dashboard instead of a pile of logs to interpret, and the entire system runs on hardware that costs less than a single seat of most commercial alternatives. With nothing recurring to license.
The technical sidestack, choices and trade-offs
Built with
- Rust
- Angular
- Docker
- Suricata
- Shell
- Linux
A Rust capture agent runs inline on a Raspberry Pi, streams packet data to a VPS for Suricata-based analysis, and applies verdicts locally so the hot path never blocks on the network round-trip.
Key decisions
- Rust on the edge: memory-safe packet handling, zero GC pauses inline
- Capture and enforcement decoupled from analysis - fail-open by design
- Server-side pipeline containerized with Docker for reproducible deploys
- Suricata rule engine drives detection; custom layer handles prevention
Architecture
The system is split into two halves that talk to each other but never block on each other: an inline capture agent, and a remote analysis server.
1[ Network traffic ] → [ Raspberry Pi: Rust capture agent ] → [ VPS: Suricata + analysis ]2 ↓ (local enforcement, no round-trip)3 [ Allow / Block decision ]
Why Rust on the edge
The capture agent runs inline, meaning every packet on the network physically passes through it. That's the one place in the system where a mistake is catastrophic, a crash there takes the network down, not just the security feature.
1// Simplified capture loop shape. The real constraint is that this2// function must never allocate in a way that can pause unpredictably.3loop {4 let packet = capture_next()?;5 let verdict = local_ruleset.evaluate(&packet);6 match verdict {7 Verdict::Allow => forward(packet),8 Verdict::Block => drop(packet),9 }10 stream_to_analysis(packet); // fire-and-forget, never awaited inline11}
Fail-open, not fail-closed
Capture and enforcement are deliberately decoupled from the remote analysis. If the VPS is unreachable, the local ruleset keeps making decisions on its own. The system degrades to "less smart" rather than "network is down."
Decisions that mattered
- Rust on the edge for memory safety and predictable latency, with zero garbage-collection pauses on the hot path
- Capture/enforcement decoupled from analysis. The network keeps functioning even if the analysis server is unreachable
- The server-side pipeline runs in Docker for reproducible deploys, since a security tool that's hard to redeploy consistently is itself a risk
- Suricata's rule engine drives detection; a thin custom layer on top of it handles enforcement decisions specific to this deployment