Go Back   The macosxhints Forums > OS X Help Requests > UNIX - Newcomers



Reply
 
Thread Tools Rate Thread Display Modes
Old 01-25-2002, 08:05 PM   #1
Craig Sheppard
Prospect
 
Join Date: Jan 2002
Location: Halifax, NS
Posts: 8
Network Traffic Monitor?

Is there a terminal command similar to fs_usage for the network? I would like to be able to see each attempt to access my machine, and what each of my apps is doing WRT the internet.

If no terminal command, is there a UNIX app? Seems like a pretty fundamental utility!

Thanks!

Craig Sheppard
Craig Sheppard is offline   Reply With Quote
Old 01-25-2002, 08:23 PM   #2
mervTormel
League Commissioner
 
Join Date: Jan 2002
Posts: 5,536
consult the man pages for:

lsof - list open files (try -i -n -P)

netstat - show network status (try -f inet)



WRT? what that mean?

as for access to your machine, you might want a firewall app, like brickhouse.
mervTormel is offline   Reply With Quote
Old 01-25-2002, 08:40 PM   #3
Craig Sheppard
Prospect
 
Join Date: Jan 2002
Location: Halifax, NS
Posts: 8
Thanks- I was hoping for more of a realtime display (like fs_usage). I'll have to dig in with this one...

I already have a firewall, but I wanted to do some testing of my LAN.

WRT= With Regards To

Thanks again!

Craig Sheppard
Craig Sheppard is offline   Reply With Quote
Old 01-25-2002, 10:37 PM   #4
blb
All Star
 
Join Date: Jan 2002
Location: CO, USA
Posts: 908
I think you're looking for tcpdump. For example, if you want to watch all web traffic,

Code:
sudo tcpdump -i en0 port 80
should do it (unless you have use a proxy, in which case you'll want to watch the port for it). For some reason, you need to specify which interface (at least on my machine) as whatever the compiled default is, it doesn't work. Removing the port 80 option will show all traffic, which could be noisy...
blb is offline   Reply With Quote
Old 01-27-2002, 08:36 AM   #5
monickels
Prospect
 
Join Date: Jan 2002
Location: New York City
Posts: 45
A few apps to try

I am assuming you have a Fink installation; that's the best way to install some of these. They may only be listed in Fink's unstable tree, but they seem to work in some fashion for me. Try
Code:
fink install *packagename*
. A couple may require an XWindows installation. Some you can find on Versiontracker.

ethereal (XWindows)
tethereal (command line version of ethereal)
MacSniffer (Aqua front-end to tcpdump)
ettercap (terminal)
ntop
nmap
nmapfe (XWindows version of nmap)
Sniffles (Aqua)
monickels is offline   Reply With Quote
Old 01-27-2002, 09:30 AM   #6
Craig R. Arko
Site Admin
 
Join Date: Dec 2001
Location: Minneapolis, MN
Posts: 3,985
There's Sniffer (Aqua) - look on VersionTracker for ths packet sniffer;

Brickhouse (Aqua) - a GUI for the builtin firewall but with some good logging capabilities;

And the irrepressible Skwonk! from Stimpsoft, which plays background noises according to which IP port is being accessed, in real time.
Craig R. Arko is offline   Reply With Quote
Old 01-31-2002, 01:10 PM   #7
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
With fink you could also install "sniffit".

It has various functions that aren't offered in any other non-commercial sniffer.

Cheers...
sao is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Forum Jump



All times are GMT -5. The time now is 08:08 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.