This post documents the process of setting up network traffic monitoring with a Raspberry Pi using ntopng as well as configuring an OpenWRT router to mirror packets to the Pi.
Install ntopng & nprobe
Perform the following commands a root on your Raspberry Pi to install ntopng and nprobe
apt-key add ntop.key
echo "deb http://apt.ntop.org/jessie_pi armhf/" > /etc/apt/sources.list.d/ntop.list
echo "deb http://apt.ntop.org/jessie_pi all/" >> /etc/apt/sources.list.d/ntop.list
apt-get install ntopng nprobe
Test ntopng & nprobe
Execute the following commands in separate sessions to confirm that everything is working:
ntopng -i tcp://127.0.0.1:5556
nprobe --zmq "tcp://*:5556" -i ethX -n none -b 2
Browse to your Pi at port 3000 to login to ntopng:
You should start seeing packet statistics but only for traffic that the Pi can see. We need to mirror all packets to the Pi so that we can see everything happening on the network.
Mirror Packets to the Raspberry Pi
I’m using an OpenWRT router. To mirror packets to the Raspberry Pi, I used these instructions. They amount to setting the iptables mangle table to mirror packets to ntopng. For example, if the ntop system is at IP 192.168.1.120, you would execute these commands:
opkg install iptables-mod-tee
iptables -t mangle -A PREROUTING -j TEE --gateway 192.168.1.120
iptables -t mangle -A POSTROUTING -j TEE --gateway 192.168.1.120
To view the mangle table, enter the command:
iptables -vL -t mangle
NativeBase and Expo together provide a good starting point for ReactNative apps. This post provides the steps to set this up.
This is a cheatsheet to setup Freeboard on a Raspberry Pi.
Create GraphQL Server is a tool for building GraphQL apps with MongoDB by Tom Coleman. Tom has a good introductory post on CGS here and here. In the following post, I’ll show how to get the project working on a Raspberry Pi.
Watchmen is lightweight node.js based website and service monitoring tool. This is a cheatsheet to setup Wachmen on a Raspberry Pi.
This is a cheatsheet on troubleshooting Mup, the Meteor deploy tool.
This is a cheatsheet on starting up a React Native project using Material UI on a Mac. This uses the React Native Material Kit (RNMK) template.
It’s August 2016, would be nice to have a Meteor, React & React Router kickstarter/ app. Here’s what I’ve found.
Meteor Kitchen is a great tool for quickly creating Meteor apps and it supports Bootstrap and Bootswatch themes. The Bootswatch theme can be selected by the developer in the json file. In this post, I’m going to show how to allow the user to select among the Bootwatch themes.
This is documented elsewhere but here’s a cheatsheet. Note that you still need an SD card. I used instructions I found here and here.