LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-17-2010, 08:39 AM   #1
bortek
LQ Newbie
 
Registered: Mar 2010
Posts: 10

Rep: Reputation: 0
Bandwidth monitoring per local user


Hi

I have a Linux host connected via LAN to Internet. No proxy or squid is used on the host and outgoing traffic to Internet is not limited.

I have several local users on this box.

Recently bandwidth statistics on the switch/router showed increase in the Internet traffic from this host.

How do I monitor the traffic utilization per local user on Linux host? I want to be able to monitor the amount of traffic per port and per user, like user alice downloaded 20GB today via port 22, and so on.

Do not offer to use Squid, this is not just web traffic I want to monirot but all amount of incoming/outgoing traffic per user per port.

Last edited by bortek; 03-17-2010 at 09:17 AM.
 
Old 03-17-2010, 10:13 AM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
I believe you would probably have to write a custom application for this, although iptables does support specifying a specific user so that might be of use also.

There are a lot of tools but most work on a host by host basis not by user at host basis.

http://www.ubuntugeek.com/bandwidth-...for-linux.html
 
Old 03-17-2010, 10:31 AM   #3
Zuulie
LQ Newbie
 
Registered: Mar 2010
Location: London
Distribution: Ubuntu
Posts: 16

Rep: Reputation: 1
I’ve actually needed this a few times, but never found a good solution. I had a look around and found LINUBIA:
http://www.csg.uzh.ch/publications/software/linubia

There is a LINUBIA publication (that isn’t freely available):
http://www.springerlink.com/content/j883595680m85t1x/

It’s interestingly saying that:
Quote:
... proposes a prototypical implementation for the Linux 2.6 operating system, which is capable of providing per-user accounting for both the IPv4 and the IPv6 protocol.
I’ve not found much on how it’s been implemented, the API or any user space application that uses it. The first link has a link to a LINUBIA patch for kernel 2.6.17.

My Googling must be bad, as I would have expected there to be loads of user based IP accounting available for Linux. Very odd.
 
Old 03-17-2010, 10:36 AM   #4
Zuulie
LQ Newbie
 
Registered: Mar 2010
Location: London
Distribution: Ubuntu
Posts: 16

Rep: Reputation: 1
I just spotted the slides from Manuel Feier's presentation:
http://www.netsteps.ch/ipaccounting/...esentation.pdf
 
  


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
ssh user bandwidth monitoring Pengoo Linux - Newbie 1 06-15-2009 05:29 PM
Monitoring how much bandwidth each user is using in a small network mohtasham1983 Linux - Networking 4 02-27-2009 12:33 AM
User bandwidth monitoring fancylad Linux - Server 2 04-30-2008 05:35 AM
Bandwidth Monitoring basketkase999 Linux - Software 2 01-13-2005 02:44 PM
per user bandwidth monitoring thelight1 Linux - Networking 0 10-26-2003 09:34 AM

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

All times are GMT -5. The time now is 10:44 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