Enter your email address:

Delivered by FeedBurner

iftop - Check and analyze your traffic


StumbleUpon Toolbar

Introduction

iftop is a real good utility both for your own PC/Laptop and for your server and specially good for the latter and even better if this server is acting as the main router in your premises.

Well lets explain what iftop does, it is more or less like top, or htop but it does not measure the processes in the processor, but it measure the "processes" in the ethernet interface, giving you information about the IPs that have a connection with the PC where iftop is running, also giving information about the traffic, if it is incoming or outcoming, also how much traffic there is in that connection and the total amount of traffic in the interface.

Installation

Ubuntu / Debian

sudo aptitude install iftop

Fedora / CentOS

yum install iftop

Gentoo / Sabayon

emerge iftop

Some options

Some of the options I use the most are:

  • -p Enables promiscuous mode, so the traffic on any interface (if there is more than once) is checked and counted
  • -P Shows also the port that connection is using both on our side and on the other side
  • -N Do not resolve port names, which is the default behavior when you enable the -P option, so it will shows you :www or :80

Screenshot

iftop screenshot

Trackback URL for this post:

http://www.go2linux.org/trackback/426
StumbleUpon Toolbar

 If you like this article, subscribe to our full rss

If this article was somehow useful for you, you can leave something in the tip's jar

Please post your question in our forum and use comments only to leave your comments about the article, thanks.

What a great little

What a great little program.

Thanks for the article.

You are welcome! I am glad

You are welcome!
I am glad it was useful for you

Guillermo Garron

Hi there, thanks for this,

Hi there, thanks for this, is there any other app that you know of that can do the same but with a web interface?

I have a linux server thats acting as the mail router, but I want to check what internal IP is doing what traffic?

Please let me know if you know of anything?

Thanks

Hi, I do not know, but I

Hi, I do not know, but I will look for one.
Guillermo Garron

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

This site is proudly hosted at Bluefur Hosting