Ntopng

From miki
Jump to navigation Jump to search

References

Build on Ubuntu

cd /usr/local/src
sudo apt-get install libglib2.0-dev build-essential checkinstall
sudo apt-get install libglib2.0 libxml2-dev libpcap-dev libtool rrdtool autoconf automake autogen redis-server wget libsqlite3-dev libhiredis-dev libgeoip-dev
sudo wget --content-disposition http://sourceforge.net/projects/ntop/files/ntopng/ntopng-1.2.1.tgz/download
sudo tar -xvzf ntopng-1.2.1.tgz 
cd ntopng-1.2.1/
./autogen.sh 
./configure
make
make geoip
sudo checkinstall

# To get list of interfaces:
# sudo ntopng -h
sudo mkdir -p /etc/ntopng
sudo vi /etc/ntopng/ntopng.start
sudo vi /etc/ntopng/ntopng.conf
sudo vi /etc/init/ntopng.conf

sudo /etc/init.d/redis-server restart
sudo ntopng /etc/ntopng/ntopng.conf 
sudo service ntopng start

Content of /etc/ntopng/ntopng.conf:

-G=/var/run/ntopng.pid

Content of /etc/ntopng/ntopng.start:

--local-networks "172.19.0.0/16"
--interface 1

Content of /etc/init/ntopng.conf:

# ntopng network flow analyzer
# by https://raymii.org

description     "ntopng network flow analyzer"

start on virtual-filesystems
stop on runlevel [06]

respawn
respawn limit 5 30
limit nofile 65550 65550

setuid root
setgid root
console log

script
        exec /usr/local/bin/ntopng /etc/ntopng/ntopng.conf
end script