LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-06-2014, 05:52 AM   #1
jmishal
LQ Newbie
 
Registered: Jun 2008
Posts: 19

Rep: Reputation: 0
"tcpdump -r -" option on ngrep


Hello

i have mikrotik router and I need to get some traffic info from it but doesn't have tools to cut it, as i need
the best way is stream the traffic to the a Linux box. The Mikrotik router has this facility just set the linux server ip which i want to stream to and download tools called trafr from mikrotik site and run it*on the Linux box

--------*
Mikrotil >Stream trafic send to > linuxbox*


and from linux box i run

#./trafr -s | /usr/sbin/tcpdump -A -n -r -

and i got all i need
but i actuality found the ngrep powerful and useful in finding out what’s i need on my network better than tcpdump*
so how can i run ngrep instead of tcpdump

as i understood from tcpdump with -r - option is " -r Read packets from file (which was created with the -w option). Standard input is used if file is ``-''."
can i have the same on ngrep ?

Last edited by jmishal; 09-06-2014 at 05:54 AM.
 
Old 09-06-2014, 06:37 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by jmishal View Post
can i have the same on ngrep ?
Either read the ngrep source code, or read 'man ngrep' (as in "-I -") or just test it by replaying saved traffic and piping it through ngrep.
 
Old 09-06-2014, 12:12 PM   #3
jmishal
LQ Newbie
 
Registered: Jun 2008
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
Either read the ngrep source code, or read 'man ngrep' (as in "-I -") or just test it by replaying saved traffic and piping it through ngrep.

yes working fine

thanks
 
  


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
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 02:03 AM
ngrep install error "couldn't find a complete set of pcap headers" packetsmacker Linux - Server 5 08-17-2012 04:16 PM
unpredictable "delete" "move to trash" or "cut" file menu option dorianrenato Linux - General 3 11-28-2011 07:41 PM
Windows equivalents for "tcpdump" or "whois"? zahadumy General 12 06-23-2006 04:48 PM

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

All times are GMT -5. The time now is 02:22 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