A simple traffic monitor for users based on mac address for raspbery pi/orange pi
This is simple php project that use wireshark cli (tshark) to capture and analyse transform packages and extract mac and traffic from them. This project implemented and tested on
orange pi pc.
The interface is very simple and need more advance features but the foundation is ready. Maybe I can some extra features in future. If you know a good php interface for this application please introduce it.
This project need to
upstart be installed.
Upstart and tcpdump for Debian/Ubuntu installation described bellow:
apt install tcpdump upstart
Now should install service by copying
Put the project files in the
Create database and tables by importing the
Start service using
service netmon start. Service runs as
www-data (the apache user).
Now run simple data summery by navigating
For monitoring traffic I enabled ip4_forwarding and use the pi as internet access point.
[MyComputer] <======> (Orange PI) <======> [Internet Router]
This project inspired from ronenb blog , you can find more helpful manual there :
Also I used this guide to install wirelless ap on my pi: