Tcpdump: Command Line Options
Tcpdump: Command Line Options
Tcpdump: Command Line Options
com
TCPDUMP
-q
Quick output
-c <count>
-r <file>
-D
-s <len>
-e
-S
-F <file>
-t
-G <n>
-v[v[v]]
-i <iface>
-w <file>
-K
-x
-L
-X
-n
-y <type>
-p
-Z <user>
[tcp|udp] [src|dst] portrange <p1>-<p2> Matches TCP or UDP packets to/from a port in the given range
less <length>
greater <length>
(ether|ip) broadcast
(ether|ip|ip6) multicast
type (mgt|ctl|data) [subtype <subtype>] Matches 802.11 frames based on type and optional subtype
vlan [<vlan>]
mpls [<label>]
Protocols
Modifiers
arp
ip6
slip
ether
link
tcp
fddi
ppp
tr
icmp
radio
udp
ip
rarp
wlan
TCP Flags
! or not
&& or and
|| or or
Examples
udp dst port not 53
ICMP Types
icmp-echoreply
icmp-routeradvert
icmp-tstampreply
icmp-unreach
icmp-routersolicit
icmp-ireq
tcp-urg
tcp-rst
icmp-sourcequench
icmp-timxceed
icmp-ireqreply
tcp-ack
tcp-syn
icmp-redirect
icmp-paramprob
icmp-maskreq
tcp-psh
tcp-fin
icmp-echo
icmp-tstamp
icmp-maskreply
v2.0