{"id":10667,"date":"2021-09-28T10:33:53","date_gmt":"2021-09-28T10:33:53","guid":{"rendered":"https:\/\/linuxways.net\/?p=10667"},"modified":"2021-09-28T10:33:53","modified_gmt":"2021-09-28T10:33:53","slug":"how-to-install-ntopng-on-ubuntu-20-04-lts","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-ntopng-on-ubuntu-20-04-lts\/","title":{"rendered":"How to Install Ntopng on Ubuntu 20.04 LTS"},"content":{"rendered":"<p>Ntopng is a web based traffic monitoring software that reports traffic statistics of the connected networks. It does not actively interfere in the network traffic but passively captures network traffic. It can monitor from small to large networks. It gives you detailed information on bandwidth utilization, protocols, apps, and also deep insights into network traffic. It can be installed and used on Linux, Windows, MacOS, and FreeBSD.<\/p>\n<p>In this post, we will be installing Ntopng on <strong>Ubuntu 20.04<\/strong> LTS.<\/p>\n<h2>Installing Ntopng on Ubuntu<\/h2>\n<p>Ntopng is not included in the Ubuntu OS repositories. We will need to add ntop official repository to our system\u2019s repository available at the ntop.org website.<\/p>\n<p>2. First, install some prerequisites using the command below:<\/p>\n<pre>$ sudo apt install software-properties-common wget<\/pre>\n<p>Enter sudo password and if it prompts for confirmation, hit <strong>y <\/strong>and then<strong> Enter <\/strong>to confirm. After that, prerequisites will be installed on your machine.<\/p>\n<p>2. Then add the Universe repository using the below command:<\/p>\n<pre>$ sudo add-apt-repository universe<\/pre>\n<p>3. Visit <a href=\"https:\/\/packages.ntop.org\/apt\/\">ntop.org<\/a> Download page to download the Ntopng repository for Ubuntu or use the below command to download ntop repository for Ubuntu 20.04 via command line:<\/p>\n<pre>$ wget <a href=\"https:\/\/packages.ntop.org\/apt\/20.04\/all\/apt-ntop.deb\">https:\/\/packages.ntop.org\/apt\/20.04\/all\/apt-ntop.deb<\/a><\/pre>\n<p>4. Now install the ntop repository using the below command:<\/p>\n<pre>$ sudo dpkg \u2013i apt-ntop.deb<\/pre>\n<p>5. Once the installation is completed, update the local repository index:<\/p>\n<pre>$ sudo apt update<\/pre>\n<p>Now the ntop repository has been added to your system\u2019s local repository.<\/p>\n<p>6. Run the below command to install ntop packages:<\/p>\n<pre>$ sudo apt install pfring-dkms nprobe ntopng cento n2disk<\/pre>\n<p>If it prompts for confirmation, hit <strong>y <\/strong>and then<strong> Enter <\/strong>to confirm. After that, ntop packages will be installed on your system.<\/p>\n<h2>Configuring Ntopng<\/h2>\n<p>The default configuration file of Ntopng is <strong>ntopng.conf<\/strong> which you can find at <strong>\/etc\/ntopng<\/strong>. You can edit this file by running the below command:<\/p>\n<pre>$ sudo nano \/etc\/ntopng\/ntopng.conf<\/pre>\n<p>Modify the configurations as follows:<\/p>\n<pre>-G=\/var\/run\/ntopng.pid\r\n\r\n-i=&lt;interface_name\r\n\r\n-w=3000<\/pre>\n<p>Save the <strong>ntopng.conf<\/strong> file and close it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"774\" height=\"584\" class=\"wp-image-10668\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-659.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-659.png 774w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-659-300x226.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-659-768x579.png 768w\" sizes=\"auto, (max-width: 774px) 100vw, 774px\" \/><\/p>\n<p>Ntopng service starts automatically after installation. However, after making any changes in the configuration file, you will need to restart its service using the command below:<\/p>\n<pre>$ sudo systemctl restart ntopng<\/pre>\n<p>If you want to automatically start ntopng service at boot, use the command below:<\/p>\n<pre>$ sudo systemctl enable ntopng<\/pre>\n<p>To verify if the ntopng has been started and running, use the command below:<\/p>\n<pre>$ sudo systemctl status ntopng<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"784\" height=\"155\" class=\"wp-image-10669\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-660.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-660.png 784w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-660-300x59.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-660-768x152.png 768w\" sizes=\"auto, (max-width: 784px) 100vw, 784px\" \/><\/p>\n<h2>Launch Web Interface<\/h2>\n<p>To access ntopng web interface, go to http:\/\/ip-address:<em>3000<\/em> in your browser&#8217;s address bar. It will open the below Welcome page on the browser. Login to ntopng using the default <strong>admin<\/strong> (username and password).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"581\" class=\"wp-image-10670\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-661.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-661.png 872w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-661-300x200.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-661-768x512.png 768w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\" \/><\/p>\n<p>After login, you will be asked to change your password for the admin. Set a password and click <strong>Change Password<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"874\" height=\"629\" class=\"wp-image-10671\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-662.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-662.png 874w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-662-300x216.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-662-768x553.png 768w\" sizes=\"auto, (max-width: 874px) 100vw, 874px\" \/><\/p>\n<p>Now you will see the following similar ntopng Dashboard.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1287\" height=\"717\" class=\"wp-image-10672\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-663.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-663.png 1287w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-663-300x167.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-663-1024x570.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-663-768x428.png 768w\" sizes=\"auto, (max-width: 1287px) 100vw, 1287px\" \/><\/p>\n<h2>Uninstall ntopng<\/h2>\n<p>In case, you no longer need ntopng and its packages, you can uninstall them as follows:<\/p>\n<pre>$ sudo apt remove pfring-dkms nprobe ntopng cento n2disk<\/pre>\n<p>Ntopng is an essential application for monitoring and troubleshooting network problems. In this post, we covered how to install ntopng on Ubuntu OS and access its web interface. We also covered how to remove ntopng in case you no longer require it.<\/p>","protected":false},"excerpt":{"rendered":"<p>Ntopng is a web based traffic monitoring software that reports traffic statistics of the connected networks. It does not actively interfere in the network traffic but passively captures&hellip;<\/p>","protected":false},"author":1,"featured_media":10678,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[437,100],"class_list":["post-10667","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-ntopng","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/10667","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=10667"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/10667\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/10678"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=10667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=10667"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=10667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}