LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-06-2010, 05:47 AM   #1
tolyan-opel
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
real time traffic counter


Hello there, folks.
The question is the following. I have a linux router box with ubuntu which routes internet for several people. There is no extra traffic shaping, so everybody can get the whole bandwidth when its free. What I would like to have is a real time traffic counter per ip, just like a program called "iptraf" but on a per-ip basis. Iptraf can only count on a per-connection basis and thus cannot display a bandwidth that a certain ip has taken (because a single ip can start several onnections).
So a console program with text interface like iptraf would be perfect - does anybody know about such a program? After some googling I came to the conclusion that such a program does not exist (which must be wrong - i think that per-ip real time traffic flow information is the first thing every router owner would like to know). Thanks in advance.
 
Old 07-14-2010, 09:52 PM   #2
lbrigman124
LQ Newbie
 
Registered: Jun 2006
Location: Oregon
Distribution: FC4-6,FC1,RH8-9, LFS,RHEL5, CENTOS5, Unbreakable5
Posts: 12

Rep: Reputation: 2
You will want to learn more about Linux routing. It has the depth that you need
but you will need to learn more about filtering classification and queues.

The Linux Advanced Routing and traffic control (lartc) is a little dated but
get you all the detail to start seeing what you want and also bandwidth control.
http://lartc.org/lartc.html

If you want to do this without switching distro then here is a link for tools that should
be able to be installed via apt-get.
http://www.ubuntugeek.com/bandwidth-...for-linux.html

Here is a link for a tutorial on installing and using ntop which is very close.
http://www.cyberciti.biz/faq/debian-...ring-software/

Also if you want to switch distros then I would recommend custom distros that are specific for routers
One of those is http://www.untangle.com/
 
Old 07-15-2010, 07:01 AM   #3
methanigai
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Rep: Reputation: 0
Hi,
If you want to know "only" howmuch traffic per ip , you can use bandwidthd.
See here http://bandwidthd.sourceforge.net/
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Real-time traffic monitor Last Attacker Linux - Software 11 12-29-2008 09:27 AM
LXer: Real-time Linux gains real-time JVM LXer Syndicated Linux News 0 10-12-2006 10:54 AM
Monitoring traffic tool/web based(non-cgi?)/non-SNMP/low CPU usage/non-real time pe2338 Linux - Networking 3 05-04-2006 01:00 PM
NIC real time status / traffic monitor? KendersPlace Linux - Networking 3 09-10-2003 01:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration