To encrypt the HTTP traffic, we can enable HTTPS by installing a free TLS certificate issued from Let’s Encrypt. Now you can access ntopng web interface using the domain name. Restart Apache sudo systemctl restart apache2 ServerName ErrorDocument 404 /404.html #HTTP proxy ProxyPass / ProxyPassReverse / #Websocket proxy SSLProxyEngine on ProxyPass wss://localhost:3000/:/websockets/notifications ProxyPassReverse wss://localhost:3000/:/websockets/notifications Header always unset X-Frame-Options The price is low and they give whois privacy protection free for life. If you don’t have a real domain name, I recommend going to NameCheap to buy one. Don’t forget to create DNS A record for this sub-domain. Put the following configurations into the file. sudo nano /etc/apache2/sites-available/nf Then create a virtual host file for ntopng. sudo a2enmod proxy proxy_http headers proxy_wstunnel To use Apache as a reverse proxy, we need to enable the proxy modules and the header module.
If you prefer Apache over Nginx, then install Apache web server by using the following command. Now you can access ntopng web interface via. If the test is successful, reload Nginx for the change to take effect. You should also create DNS A record for this sub-domain. sudo nano /etc/nginx/conf.d/nfĪdd the following content to this file. Then create a server block file for ntopng. If you prefer to use Nginx, run the following command to install it.
Nginx is a very popular web server and reverse proxy. This also allows you to enable HTTPS with certbot. To access the ntopng Web interface using a domain name rather than typing IP address and port number, we can set up a reverse proxy for ntopng with Nginx or Apache. The web user interface is available at the Setting Up Reverse Proxy For example, the centos service is inactive (dead), I need to restart it with: sudo systemctl restart centoīy default, ntopng listens on port 3000. If a service isn’t running, start it with systemctl. sudo apt install pfring-dkms ndpi nprobe ntopng n2disk cento Then install the package, which will automatically add the ntopng repository. Note: ntopng repository doesn’t support Ubuntu 22.04 yet, but you can install it directly from the Ubuntu repository ( sudo apt install ntopng).
If you use Ubuntu 18.04, run the following command to download ntopng. sudo add-apt-repository universeĭownload the latest stable version of ntopng on Ubuntu 20.04. sudo apt install software-properties-common wgetĮnsure the universe repository is enabled. Run the following command to install dependency packages.
Ntopng is available in the default software repository, but it’s recommended to install the latest stable version from the upstream ntopng repository. It’s recommended to run it on a server with at least 4 CPU cores. In this tutorial, we are going to install the community edition.
This tutorial is going to show you how to install and use ntopng on Ubuntu server.
Ntopng (ntop next generation) is a high-speed web-based traffic analysis and flow collection tool.