👤
Home Man
Search
Today's Posts
Register

Please post your urgent questions here for highest visibility. Posting a new thread to this forum requires Bits. We monitor this forum to help people with emergencies, but we do not guarantee response time or answers. This forum is "best effort" only. Members who reply to posts here receive a bonus of 1000 Bits per reply.

Port flow capture

👤 Login to reply

 
Thread Tools Search this Thread
# 1  
Old 05-11-2015
Port flow capture

I am trying to get an output using the command
Code:
 tcpdump -w /tmp/syn.pcap 'tcp[tcpflags] & (tcp-syn) != 0'

But I am getting the error:
Code:
tcpdump: no suitable device found

Is there an alternate command to achieve this?

Last edited by Don Cragun; 05-11-2015 at 04:01 PM.. Reason: Add missing CODE tags.
# 2  
Old 05-11-2015
Are you root?
# 3  
Old 05-11-2015
Yes I am root.
# 4  
Old 05-11-2015
Traditionally, you must specify a device. Therefore

Code:
tcpdump -i eth0 -w /tmp/syn.pcap 'tcp[tcpflags] & (tcp-syn) != 0'

But that assumes you want it from eth0. Maybe you want it from wlan0. But maybe your system currently has no interfaces that are up. That would explain why you're not seeing any tcp packets and are resorting to tcpdump in the first place.

Also, the output will be to that file so you won't know it's working right away. Try it without -w... until you get some output.
# 5  
Old 05-11-2015
tcpdump: BIOCVERSION: Invalid argument is the output I get
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to find port number wwn of particular port on dual port HBA,? sb200 Solaris 3 07-14-2015 12:05 PM
Will this flow work ezee Shell Programming and Scripting 2 02-06-2012 06:57 AM
Flow Control in CSH Manju87 Shell Programming and Scripting 1 08-30-2011 12:48 PM
i want trace the c program flow in unix prakash.tau Programming 1 02-11-2011 03:15 AM
Creating a printer emulator to capture PDL/PCL data coming in on port 9100. transistor IP Networking 7 01-22-2010 06:45 PM
Understanding Logic and Flow better SirDonkeyPunch Shell Programming and Scripting 6 07-01-2009 04:11 PM
buffer over flow detected littleboyblu Programming 1 04-09-2009 10:19 AM
Flow Chart sabari Programming 1 04-12-2006 01:57 AM
dilemma in control flow tej.buch Programming 2 02-10-2006 09:41 AM
Flow of Unix System spanglerbrod Security 1 05-21-2002 03:11 AM


All times are GMT -4. The time now is 08:12 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password