{"id":6089,"date":"2018-08-07T19:08:50","date_gmt":"2018-08-07T15:08:50","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/ubuntu-ntopng-network-monitoring\/"},"modified":"2018-08-07T19:08:50","modified_gmt":"2018-08-07T15:08:50","slug":"monitor-network-traffic-with-ntopng-on-ubuntu-18-04-lts","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/monitor-network-traffic-with-ntopng-on-ubuntu-18-04-lts\/","title":{"rendered":"Monitor Network Traffic with Ntopng on Ubuntu 18.04 LTS"},"content":{"rendered":"<p>Ntopng is a free and open source software for monitoring network traffic that provides a web interface for real-time network monitoring. It is the next generation version of the original ntop that shows the network usage, similar to what the popular top Unix command does. It supports different operating system like, Unix, Linux, Mac OS, BSD and Windows.<\/p>\n<p>In this tutorial, we will learn how to install Ntopng on Ubuntu 18.04 LTS (Bionic Beaver) server.<\/p>\n<h2 id=\"requirements\">Requirements<\/h2>\n<ul>\n<li>A server running Ubuntu 18.04.<\/li>\n<li>A not-root user with sudo privileges.<\/li>\n<\/ul>\n<h2 id=\"install-ntopng\">Install Ntopng<\/h2>\n<p>By default, Ntopng is not available in Ubuntu 18.04 default repository. So you will need to install the repository for Ntopng. You can download and install Ntopng repository with the following command:<\/p>\n<p class=\"command\">wget http:\/\/apt.ntop.org\/18.04\/all\/apt-ntop.deb<br \/>sudo dpkg -i apt-ntop.deb<\/p>\n<p>Once the repository is installed, update the repository and install Ntopng with the following command:<\/p>\n<p class=\"command\">sudo apt-get update -y<br \/>sudo apt-get install pfring-dkms nprobe ntopng n2disk cento -y<\/p>\n<h2 id=\"configure-ntopng\">Configure Ntopng<\/h2>\n<p>After installing Ntopng, you will need to modify Ntopng default configuration file located at \/etc\/ntopng\/ntopng.conf:<\/p>\n<p class=\"command\">sudo nano \/etc\/ntopng\/ntopng.conf<\/p>\n<p>Make the following changes:<\/p>\n<pre>-G=\/var\/run\/ntopng.pid&#13;\n&#13;\n##Specifies the network interface or collector endpoint to be used by ntopng for network monitoring.&#13;\n-i=enp0s3&#13;\n&#13;\n##Sets the HTTP port of the embedded web server.&#13;\n-w=3000&#13;\n<\/pre>\n<p>Save and close the file, then create a ntopng.start file:<\/p>\n<p class=\"command\">sudo nano \/etc\/ntopng\/ntopng.start<\/p>\n<p>Add the following lines as per your network:<\/p>\n<pre>--local-networks \"192.168.0.0\/24\" ## give your local IP Ranges here.&#13;\n--interface 1&#13;\n<\/pre>\n<p>Save and close the file, then restart Ntopng and enable it to start on boot time:<\/p>\n<p class=\"command\">sudo systemctl start ntopng<br \/>sudo systemctl enable ntopng<\/p>\n<h2 id=\"access-ntopng\">Access Ntopng<\/h2>\n<p>Ntopng is now installed and listenning on port <strong>3000<\/strong>. Now, open your web browser and type the URL http:\/\/your-server-ip:3000. You will be redirected to the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page1\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_ntopng_on_ubuntu_1804\/big\/page1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/monitor-network-traffic-with-ntopng-on-ubuntu-18-04-lts.png\" alt=\"Access Ntopng\" width=\"550\" height=\"260\" title=\"\"><\/a><\/p>\n<p>Now, provide default username as admin and password as admin, then click on the <strong>Login<\/strong> button. You should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page3\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_ntopng_on_ubuntu_1804\/big\/page3.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/monitor-network-traffic-with-ntopng-on-ubuntu-18-04-lts-1.png\" alt=\"Ntop - ntopng web view\" width=\"550\" height=\"295\" title=\"\"><\/a><\/p>\n<h2 id=\"links\">Links<\/h2>\n<div>\n<p><b>Share this page:<\/b><\/p>\n<p>\n<a href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-ntopng-network-monitoring%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/monitor-network-traffic-with-ntopng-on-ubuntu-18-04-lts-2.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-ntopng-network-monitoring%2F&amp;text=Monitor+Network+Traffic+with+Ntopng+on+Ubuntu+18.04+LTS&amp;via=howtoforgecom&amp;related=howtoforgecom\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/monitor-network-traffic-with-ntopng-on-ubuntu-18-04-lts-3.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/howtoforgecom\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/monitor-network-traffic-with-ntopng-on-ubuntu-18-04-lts-4.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/plus.google.com\/share?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-ntopng-network-monitoring%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/monitor-network-traffic-with-ntopng-on-ubuntu-18-04-lts-5.png\" height=\"20\" alt=\"\" title=\"\"><\/a>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Ntopng is a free and open source software for monitoring network traffic that provides a web interface for real-time network monitoring. It is the next generation version of the original ntop that shows the network usage, similar to what the popular top Unix command does. It supports different operating system like, Unix, Linux, Mac OS, &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-6089","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/6089","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=6089"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/6089\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=6089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=6089"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=6089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}