mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 15:09:33 +00:00
1.7 KiB
1.7 KiB
Using ntopng to monitor traffic on a Mikrotik router
On a Raspberry pi running Raspbian connected to the local network via WiFi, install ntopng and connect the Ethernet interface to the Mikrotik router via a mirrored port.
Let's assume the Raspberry Pi connected via WiFi on 192.168.0.2, and the Mikrotik gateway is on 192.168.0.1 on ether1.
Install ntopng on Rasbpian
Per https://packages.ntop.org:
wget https://packages.ntop.org/RaspberryPI/apt-ntop.deb
sudo dpkg -i apt-ntop.deb
sudo apt-get update
sudo apt-get install ntopng nprobe
Configure ntopng to monitor eth0
/etc/ntopng/ntopng.conf:
-G=/var/run/ntopng.pid
-i=eth0
-m=192.168.0.0/24
See more details.
Configure Mikrotik Switch to mirror ports
Assuming that ether1 connects the router to the switches in the network, and we want to mirror ether5 for ntopng, run the following in terminal:
/interface ethernet switch
/interface/ethernet/switch> set switch1 mirror-source=ether1 mirror-target=ether5
Note that a few Mikrotik products use switch chipsets that do not support port mirroring. See details.
Connect and monitor
- Plug
eth0on the rPi toether5on the Mikrotik - Browse to the the web UI of
ntopngat http://192.168.0.2:3000 - Monitor away!


