

This project came about when retrofitting our cabin in the woods to a smart-home. This open-source solution has been used by readers of this site for monitoring family internet usage, LAN parties, and more. This post will show you how to monitor all internet traffic for every device on your network, without buying any specialty hardware. Instead, I tried to build a custom Raspberry Pi network monitor. Many solutions to this problem require software to be installed on every device to be monitored. It allowed me to discover interesting behaviors and patterns that I could have never discovered otherwise.When trying to figure out why the internet is slow, it can be hard to learn exactly which device on the network is eating up all the bandwidth. fritzpcap environment : - FRITZIP= - FRITZUSER=" mode : preserve - name : up _compose : project_src : ~/ntopng build : true recreate : always ConclusionĪfter these steps, my homenet’s network monitor system was up and running. nf:/nf:ro - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro environment : - TZ=Europe/Rome command : - "/nf" ports : - 3000 networks : - proxy restart : unless-stopped fritzpcap : build. Version : '3' services : app : container_name : ntopng image : ntop/ntopng volumes : - data:/var/lib/ntopng. Now back to ntopng: can it read pcap files? The answer is yes! Quoting the docs:

When you start capturing, the stream of packets in the Libpcap format starts downloading, and you can read it with Wireshark or tshark. So how could I monitor my homenet’s traffic without even having the physical prerequisites to do it? The hidden beauties of Fritz!BoxesĪctually I could, because after some quick searches I discovered that every Fritz!Box router has some obscure undocumented pages, including which allows to freely capture the traffic of all the available network interfaces. The problem was that neither my main ISP-provided router and Fritz!Box router (that I’m currently using just as a switch) had the possibility to set one port as mirrored.

The less ideal but still cool setup would be using a mirrored port on a switch, to forward all the traffic to the monitoring machine. The ideal setup would be installing it on a dedicated machine to use as router, but I wasn’t planning on that. Then I came across ntopng, which is an open-source network traffic monitoring and analysis tool, and I said to myself that I wanted it. One day I have decided that I wanted to monitor the traffic of my home network.įor the services I self-host in my home, I had recently upgraded from a Raspberry Pi 3B+ to a refurbished Dell WYSE 5070 thin client and I was looking for other things to self-host. This post shows how I set up an home network traffic monitoring system in an unconventional way.

Self-Hosting sysadmin docker security network.Self-hosted home network traffic monitoring with ntopng and a Fritz!Box
