Skip to contentSkip to conversation

Bandwidth Monitoring

LARTC Sathyan 4 participants 5 messages Aug 29, 2003 – Sep 2, 2003

lore
Share & tools
lore
#1 lore raw
Quoted 4 lines · Sathyan

Hello All,

Is there any way to findout the bandwidth used by a client(LAN user), from Linux gateway server.

If it's only for one client, you can create an iptables with his ip address. You then can read the iptabels counters each 5 minutes to get his bandwidth.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Sathyan

Sathi........

In linux server just install iptraf and then you can view the traffic on per ip basis. First you have to match ip address and its mac address then you can match that in iptraf and then you can see the incoming and outgoing traffic of particular client on ip basis.

Joel

Quoted 7 lines · Sathyan

Hello All,

Is there any way to findout the bandwidth used by a client(LAN user), from Linux gateway server.

I have to take monthly statistics of bandwidth used by a client (LAN user).

Quoted 8 lines

FYI i am using CBQ for bandwidth control

Regards
Sathi

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to Sathyan
Quoted 5 lines

Is there any way to findout the bandwidth used by a client(LAN user), from Linux gateway server.

I have to take monthly statistics of bandwidth used by a client (LAN user).

You could use iptables for that purpose. If you just want to monitor a single client you have to setup a simple rule. If you want to monitor a whole network there is an iptables extension called ipstats. I believe it's exactly what you want then. Go to www.netfilter.org and grep the mail archives for ipstats. There you will find some examples and a link to download ipstats. If the link isn't valid any more I could send it to you.

Regards,
Mike

Signature · 9 lines
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
author
#4 lore raw
In reply to Sathyan

Hello Mike,

Thanks for pointing out this software.I am trying to configure this software and i am facing problem in mysql-jdbc connector driver.

I have one more doubt on IPStat itself:
I read the README file in that it has given the user information..
1. do we need to feed the data in the database are there is any txt file to enter this information show that we can add this information into database using script.
2. Here they said that invert is true or false Is 0 represents true or false in the database

Is there any good document on IPStat?

If you are using this tool what is the version of j2sdk,mysql-jdbc connector,tomcat because i am getting

error: PoolManager: Can't register JDBC driver: org.gjt.mm.mysql.Driver :
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
....
....
error: PoolManager: Can't register JDBC driver: org.gjt.mm.mysql.Driver :
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
...
...
etc

Regards,
Sathi

Quoted 1 line
Quoted 1 line

Is there any way to findout the bandwidth used by a client(LAN user),

from

Quoted 6 lines
Quoted 4 lines

Linux gateway server.

I have to take monthly statistics of bandwidth used by a client (LAN user).

You could use iptables for that purpose. If you just want to monitor a single client you have to setup a simple rule. If you want to monitor a

whole

Quoted 1 line

network there is an iptables extension called ipstats. I believe it's

exactly

Quoted 2 lines

what you want then. Go to www.netfilter.org and grep the mail archives for ipstats. There you will find some examples and a link to download ipstats.

If the

Quoted 11 lines

link isn't valid any more I could send it to you.

Regards,
Mike

--
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8.

e-Post

Quoted 6 lines

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/