sudo apt update
sudo apt upgrade
sudo apt install ethtool wget
-----------------------------
Install ntopng:
wget http://packages.ntop.org/RaspberryPI/apt-ntop_1.0.190416-469_all.deb
dpkg -i apt-ntop_1.0.190416-469_all.deb
sudo apt install ntopng nprobe n2n
-------------------------------------
Add User To Group:
sudo useradd -r -s /bin/false ntopng
------------------------------------
Set Permissions Etc:
sudo mkdir /var/tmp/ntopng
sudo chown -R ntopng:ntopng /usr/share/ntopng /var/tmp/ntopng
sudo chmod 1770 -R /var/tmp/ntopng
sudo find /usr/share/ntopng -type d -print0 | xargs -0 chmod 744
sudo find /usr/share/ntopng -type f -print0 | xargs -0 chmod 755
----------------------------------------------------------------
Disable TCP Segmentation:
sudo ethtool -K eth0 gro off gso off tso off
--------------------------------------------
Verify TCP Is Disabled:
sudo ethtool -k eth0 | grep segmentation
----------------------------------------
Should Be Set To OFF:
tcp-segmentation-offload: off
tx-tcp-segmentation: off
tx-tcp-ecn-segmentation: off
tx-tcp-mangleid-segmentation: off
tx-tcp6-segmentation: off
---------------------------------
Edit Config File:
sudo nano /etc/ntopng/ntopng.conf
--user=ntopng
--interface=eth0
-w=192.168.x.x:3005
--community
--daemon
--dump-flows=logstash # optional
--disable-autologout # optional
--disable-login=1 # optional
--------------------------------
Firewall
sudo ufw allow 3005:3006/tcp
IP Table
sudo iptables -A INPUT -p tcp --match multiport --dports 3005:3006 -j ACCEPT
Start ntopng
ntopng /etc/ntopng/ntopng.conf
----------------------------------
Point Browser To 192.168..x.x:3005