Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Tcpdump, monitoring!

1 view
Skip to first unread message

Kaj

unread,
Aug 31, 2000, 11:12:36 AM8/31/00
to
I use Tcpdump today but do not realy know howto use it.
Could anyone tell me how i should do to monitor a pc's intenet traffic?
Maybe give me a example script or someting.
I'm using a gateway.

Thanx


Sjoerd Langkemper

unread,
Aug 31, 2000, 11:53:28 AM8/31/00
to

START OF EXAMPLE SCRIPT
/usr/sbin/tcpdump
END OF EXAMPLE SCRIPT

That wasn't too hard, was it. Tcpdump is a program that monitors network
trafic (which includes internet traffic) and displays information about the
packages (==trafic) which travel thrue the computer. The man page should
give you more help on this item, or type tcpdump --help.


-ljl-

unread,
Aug 31, 2000, 12:36:18 PM8/31/00
to kaj.s...@ekolitt.se
In article <EBur5.4941$HK.2...@newsc.telia.net>,

"Kaj" <kaj.s...@ekolitt.se> wrote:
> I use Tcpdump today but do not realy know howto use it.
> Could anyone tell me how i should do to monitor a pc's
> intenet traffic?
> Maybe give me a example script or someting.

You might want to try Brecht Claerhout's Sniffit which can
be run in an interactive mode: "sniffit -i".

See:
http://reptile.rug.ac.be/~coder/sniffit/sniffit.html

BTW: It compiles out of the box.
--
Louis-ljl-{ Louis J. LaBash, Jr. }


Sent via Deja.com http://www.deja.com/
Before you buy.

Prasanth A. Kumar

unread,
Aug 31, 2000, 1:09:03 PM8/31/00
to
"Kaj" <kaj.s...@ekolitt.se> writes:

There are lots of more user friendly GUI programs if that suits you
better. This includes stuff like 'Ether Ape', 'Ethereal' and
'iptraf'. My favorite is 'Ethereal'.

--
Prasanth Kumar
kum...@home.com

sawa...@my-deja.com

unread,
Aug 31, 2000, 8:08:21 PM8/31/00
to
In article <Ybvr5.112275$Kw2.934468@flipper>,

"Sjoerd Langkemper" <s.lang...@chello.nl> wrote:
> "Kaj" <kaj.s...@ekolitt.se> wrote:
> > I use Tcpdump today but do not realy know howto use it.
> > Could anyone tell me how i should do to monitor a pc's intenet
traffic?
> > Maybe give me a example script or someting.
> > I'm using a gateway.
>
> START OF EXAMPLE SCRIPT
> /usr/sbin/tcpdump
> END OF EXAMPLE SCRIPT

Obviously this was crafted by an incompetent. This how it
should be done and keeps with the Unix philosophy.

--------------------- cut here ------------------------
#!/bin/sh
$1
# end of script
--------------------- cut here ------------------------
Cut on dotted line and save as RUN.
chmod 755 RUN

Usage:
./RUN tcpdump
./RUN ls

To experiment with recursion try "RUN RUN". See how versatile
this implementation is.

"Nobody likes a smart-ass."
Title of a stage play in The French Quarter.

---
Suziko

Andrew N. McGuire

unread,
Aug 31, 2000, 8:51:53 PM8/31/00
to
On Thu, 31 Aug 2000, Prasanth A. Kumar quoth:

~~ Date: Thu, 31 Aug 2000 17:09:03 GMT
~~ From: Prasanth A. Kumar <kum...@home.com>
~~ Newsgroups: comp.os.linux.misc
~~ Subject: Re: Tcpdump, monitoring!
~~
~~ "Kaj" <kaj.s...@ekolitt.se> writes:
~~
~~ > I use Tcpdump today but do not realy know howto use it.
~~ > Could anyone tell me how i should do to monitor a pc's intenet traffic?
~~ > Maybe give me a example script or someting.
~~ > I'm using a gateway.
~~ >
~~ > Thanx
~~
~~ There are lots of more user friendly GUI programs if that suits you
~~ better. This includes stuff like 'Ether Ape', 'Ethereal' and
~~ 'iptraf'. My favorite is 'Ethereal'.

Ditto, also Ethereal can read 'tcpdump -w' files.

anm
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Andrew N. McGuire ~
~ anmc...@ce.mediaone.net ~
~ "Plan to throw one away; you will, anyhow." - Frederick P. Brooks, Jr. ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-ljl-

unread,
Sep 5, 2000, 3:52:39 PM9/5/00
to kaj.s...@ekolitt.se
In article <EBur5.4941$HK.2...@newsc.telia.net>,
"Kaj" <kaj.s...@ekolitt.se> wrote:
> I use Tcpdump today but do not realy know howto use it.
> Could anyone tell me how i should do to monitor a pc's intenet
traffic?
> Maybe give me a example script or someting.

A BRIEF GUIDE TO SETTING UP A NETWORK MONITORING PROCESS USING
TCPDUMP (see):
http://hepunx.rl.ac.uk/ppncg/tcpdump_doc.html

--
Louis-ljl-{ Louis J. LaBash, Jr. }

0 new messages