• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to use Ntopng using Squid proxy server

1824

To use Ntopng using Squid proxy server

The Ntopng is an open-source network traffic monitoring system that provides a web interface for real-time network monitoring. Ntopng provides several tools for monitoring various protocols, traffic variants and bandwidth across multiple time frames. A squid proxy server is a computer that acts as an intermediary between a desktop computer and the internet and allows a client machine to make an indirect connection to network servers and services. This tutorial covers the ground on the installation procedure of Ntopng using Squid proxy server.

Pre - Requisite

First install Ntopng monitoring tool in your machine and configure squid on same machine, configure your squid with set of local and remote host IPs now monitor the performance and usage in Ntopng monitoring tool.

Installation procedure

To start with the installation procedure, install the Ntopng application by executing the following command.

root@linuxhelp:~# apt-get install ntopng
Reading package lists... Done
Building dependency tree        
Reading state information... Done
The following additional packages will be installed:
  fonts-font-awesome javascript-common libdbi1 libhiredis0.13 libjemalloc1 libjs-bootstrap libjs-d3 libjs-jquery libjs-jquery-form
  libjs-jquery-metadata libjs-jquery-tablesorter libjs-rickshaw libluajit-5.1-2 libluajit-5.1-common libmysqlclient20 libndpi4
  librrd8 mysql-common ntopng-data redis-server redis-tools
Suggested packages:
  apache2 | lighttpd | httpd geoip-database-contrib ruby-redis
The following NEW packages will be installed:
.
.
.
Created symlink /etc/systemd/system/multi-user.target.wants/ntopng.service &rarr  /lib/systemd/system/ntopng.service.
Processing triggers for libc-bin (2.24-9ubuntu2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (232-21ubuntu2) ...

After installing the ntopng application, create a configuration file named ntopng.conf and enter the following contents into the file. Save and exit the file.

root@linuxhelp:~# vim /etc/ntopng.conf
# This configuration file is similar to the command line, with the exception
# that an equal sign ' ='  must be used between key and value. Example: -i=p1p2
# or --interface=p1p2 For options with no value (e.g. -v) the equal is also
# necessary. Example: " -v="  must be used.
#
# DO NOT REMOVE the following option, required for daemonization.
-e=

# * Interfaces to sniff on: one interface per line, prefix with -i=
# E.g.
-i=ens33
#-i=wlan0
# If none is specified, ntopng will try to auto-detect the best interface.
#
# * Port on which ntopng will listen for the web-UI.
-w=3000
~                     

Restart your Ntop service by running the following command.

root@linuxhelp:~# systemctl restart ntopng

Allow the Ntopng service through firewall by executing the following command.

root@linuxhelp:~# ufw allow 3000
Rules updated
Rules updated (v6)        

The Ntopng is running successfully. Install the squid and configure it with your own ACL rules and allow certain local and remote hosts in it.

Switch over to the browser and go to Ntopng login page. Login with your credentials.
credentials

Select the host option from the menu header.
ntop login

Next filter and see either localhost or remote host using the filter option.
localhost
hosts

Next set the Squid configuration file named squid.conf (acl rules with set of local and remote host) by running the vim editor.
squid configuration

Enter the following contents in the configuration file and save it.
squid configuration

To see the flow (i.e) the sites reached by the hosts. Switch over to Ntopng and see the required details.
sites

You can also view the peers of the Active Flows.
peers

You can also view the Protocol overview of the running peers.
protocol overview

ntopng

The installation procedure of Ntopng using Squid proxy server.

Tags:
isaac
Author: 

Comments ( 1 )

errymaricha
where I can access its proxy logs
Add a comment

Frequently asked questions ( 5 )

Q

How can I report the protocol usage in Ntopng?

A

Yes you can report the protocol usage using Ntopng.

Q

How can I monitor network traffic?

A

yes well you can do network traffic monitoring.

Q

If it possible to monitor for ipv6?

A

Yes you can monitor both ipv4 and ipv6.

Q

What is the goal of "ntopng"?

A

Here I have to mention some of the goals of "ntopng",

1. Sort network traffic according to many criteria including IP address, port, L7 protocol, throughput, AS.
2. Show network traffic and IPv4/v6 active hosts.
3. Produce long-term reports about various network metrics such as throughput, application protocols
4. Top X talkers/listeners, top ASs, top L7 applications.
5. For each communication flow report network/application latency/RTT, TCP stats

Q

What are the main features of Ntopng?

A

Main Features of Ntopng are
• Sort network traffic according to many criteria including IP address, port, L7 protocol, throughput, Autonomous Systems (ASs)
• Show realtime network traffic and active hosts
• Produce long-term reports for several network metrics including throughput and application protocols
• Top talkers (senders/receivers), top ASs, top L7 applications

Related Tutorials in How to use Ntopng using Squid proxy server

Related Tutorials in How to use Ntopng using Squid proxy server

How to limit bandwidth in Squid - Part 4
How to limit bandwidth in Squid - Part 4
Jun 28, 2016
How to add Host into Nagios Server
How to add Host into Nagios Server
Nov 1, 2016
How to install squid proxy server on freeBSD
How to install squid proxy server on freeBSD
Feb 10, 2017
How to block with keywords and extensions in SQUID - Part 2
How to block with keywords and extensions in SQUID - Part 2
Jun 22, 2016
How to install LibreNMS in Ubuntu
How to install LibreNMS in Ubuntu
Oct 20, 2016
How to Configure Reverse Proxy with Squid in CentOS
How to Configure Reverse Proxy with Squid in CentOS
Dec 9, 2016
How to install SARG on Ubuntu 16.04
How to install SARG on Ubuntu 16.04
Oct 20, 2017
How to install Squid in Webmin
How to install Squid in Webmin
Aug 26, 2017

Related Forums in How to use Ntopng using Squid proxy server

Related Forums in How to use Ntopng using Squid proxy server

Squid
oliver class=
how to clear squid cache
Feb 7, 2017
Squid
owen class=
How to change default logformat in squid access log
Sep 1, 2017
Squid
hobbs class=
WARNING: Could not determine this machines public hostname. Please configure one or set visible_hostname.
Sep 21, 2017
Squid
oliver class=
How to allow only one site in SQUID
Feb 11, 2017
Squid
nathan class=
SARG : make[1]: *** [check-macro-version] Error 1
Sep 27, 2017
Squid
owen class=
How to view squid logs in human readable format
Sep 21, 2017
Squid
nicholas class=
How to limit download speed in SQUID
Feb 20, 2017
CentOS
jayce class=
WARNING: Cannot write log file: /var/logs/cache.log /var/logs/cache.log: Permission denied messages will be sent to 'stderr'.
Jun 1, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Jayce ?
What are the types of table used in IPtables

What are the various types of table used in IPtables and how to use that for my server security?

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.