Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / General / Networking / January 2005



Tip: Looking for answers? Try searching our database.

Trace TCP/IP data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robert - 27 Jan 2005 05:50 GMT
I am looking for a program to trace tcp/ip data that flows through my
modem.  Analysis of the data would be helpful.

Thanks.

Robert
D P Schreber - 27 Jan 2005 12:17 GMT
> I am looking for a program to trace tcp/ip data that flows through my
> modem.  Analysis of the data would be helpful.

The command line tool tcpdump is included with osx and does this very
well.  

If you want one with an X11 gui, try ethereal:

 http://sourceforge.net/projects/ethereal/
rccharles@my-deja.com - 29 Jan 2005 17:27 GMT
I tried to use tcpdump from the command and from the applescript.  I
believe that I need to specify the interface device.  I tried sudo
tcpdump -i cu.modem but tcpdump: BIOCSETIF: cu.modem: Device not
configured.  How would I find the unix  name for the modem?

Robert
D P Schreber - 29 Jan 2005 17:45 GMT
> I tried to use tcpdump from the command and from the applescript.  I
> believe that I need to specify the interface device.  I tried sudo
> tcpdump -i cu.modem but tcpdump: BIOCSETIF: cu.modem: Device not
> configured.  How would I find the unix  name for the modem?

Run ifconfig when the modem is connected, the device will be listed.
I've never used dialup in osx but it's probably something like ppp0.
Matt Broughton - 30 Jan 2005 01:05 GMT
> > I tried to use tcpdump from the command and from the applescript.  I
> > believe that I need to specify the interface device.  I tried sudo
[quoted text clipped - 3 lines]
> Run ifconfig when the modem is connected, the device will be listed.
> I've never used dialup in osx but it's probably something like ppp0.

That is exactly the right interface designation:

sudo tcpdump -i ppp0

Signature

Matt Broughton
Only relatives are absolute.

Gnarlodious - 27 Jan 2005 15:49 GMT
Entity Robert spoke thus:

> I am looking for a program to trace tcp/ip data that flows through my
> modem.  Analysis of the data would be helpful.

I've uploaded my script " AirportUsers" to:
<http://Gnarlodious.com/Apple/AppleScript/Scripts/AirportUsers/AirportUsers.
html>

It offers rudimentary control of the tcpdump command.
Works with Airport Extreme, not sure about other routers. Reports are
appreciated, I may change the name of it.

Launch the script and it starts tcpdump logging. After a while, click the
dock icon and it reports the IP of active machines on the router. You can
then choose to open the log file to see the details. More analysis is needed
but it should get you going.

To end logging bring Terminal to the front and press "ctrl-c"

-- Gnarlie's Applescript page:
http://Gnarlodious.com/Apple/AppleScript/
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.