Professional Documents
Culture Documents
com/community/Ntop
Partners
Support
Community
Ubuntu.com
Page History
Login to edit
Search
Ntop
Ntop shows the current network usage. It displays a list of hosts that are currently using the network and reports
information concerning the IP (Internet Protocol) and Fibre Channel (FC) traffic generated by each host. The traffic is Contents
sorted according to host and protocol. Protocols (user configurable) include:
1. Installation
1. Compiling ntop from source or SVN
TCP/UDP/ICMP
2. Configuration
(R)ARP
1. Fixing "Physical Host Location" feature (mapper.pl)
IPX 3. Access
DLC 1. On yur local machine
Decnet 2. Access from an external network with apache reverse proxy
4. Links
AppleTalk 5. Segfaults
Netbios
TCP/UDP
o FTP o HTTP o DNS o Telnet o SMTP/POP/IMAP o SNMP o NFS o X11
Fibre Channel
o Control Traffic - SW2, GS3, ELS o SCSI
(In human-readable, this means you can very comprehensively monitor your network traffic, connections & bandwidth via a web output)
Installation
Packages needed for installation are:
ntop
You can just type the following to install it (make sure you enable the Universe repositories): https://help.ubuntu.com/7.10/add-applications/C/extra-repositories.html
1 of 5 24/11/17 02:34
Ntop - Community Help Wiki https://help.ubuntu.com/community/Ntop
which will unpack the source package into the current working directory with a name like ntop-3.3.10. You can also follow the instructions at ntop.org to retrieve the latest version from SVN (trunk):
svn co https://svn.ntop.org/svn/ntop/trunk/ntop
Most of the packages which will be required to build ntop from source on an Ubuntu 9.10 (Karmic) can be retrieved with the following command:
You must first run ./autogen.sh in the ntop directory to create the configure script, Makefiles, and such, as described here. The configure script is pretty good about telling you which
dependencies are missing, if any. Don't forget you can pass configure options to autogen.sh, as in:
./autogen.sh --prefix=/usr/local/stow/ntop-svn
References:
1. http://www.ntop.org/download.html
2. http://www.gnu.org/software/stow/ - helps manage source packages without sullying /usr/bin, /usr/share, and so on
Configuration
When first installing & configuring the ntop application you need to set an admin password.
Check this space for a workaround using a local http server and links to relevant Launchpad bug reports.
The issue with the dead mapper.pl link is resolved in the latest SVN, as of this writing (2010-07-02). The host location results com from http://geotool.servehttp.com instead, a service of MaxMind, who
2 of 5 24/11/17 02:34
Ntop - Community Help Wiki https://help.ubuntu.com/community/Ntop
Access
On yur local machine
To access your network statistics via the web visit the web address:
http://localhost:3000
If you do not want to open port 3000 in your firewall, you can use apache's reverse proy module to allow access to ntop.
Edit your site's configuration in /etc/apache2/sites-enabled/your-site and add this code (don't forget to replace all occurences of your.domain.com with your real domain).
<VirtualHost *:80>
# keep the existing entries
...
# add here
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests Off
RewriteEngine On
RewriteCond %{HTTP_REFERER} your.domain.com/ntop
RewriteCond %{REQUEST_URI} !^/ntop/
RewriteRule ^/(.*)$ https://your.domain.com/ntop/$1 [L,R=permanent]
<Location /ntop>
ProxyPass http://localhost:3000
ProxyPassReverse http://localhost:3000
</Location>
</VirtualHost>
3 of 5 24/11/17 02:34
Ntop - Community Help Wiki https://help.ubuntu.com/community/Ntop
Links
http://www.ntop.org/
Segfaults
The packaged version of ntop in Lucid 10.04 is plagued with segfaults. You will be using ntop and it just cuts out in the middle of your session. There is luckily a way around this, that is easier than the SVN
method.
Thanks to Sylvain Garcia who has packaged the newest version of ntop in a PPA to install just do the following from a terminal:
sudo apt-add repository ppa:sylvain-garcia
note: aptitude, used in the following set of commands, is no longer included in the default install of Ubuntu due to trying to fit into a 700mb cd. You can easily install aptitude with
apt-get install aptitude
sudo aptitude update && sudo aptitude safe-upgrade
sudo aptitude update && sudo aptitude install ntop
Next there is one setting missing in the Ubuntu build of ntop. It's easy enough to change. (note nano is the default editor for Ubuntu. You may use of course any editor you prefer.)
sudo nano /etc/init.d/ntop
-d -b -L -u $USER -P $HOMEDIR \
4 of 5 24/11/17 02:34
Ntop - Community Help Wiki https://help.ubuntu.com/community/Ntop
sudo service ntop restart
Reference: https://bugs.launchpad.net/ubuntu/+source/ntop/+bug/588049
CategoryNetworking
5 of 5 24/11/17 02:34