Someone is using too much bandwidth???
Okey thanks for tcpdump.
But got a problem. I cant seem to realy figure out what those lines mean? say these four (4) lines:
08:01:42.131982 IP 192.168.0.71.1054 > mail.parliament.gov.zm.squid:
. ack 6755 win 65535
08:01:42.225114 IP 213.155.151.150.http > 192.168.0.183.3011: P 1:334(333) ack 170 win 5840
08:01:42.229863 IP 192.168.0.183.3011 > 213.155.151.150.http: F 170:170(0) ack 334 win 63907
08:01:42.229968 IP 213.155.151.150.http > 192.168.0.183.3011: F 334:334(0) ack 171 win 5840
Okey seen the date part, the IP address then looks like the port on which the connection is listening on is appended to the requesting IP address then the greater than???? confused from that point.
Anything i can use to graph this information????
Teddy L.
Quoted 32 lines
---- Original Message ----
From: [email protected]
To: [email protected]
Subject: RE: Someone is using too much bandwidth???
Date: Tue, 21 Nov 2006 13:13:12 -0500Quoted 9 lines
Quoted 9 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of lubasi
Sent: Tuesday, November 21, 2006 12:22 PM
To: [email protected]
Subject: RE: Someone is using too much bandwidth???Quoted 5 lines
Quoted 3 lines
Hello,
Indeed its true, and i dont know what machine it is.
You could setup an iptables rule to log all traffic or do what I
believe may
Quoted 8 lines
be simpler: use tcpdump
Let's say you have two NIC's on your machine:
// Internet // - [eth0] - [gateway] - [eth1] - // Internal Network//
Quoted 21 lines
Quoted 5 lines
You can run tcpdump on your Internet Network:
tcpdump -i eth1
If you've ssh'd to your gateway machine from your Internal Network,
your
Quoted 1 line
host and ssh information will also be spewed. Probably not what you
want.
Quoted 13 lines
A simple tweak will handle it:
tcpdump -i eth1 not host your.IP.address.here
The above should give you some quick answers.
Cheers,
---
Pablo Sanchez - Blueoak Database Engineering, IncPh: 819.459.1926 Toll free: 888.459.1926 Cell: 819.918.9731 Pgr: [email protected] Fax: 603.720.7723 (US)
------------------------------------------------------
Teddy L. Nyambe
Open Source Zambia
www.opensource.org.zm
+260 97 760473
* Know that today is yesterday's future Be the change you want to see in the world
* To Err is Human, but to really mess things up, you need a PC
Quoted 1 line · lubasi
Okey thanks for tcpdump.
No problem.
Quoted 5 lines
But got a problem. I cant seem to really figure out what those lines mean? say these four (4) lines:
08:01:42.131982 IP 192.168.0.71.1054 > mail.parliament.gov.zm.squid:
. ack 6755 win 65535
Host 192.168.0.71 is talking from port 1054 to host mail.parliament.gov.zm's Squid port (3128) (acknowledging packet 6755 with a window size of 65535)
Quoted 2 lines
08:01:42.225114 IP 213.155.151.150.http > 192.168.0.183.3011: P 1:334(333) ack 170 win 5840
213.155.151.150 was sending traffic from the http port (80) back to 192.168.0.183
Quoted 8 lines
08:01:42.229863 IP 192.168.0.183.3011 > 213.155.151.150.http: F 170:170(0) ack 334 win 63907
08:01:42.229968 IP 213.155.151.150.http > 192.168.0.183.3011: F 334:334(0) ack 171 win 5840Okey seen the date part, the IP address then looks like the port on which the connection is listening on is appended to the requesting IP address then the greater than???? confused from that point.
The greater than is an arrow pointing the direction of the traffic flow. There is also some packet information that is not really important for the basic traffic flow that you are after. Consider perusing the TCPDump man page. ;) You will find out all sorts of things about how you can customize the default output of TCPDump.
Quoted 1 line
Anything i can use to graph this information????
Now you are just being picky. ;)
I'm sure there are some ways that you could capture this output and run it through a graph generation program. However these are just pieces in a total solution. You may want to look at some of the other things mentioned in this thread as I bet they will come closer to doing what you want to do out of the box. If not, look for something that will take the output of TCPDump and munge it and then create a file that holds your stats (csv?) and then look to have something graph that (GNUPlot?) for you.
Grant. . . .