Linux Security Forum
 
 

Go Back   Linux Security Forum > Linux Security > Articles

Notices

Articles Linux Security Articles

Reply
 
Thread Tools
  #1  
Old 11-15-2008
drendeah drendeah is offline
Super Moderator
 
Join Date: Jul 2008
Posts: 295
Blog Entries: 1
Rep Power: 101
drendeah has a reputation beyond reputedrendeah has a reputation beyond reputedrendeah has a reputation beyond reputedrendeah has a reputation beyond reputedrendeah has a reputation beyond reputedrendeah has a reputation beyond reputedrendeah has a reputation beyond reputedrendeah has a reputation beyond reputedrendeah has a reputation beyond reputedrendeah has a reputation beyond reputedrendeah has a reputation beyond repute
Default Using ntop, iftop and apachetop to Monitor Traffic on Ubuntu

Using ntop, iftop and apachetop to Monitor Traffic on Ubuntu

Not monitoring your server's network traffic is the equivalent of driving a car with your eyes closed. You must at all times be aware of your server's traffic. Just checking the logs is simply not enough. The tools that I will show you today generate traffic statistics, and show traffic usage in realtime. Statistics that would be hard for you to obtain otherwise. For a secure server, using such tools is mandatory.

Ntop

Ntop is a top-like application with a web frontend, designed to monitor network activity and generate reports on the console or via your web browser.

Installing Ntop on Ubuntu 8.04.1 Server

Code:
apt-get install ntop
Accept the dependency list and be patient while you wait for the packages to download.

Now start the ntop daemon with these commands:

Code:
ntop --set-admin-password
/etc/init.d/ntop start
Now you will be asked for an admin password, choose a password and write it to ntop.

After the process completes and ntop starts, open your browser and point it to the address:

Code:
http://yourdomain.com:3000/
A nicely formatted web page will appear. Go ahead and browse it. See all the features it has to offer.

Note: don't bother looking for the console version of ntop. A long time ago it used to be available but not anymore. If you need a console network statistics tool Try to use "iftop".

Iftop

To install iftop use the following command:

Code:
apt-get install iftop
Wait while it is installed, then run it with the following command:

Code:
iftop
Now create some traffic between you and your server. Observe how both utilities react.

Apachetop

If you run apache webserver on your Ubuntu 8.04.1 try the apachetop software.

To install apachetop use the following command:

Code:
apt-get install apachetop
To run apachetop use the following command:

Code:
apachetop
Now create some traffic to the web server. See apachetop react.

In this tutorial I have shown you three excelent programs for monitoring traffic to your Ubuntu server. Make good use of them and you can stay on top of any traffic related security risks.

This article was brought to you by LinuxSecurityForum.org, become a member by clicking here: Register

Last edited by drendeah; 11-15-2008 at 11:34 AM..
Reply With Quote
Sponsored Links
Reply

Bookmarks

Tags
apachetop, iftop, monitor, ntop, traffic, ubuntu

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Photobucket
All times are GMT -5. The time now is 09:22 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Advertisement System V2.3 By   Branden