LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-18-2009, 01:31 PM   #1
swaroop.tata
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Rep: Reputation: 0
How to use ethreal in linux


Hi,

I want capture some packets using ethreal. Could some one please let me know how can i do that..? What are the commands.

Thanks
Swaroop
 
Old 05-18-2009, 01:56 PM   #2
tuxtroll
LQ Newbie
 
Registered: May 2009
Posts: 11
Blog Entries: 1

Rep: Reputation: 0
you can run ethereal / wireshark ( on newer systems ) from linux console.
or you can directly run tcpdump -i <interface_name> if you want to capture on the console itself
 
Old 05-18-2009, 02:12 PM   #3
swaroop.tata
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you. Here is my actual requirement. While a file (Really large file) is being copied from one server to another, i want to capture those packets(Few of them). Is filtering based on a particular IP possible by ethreal..?. Is there some way that i can drop a packet while scp is in progress..? Is this possible using ethreal.?

Thanks
Swaroop T
 
Old 05-18-2009, 02:50 PM   #4
mwkemo
Member
 
Registered: May 2009
Location: Croatia
Distribution: Debian
Posts: 31

Rep: Reputation: 16
Quote:
Originally Posted by swaroop.tata View Post
...Is filtering based on a particular IP possible by ethreal...
Yes, that is possible.I know that you can save all the packets from the traffic in single file, and then analyze the packets with the IP filter. As far as i remember you can put filter "on the fly" while trafic is captured in order to preserve the disk space.

Quote:
Originally Posted by swaroop.tata View Post
...Is there some way that i can drop a packet while scp is in progress...
Not of my interest, but my answer depends on your answer. Why would you drop packets for that particular file? You can CTRL+C on terminal while scp is in progress:-)
 
Old 05-19-2009, 01:13 AM   #5
tuxtroll
LQ Newbie
 
Registered: May 2009
Posts: 11
Blog Entries: 1

Rep: Reputation: 0
if you randomly want to drop packets in between, you can use iptables to do that and then flush the iptables entry when you want to allow them . But TCP should be able to take care of it by retransmission.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
can i use netcat as ethreal mallikk_in Linux - Networking 1 05-17-2007 03:05 PM
How to capture BDPU using ethreal? LinuxLala Linux - General 0 04-06-2004 05:54 AM


All times are GMT -5. The time now is 04:54 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration