Monitoring network traffic by Ntopng in Ubuntu 18.04
The following tutorial describes how to install and configure Ntopng on our server so that we can monitor our network.
For starters We update the system and install the necessary packages:
1 2 | sudo apt-get update -y sudo apt-get install pfring-dkms nprobe ntopng n2disk cento -y |
Then we grab a script and unpack it.
1 2 | wget http://apt.ntop.org/18.04/all/apt-ntop.deb sudo dpkg -i apt-ntop.deb |
We make the configuration script.
edit file:
1 | nano /etc/ntopng/ntopng.conf |
1 2 3 4 5 6 7 | G=/var/run/ntopng.pid ##Specifies the network interface or collector endpoint to be used by ntopng for network monitoring. -i=enp0s3 ##Sets the HTTP port of the embedded web server. -w=3000 |
-i=enp0s3 – We change the name of our network interface
-w=3000 – This is a port to connect to a browser
Save the file and make editing of the second file.
1 | nano /etc/ntopng/ntopng.start |
And we make editing:
1 2 | --local-networks "192.168.0.0/24" ## give your local IP Ranges here. --interface 1 |
–local-networks “192.168.0.0/24” Enter here for your local IP address ranges.
Add the service to startup and run:
1 2 | sudo systemctl start ntopng sudo systemctl enable ntopng |
Now we go to your browser and run: http://our-IP_address:3000
I log in to the default data.
Login: admin
Password: admin