Networking Forums

Networking Forums > Computer Networking > Linux Networking > linux gatewway traffic bandwidth monitoring by source, destination, protocol and port

Reply
Thread Tools Display Modes

linux gatewway traffic bandwidth monitoring by source, destination, protocol and port

 
 
Jesus M. Salvo Jr.
Guest
Posts: n/a

 
      12-24-2005, 11:55 PM

I have a linux gateway that has 2 ADSL modems, does IP and VPN masquerading,
so that all traffic on the local network goes through this gateway.

I want to find out:
*) Which machine in the local LAN is consuming the ADSL bandwidth
*) Which external IP does most of the internal machines consume ADSL
bandwidth for
*) Which protocol and port consumes the most ADSL bandwidth


So far, I have tried iptraf ... but it does not have historical records ala
RRD / MRTG.

Any recommendation ?

 
Reply With Quote
 
 
 
 
Michael Heiming
Guest
Posts: n/a

 
      12-25-2005, 07:50 AM
In comp.os.linux.networking Jesus M. Salvo Jr. <(E-Mail Removed)>:

> I have a linux gateway that has 2 ADSL modems, does IP and VPN masquerading,
> so that all traffic on the local network goes through this gateway.


> I want to find out:
> *) Which machine in the local LAN is consuming the ADSL bandwidth
> *) Which external IP does most of the internal machines consume ADSL
> bandwidth for
> *) Which protocol and port consumes the most ADSL bandwidth


This way --> www.ntop.org

Running in webmode is what you want.

Good luck

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 41: interrupt configuration error
 
Reply With Quote
 
airdog
Guest
Posts: n/a

 
      12-26-2005, 03:01 PM
Yes, try pmacct http://freshmeat.net/projects/pmacct/

It uses either postgres or mysql to keep records and you can agregate by
hosts, networks, source ip, dest ip, etc.

A little difficult to set up and the docs are not very good, but if you
succeed, it's worth it.

Ntop does NOT keep history. If you reboot, you loose the history.




On Sun, 25 Dec 2005 11:55:01 +1100, Jesus M. Salvo Jr. wrote:

>
> I have a linux gateway that has 2 ADSL modems, does IP and VPN masquerading,
> so that all traffic on the local network goes through this gateway.
>
> I want to find out:
> *) Which machine in the local LAN is consuming the ADSL bandwidth
> *) Which external IP does most of the internal machines consume ADSL
> bandwidth for
> *) Which protocol and port consumes the most ADSL bandwidth
>
>
> So far, I have tried iptraf ... but it does not have historical records ala
> RRD / MRTG.
>
> Any recommendation ?


 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      12-26-2005, 03:42 PM
In comp.os.linux.networking airdog <(E-Mail Removed)>:
> On Sun, 25 Dec 2005 11:55:01 +1100, Jesus M. Salvo Jr. wrote:


[ top posting fixed }

>> I have a linux gateway that has 2 ADSL modems, does IP and VPN masquerading,
>> so that all traffic on the local network goes through this gateway.
>>
>> I want to find out:
>> *) Which machine in the local LAN is consuming the ADSL bandwidth
>> *) Which external IP does most of the internal machines consume ADSL
>> bandwidth for
>> *) Which protocol and port consumes the most ADSL bandwidth

[..]

> Yes, try pmacct http://freshmeat.net/projects/pmacct/


> It uses either postgres or mysql to keep records and you can agregate by
> hosts, networks, source ip, dest ip, etc.


> A little difficult to set up and the docs are not very good, but if you
> succeed, it's worth it.


> Ntop does NOT keep history. If you reboot, you loose the history.


Err? Ntop has rrdtool support built in these days.

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 141: disks spinning backwards - toggle the
hemisphere jumper.
 
Reply With Quote
 
Jesus M. Salvo Jr.
Guest
Posts: n/a

 
      12-27-2005, 01:39 AM
Michael Heiming wrote:

> In comp.os.linux.networking Jesus M. Salvo Jr. <(E-Mail Removed)>:
>
>> I have a linux gateway that has 2 ADSL modems, does IP and VPN
>> masquerading, so that all traffic on the local network goes through this
>> gateway.

>
>> I want to find out:
>> *) Which machine in the local LAN is consuming the ADSL bandwidth
>> *) Which external IP does most of the internal machines consume ADSL
>> bandwidth for
>> *) Which protocol and port consumes the most ADSL bandwidth

>
> This way --> www.ntop.org
>
> Running in webmode is what you want.
>
> Good luck
>


Wow ... been a long time since I used ntop, I did not realise it now has
that capability built-in. Thanks.

Also, I happened to have a look at etherape, which is looks like a nice tool
to determine what's consuming your bandwidth ( it shows nods in a graph ),
but can't do historical data AFAIK.

 
Reply With Quote
 
Scott R. Haven
Guest
Posts: n/a

 
      01-02-2006, 01:47 PM
Michael Heiming wrote:
> In comp.os.linux.networking airdog <(E-Mail Removed)>:
>
>>On Sun, 25 Dec 2005 11:55:01 +1100, Jesus M. Salvo Jr. wrote:

>
>
> [ top posting fixed }
>
>
>>>I have a linux gateway that has 2 ADSL modems, does IP and VPN masquerading,
>>>so that all traffic on the local network goes through this gateway.
>>>
>>>I want to find out:
>>>*) Which machine in the local LAN is consuming the ADSL bandwidth
>>>*) Which external IP does most of the internal machines consume ADSL
>>>bandwidth for
>>>*) Which protocol and port consumes the most ADSL bandwidth

>
> [..]
>
>
>>Yes, try pmacct http://freshmeat.net/projects/pmacct/

>
>
>>It uses either postgres or mysql to keep records and you can agregate by
>>hosts, networks, source ip, dest ip, etc.

>
>
>>A little difficult to set up and the docs are not very good, but if you
>>succeed, it's worth it.

>
>
>>Ntop does NOT keep history. If you reboot, you loose the history.

>
>
> Err? Ntop has rrdtool support built in these days.
>


Those are both good suggestions.

We also use Shorewall's accounting features along with rrdtool to track
this. It is less intensive than NTOP but requires that you know what
you are trying to account for ahead of time.

Scott R. Haven
Sr. Systems Engineer
Paisley Systems Inc.
managed services, consulting, and support
www.paisleysystems.com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Source port of 1079 (asprovatalk) to destination port 1025 (blackjack) - required for Microsoft Windows networking? Spin Windows Networking 1 10-07-2008 08:09 PM
Port wise bandwidth monitoring. jay_kbvt Linux Networking 0 05-21-2007 03:39 PM
Bandwidth monitoring on linux firewall router Kevin T. Neely Linux Networking 2 04-01-2007 04:17 PM
Linux bandwidth monitoring Rennie deGraaf Linux Networking 17 07-24-2005 05:15 AM
source 0.0.0.0 destination 255.255.255.255? code11 Linux Networking 3 11-05-2003 06:17 AM



1 2 3 4 5 6 7 8 9 10 11