Latest tutorial: Premium Flash Files | Ask Tutorial5! | Subscribe to RSS Register Login Find Hobbies
Advertisement
Do you need more help? You can now Ask Tutorial5! and get free support - Ask a question now!

How to view the traffic statistics of hosts

(3 votes)
Software - Linux
Written by Michael D.   
There are several applications that can help you do that, but i recommend ipfm (stands for Internet Protocol Flow Meter). Download the latest version from http://robert.cheramy.net/ipfm/. You can choose tgz or RPM (see our tutorial about RPM installation ) which is a better choice.

To install it use the packet manager of your Linux distribution or do it manually (extract the files, enter the directory created and do ./configure then make and make install).

Whatever option you choose, you must manually configure the running parameters of the service. Locate the ipfm.conf in /usr/local/etc and open it with any editor you like. You can also find a configuration model to learn how to make any changes to it.
The line DEVICE tells the service what interface to monitor (eg. DEVICE eth0). Note that this will monitor the virtual interfaces related to the device, too.

LOG 192.168.0.0/255.255.0.0 will tell what IP address (including mask) to monitor.

If we want to put any IP addresses that should not be monitored, use the LOG NONE 10.0.0.0/255.0.0.0 line.
FILENAME "/var/log/ipfm/%Y_%d_%m/%H_%M" tells where to create the log files and under what rules.

The configuration file should be edited according to your needs. This is just an example.


After successfully starting it, the service should return outputs like:

HOST IN OUT TOTAL
host.yourdomain.com 12345 6666684 6679029
server.yourdomain.com 1232314 12345 1244659
backup.yourdomain.com 6645632 123 6645755



Subscribe now via RSS feed and get all the new tutorials


Do you need more help? Ask now!
 

busy
Last Updated ( Saturday, 23 June 2007 )