• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to use Ntopng using Squid proxy server

{{postValue.id}}

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
{{postCtrl.cmtErrMsg}}

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

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 Isaiah ?
What is the use of SUID & SGID commands

How to set the special permissions to the files and folders using SUID and SGID commands...

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.