1. From visibility to understanding
A couple of weeks ago, I published an article describing X-RAY 0.5 — Passive Network Intelligence with OpenBSD and Go, my experimental network monitoring system built with OpenBSD and Go.
The original objective was straightforward: understand what actually happens on my home network without introducing another router, another NAT layer, or a monitoring application responsible for forwarding packets.
That principle has not changed.
What has changed is how much information X-RAY can collect, correlate and preserve.
Version 0.7 represents a significant step forward. The project is evolving from passive traffic monitoring into something closer to a small network security intelligence platform.
Not an enterprise system (I know the topic). Not an IPS. And certainly not a commercial product. Just a project developed for personal use on my own network, capable of turning observations into useful evidence.
2. The architecture remains simple
X-RAY runs on a Fujitsu D3544-Sx with OpenBSD 8.0.
Two Ethernet interfaces form a transparent bridge between the upstream Internet router and a downstream FRITZ!Box.
The monitoring application observes traffic crossing the bridge, while OpenBSD handles Ethernet forwarding independently.
The architecture still follows a few fundamental principles:
- Network forwarding must not depend on the monitoring process.
- Packet acquisition and the HTTP dashboard must have separate privilege boundaries.
- Monitoring should not silently modify network traffic.
- Security observations must be supported by evidence.
- The system should remain understandable and maintainable.
The application is written in Go, with SQLite providing persistent event storage and OpenBSD facilities such as PF, BPF and pledge() forming part of the security model.
There is an important distinction worth repeating: although X-RAY observes traffic passively, the hardware bridge is physically inline.
A software crash does not stop the bridge from forwarding packets. A hardware failure can.
That limitation remains.
3. Adding Suricata to the picture
One of the most significant developments is the integration of Suricata.
Previously, X-RAY could identify suspicious traffic patterns using its own observations: port scans, unusual connections, firewall counters and traffic anomalies.
Suricata adds a complementary perspective through protocol-aware inspection and signature-based detection.
The distinction matters.
X-RAY can tell me that a host contacted hundreds of destination ports, that a connection involved a particular TLS hostname, or that traffic suddenly increased.
Suricata can add another piece of evidence: whether the observed traffic matches a known detection signature or exhibits a recognizable protocol anomaly.
These observations are not automatically equivalent to a confirmed attack.
A signature match is a reason to investigate, not a verdict.
Figure 1 — X-RAY 0.7 dashboard showing network observability and security monitoring.
A real example: an Oracle T3 alert
During normal operation, Suricata generated an alert involving an external address connecting to TCP/443.
The signature was:
ET INFO External Oracle T3 Requests Inbound
The event included protocol-detection anomalies and was classified by the alerting pipeline as sufficiently important to trigger a Telegram notification.
The interesting part came from comparing it with the web server logs.
The separate OpenBSD web server recorded an ordinary HTTP request from the same address, followed by two malformed requests returning HTTP 400.
The combination suggested probing activity against the public HTTPS endpoint.
It did not demonstrate a successful exploit, an Oracle service running on the host, or a compromised system.
This is exactly the kind of distinction I want X-RAY to preserve.
The useful result was not simply receiving an alert. It was being able to connect a network-level observation with independent application-level evidence.
4. Notifications are useful only when they are meaningful
Collecting events is relatively easy.
Deciding which events deserve attention is harder.
A home network continuously generates behavior that can look unusual without being malicious: IoT devices contacting unexpected services, clients retrying blocked connections, streaming applications changing endpoints, or devices performing discovery.
If every unusual packet becomes an urgent notification, the monitoring system quickly becomes useless.
X-RAY 0.7 brings security observations closer to an operational workflow: detection, classification, notification and investigation.
Telegram provides a practical notification channel for selected events.
But severity and confidence need to remain separate concepts.
A rule may match with high confidence while the underlying activity is only informational. A malformed TLS handshake may indicate a scanner, a broken client, or simply an unexpected protocol.
The goal is to reduce the distance between receiving an alert and understanding what actually happened.
5. The NAT visibility problem
One architectural limitation has become particularly interesting during development.
X-RAY sits upstream of the FRITZ!Box.
Because the FRITZ!Box performs NAT, the bridge sees its upstream address rather than the individual private addresses of downstream devices.
For bandwidth accounting, this is manageable.
For identifying the device responsible for a particular connection, it is a problem.
The solution I have been experimenting with is using the FRITZ!Box packet capture functionality as a second observation point.
X-RAY can acquire LAN and Guest captures, convert them into standard PCAP files and associate capture metadata with monitoring events.
This does not eliminate the architectural limitation of NAT. It provides additional evidence from the other side of it.
There are trade-offs: capture windows may not align perfectly with upstream events, and initiating a capture is an active management operation even though it does not alter packet forwarding.
Still, it has proved extremely useful.
6. A real investigation: Prime Video and DNS filtering
A recent investigation provided a practical example.
My FRITZ!Box Guest network uses a local DNS path through the router and Pi-hole/Unbound.
I also configured a Guest access filter to block direct external DNS requests on TCP and UDP port 53.
The objective is simple: devices should not bypass the configured resolver by sending traditional DNS queries directly to public DNS services.
Initially, Prime Video on an Amazon Fire TV stopped playing content when the filter was enabled.
An earlier packet capture showed the Fire TV attempting to contact external DNS resolvers and receiving ICMP administrative-prohibition responses.
Disabling the filter restored playback.
The obvious conclusion would have been that Prime Video required direct access to those resolvers.
But subsequent observations complicated that explanation.
With the same DNS filter enabled, Prime Video began working again.
A new Guest capture showed the Fire TV using the FRITZ!Box resolver at 192.168.189.1, with successful DNS responses and substantial HTTPS traffic consistent with video delivery.
During that capture, the Fire TV made no observed direct DNS requests to public resolvers.
Other Guest devices behaved differently.
Three Google Home devices continued attempting to contact 8.8.8.8:53, and the FRITZ!Box rejected those requests with ICMP Type 3, Code 13: Communication Administratively Prohibited.
This demonstrated two things.
First, the Guest DNS filter was functioning as configured for the observed traffic.
Second, applications and devices do not necessarily behave consistently across sessions.
Caching, resolver fallback, application state or connection initialization may explain the difference in Fire TV behavior. The captures alone do not establish which explanation is correct.
The investigation also showed why the second observation point matters.
Without the Guest capture, I could see encrypted traffic and NAT-translated connections, but I could not reliably distinguish the Fire TV from the Google Home devices.
One important limitation remains: blocking port 53 does not prevent DNS-over-HTTPS on TCP/443.
The filter controls traditional DNS, not every possible form of encrypted name resolution.
7. From packet captures to evidence
PCAP files are invaluable, but they are not particularly convenient as the primary interface to a monitoring system.
They can be large, sensitive and difficult to interpret without context.
My preferred approach is to use X-RAY to answer the first questions:
What happened? When? Which hosts or protocols were involved? Was there a traffic spike, a security alert, or an unusual connection pattern?
Only then should packet-level inspection become necessary.
Figure 2 — X-RAY 0.7 Network and PF.
SQLite provides persistent records for observations and events, while capture files remain separate from the database.
This separation is intentional.
A packet capture may contain internal addresses, device identifiers and unencrypted payloads. It should not be casually exposed through a web dashboard.
Metadata belongs in the application. Raw evidence belongs in restricted storage.
Retention and storage management remain important operational concerns.
8. What X-RAY does not claim to know
The more capable a monitoring system becomes, the easier it is to overstate what it can actually see.
I want to avoid that.
X-RAY does not decrypt TLS traffic.
An observed SNI identifies a requested hostname, not the contents of the encrypted session.
An ASN identifies a network operator, not necessarily the application using that infrastructure.
A DNS response establishes a time-dependent relationship between a hostname and an address, not a permanent identity.
Suricata alerts provide detection evidence, not automatic proof of malicious intent.
And traffic observed upstream of NAT cannot be attributed to a specific downstream client without additional information.
QUIC, encrypted ClientHello, incomplete captures, packet loss and shared CDN infrastructure continue to complicate attribution.
These are not minor details.
They determine which conclusions the system can reasonably support.
9. The operational value of X-RAY 0.7
What I find most interesting about this stage of development is not a particular dashboard or feature.
It is the ability to combine observations that would otherwise remain isolated.
A traffic spike can lead to flow analysis.
A flow can be associated with DNS or TLS metadata.
A security signature can be compared with connection behavior and server logs.
A FRITZ!Box capture can identify a client hidden behind NAT.
And a suspicious-looking event can turn out to be ordinary device behavior once the missing context is available.
That is a much more useful outcome than simply collecting more metrics.
The system is also becoming a practical environment for testing assumptions about real networks.
The DNS investigation was a good reminder: a plausible explanation is not necessarily the correct one, and behavior observed yesterday may not be reproduced today.
Packet captures do not remove uncertainty. They make it possible to describe uncertainty precisely.
10. What comes next
There is still substantial work to do.
Some areas deserve particular attention:
- Better correlation between protocol metadata, probable services and security events.
- Improved attribution of downstream devices behind NAT.
- More systematic validation of capture completeness and packet loss.
- Consistent severity, confidence and notification policies.
- Long-term stability, resource usage and retention testing.
- Better visibility into protocols such as QUIC, where conventional TLS-over-TCP inspection is insufficient.
I am also interested in keeping the architecture small.
It would be easy to turn this into a collection of external databases, message brokers and monitoring services.
That is not the objective.
OpenBSD, Go, SQLite and a few well-defined integrations already provide a useful foundation.
11. Threat Intelligence Contributions
X-RAY is also part of a broader effort to improve network security through collaborative threat intelligence.
I use AbuseIPDB to check the reputation of suspicious IP addresses observed on my infrastructure. When malicious activity is confirmed through local logs and security events, I contribute evidence-based reports to the community.
This creates a two-way contribution: consuming shared threat intelligence to protect my network, while sharing verified observations to help protect others.
12. Conclusion
X-RAY started with a simple question:
What is actually happening on my network?
Version 0.5 was largely about collecting observations and making them understandable.
Version 0.7 takes the next step: combining those observations with security detections, historical context and packet-level evidence.
The project is still experimental, and version numbering should not be confused with production-readiness certification.
But it has reached a point where it is useful for investigating real problems rather than merely displaying network statistics.
That is the direction I want to continue exploring.
No TLS interception. No automatic blocking. No unnecessary infrastructure.
Just OpenBSD, Go, network traffic, and evidence.
Project environment: Fujitsu D3544-Sx · OpenBSD 8.0 · Go · PF · Suricata · SQLite · FRITZ!Box
Previous article: Passive Network Intelligence with OpenBSD and Go
Leave a comment