LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-23-2005, 10:23 PM   #1
ericthebikeman
LQ Newbie
 
Registered: Mar 2005
Location: Bork, Bork, Bork
Posts: 10

Rep: Reputation: 0
Using Tethereal to diagnose Samba Traffic


I've been having problems with Samba and the new 64 bit version of XP. A couple of the Samba developers have requested a dump of the raw packets between the Windows and Linux box during login.
I was thinking Ethereal on the windows box but then login would be impossible, Ethereal also has the problem of not having 64 bit capture drivers. I tried tethereal on the linux box but anything I dump is in the wrong format, I've been told text files are "worthless" when it comes to diagnostics.

So what command should I use to get the packets I need to send off to the developers? It has to dump to a file at some point since it will inevitably flood the console's buffer.

Here's the commands I've already done and were rejected so now I'm getting frustrated.
tethereal -i 3 -z smb,rtt,ip.addr==192.168.1.6 -f tcp port 137 or tcp port 137 or port 138 or tcp port 139 or tcp port 445 -s 2000

tethereal -i 3 -z smb,rtt,ip.addr==192.168.1.6 -f tcp port 137 or tcp port 137 or port 138 or tcp port 139 or tcp port 445 -w scan
 
Old 05-24-2005, 12:28 AM   #2
YetAnotherDave
Member
 
Registered: Feb 2005
Posts: 95

Rep: Reputation: 17
This should work on the linux box ( as root ):

tcpdump -i eth0 -s 0 -w dumpFile.tcp

Substitute the appropriate interface name for "eth0" and whatever output file name you want for "dumpFile.tcp". You need the "-s 0" so that long packets don't get cut off.


This will generate a pcap format file that captures all the packets that come in on the specified interface while the tcpdump is running.

I wouldn't worry about trying to filter by port or anything else. The people who you pass the file to can process it in ethereal or tethereal or whatever and do their own filtering as a post processing step.

- Dave
 
Old 05-24-2005, 09:23 AM   #3
ericthebikeman
LQ Newbie
 
Registered: Mar 2005
Location: Bork, Bork, Bork
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Display Protocol Hierarchy Statistics with tethereal powah Linux - Software 0 08-22-2005 11:35 AM
How can I monitor all AIM traffic with ethereal/tethereal? abefroman Linux - Security 6 05-17-2005 06:54 PM
tethereal on wireless malckelly Linux - Wireless Networking 0 11-03-2004 05:55 AM
tethereal capture filter?? rgarner Linux - Software 5 10-22-2004 03:23 PM
Samba performance, traffic control sokol Linux - Newbie 1 10-30-2003 07:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration