SlideShare ist ein Scribd-Unternehmen logo
1 von 1
TCPDUMP                                                                                              packetlife.net
                                                Command Line Options
-A               Print frame payload in ASCII                 -q            Quick output
-c <count>       Exit after capturing count packets           -r <file>     Read packets from file
-D               List available interfaces                    -s <len>      Capture up to len bytes per packet
-e               Print link-level headers                     -S            Print absolute TCP sequence numbers
-F <file>        Use file as the filter expression            -t            Don't print timestamps
-G <n>           Rotate the dump file every n seconds         -v[v[v]]      Print more verbose output
-i <iface>       Specifies the capture interface              -w <file>     Write captured packets to file
-K               Don't verify TCP checksums                   -x            Print frame payload in hex
-L               List data link types for the interface       -X            Print frame payload in hex and ASCII
-n               Don't convert addresses to names             -y <type>     Specify the data link type
-p               Don't capture in promiscuous mode            -Z <user>     Drop privileges from root to user

                                               Capture Filter Primitives
[src|dst] host <host>                                Matches a host as the IP source, destination, or either
ether [src|dst] host <ehost>                         Matches a host as the Ethernet source, destination, or either
gateway host <host>                                  Matches packets which used host as a gateway
[src|dst] net <network>/<len>                        Matches packets to or from an endpoint residing in network
[tcp|udp] [src|dst] port <port>                      Matches TCP or UDP packets sent to/from port
[tcp|udp] [src|dst] portrange <p1>-<p2> Matches TCP or UDP packets to/from a port in the given range
less <length>                                        Matches packets less than or equal to length
greater <length>                                     Matches packets greater than or equal to length
(ether|ip|ip6) proto <protocol>                      Matches an Ethernet, IPv4, or IPv6 protocol
(ether|ip) broadcast                                 Matches Ethernet or IPv4 broadcasts
(ether|ip|ip6) multicast                             Matches Ethernet, IPv4, or IPv6 multicasts
type (mgt|ctl|data) [subtype <subtype>] Matches 802.11 frames based on type and optional subtype
vlan [<vlan>]                                        Matches 802.1Q frames, optionally with a VLAN ID of vlan
mpls [<label>]                                       Matches MPLS packets, optionally with a label of label
<expr> <relop> <expr>                                Matches packets by an arbitrary expression

          Protocols                 Modifiers                                  Examples
arp        ip6        slip          ! or not         udp dst port not 53                   UDP not bound for port 53
ether      link       tcp           && or and        host 10.0.0.1 && host 10.0.0.2 Traffic between these hosts
fddi       ppp        tr            || or or         tcp dst port 80 or 8080               Packets to either TCP port
icmp       radio      udp                                             ICMP Types
ip         rarp       wlan        icmp-echoreply               icmp-routeradvert            icmp-tstampreply
          TCP Flags               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


by Jeremy Stretch                                                                                                 v2.0

Weitere ähnliche Inhalte

Was ist angesagt?

2015 FOSDEM - OVS Stateful Services
2015 FOSDEM - OVS Stateful Services2015 FOSDEM - OVS Stateful Services
2015 FOSDEM - OVS Stateful ServicesThomas Graf
 
Simulation and Performance Analysis of AODV using NS-2.34
Simulation and Performance Analysis of AODV using NS-2.34Simulation and Performance Analysis of AODV using NS-2.34
Simulation and Performance Analysis of AODV using NS-2.34Shaikhul Islam Chowdhury
 
Bandwidth Efficiency Improvement for Online Games by the use of Tunneling, Co...
Bandwidth Efficiency Improvement for Online Games by the use of Tunneling, Co...Bandwidth Efficiency Improvement for Online Games by the use of Tunneling, Co...
Bandwidth Efficiency Improvement for Online Games by the use of Tunneling, Co...Jose Saldana
 
Linux Linux Traffic Control
Linux Linux Traffic ControlLinux Linux Traffic Control
Linux Linux Traffic ControlSUSE Labs Taipei
 
The Next Generation Firewall for Red Hat Enterprise Linux 7 RC
The Next Generation Firewall for Red Hat Enterprise Linux 7 RCThe Next Generation Firewall for Red Hat Enterprise Linux 7 RC
The Next Generation Firewall for Red Hat Enterprise Linux 7 RCThomas Graf
 
Tcp congestion control (1)
Tcp congestion control (1)Tcp congestion control (1)
Tcp congestion control (1)Abdo sayed
 
Bar-BoF session about Simplemux at IETF93, Prague
Bar-BoF session about Simplemux at IETF93, PragueBar-BoF session about Simplemux at IETF93, Prague
Bar-BoF session about Simplemux at IETF93, PragueJose Saldana
 
Protocol implementation on NS2
Protocol implementation on NS2Protocol implementation on NS2
Protocol implementation on NS2amreshrai02
 
Influence of Online Games Traffic Multiplexing and Router Buffer on Subjectiv...
Influence of Online Games Traffic Multiplexing and Router Buffer on Subjectiv...Influence of Online Games Traffic Multiplexing and Router Buffer on Subjectiv...
Influence of Online Games Traffic Multiplexing and Router Buffer on Subjectiv...Jose Saldana
 
Introduction to tcp ip linux networking
Introduction to tcp ip   linux networkingIntroduction to tcp ip   linux networking
Introduction to tcp ip linux networkingSreenatha Reddy K R
 
LinuxCon 2015 Linux Kernel Networking Walkthrough
LinuxCon 2015 Linux Kernel Networking WalkthroughLinuxCon 2015 Linux Kernel Networking Walkthrough
LinuxCon 2015 Linux Kernel Networking WalkthroughThomas Graf
 
Assignment cn tl
Assignment cn tlAssignment cn tl
Assignment cn tlH K
 

Was ist angesagt? (18)

Scapy
ScapyScapy
Scapy
 
Network sockets
Network socketsNetwork sockets
Network sockets
 
2015 FOSDEM - OVS Stateful Services
2015 FOSDEM - OVS Stateful Services2015 FOSDEM - OVS Stateful Services
2015 FOSDEM - OVS Stateful Services
 
Tc basics
Tc basicsTc basics
Tc basics
 
transport protocols
transport protocolstransport protocols
transport protocols
 
Simulation and Performance Analysis of AODV using NS-2.34
Simulation and Performance Analysis of AODV using NS-2.34Simulation and Performance Analysis of AODV using NS-2.34
Simulation and Performance Analysis of AODV using NS-2.34
 
Bandwidth Efficiency Improvement for Online Games by the use of Tunneling, Co...
Bandwidth Efficiency Improvement for Online Games by the use of Tunneling, Co...Bandwidth Efficiency Improvement for Online Games by the use of Tunneling, Co...
Bandwidth Efficiency Improvement for Online Games by the use of Tunneling, Co...
 
Linux Linux Traffic Control
Linux Linux Traffic ControlLinux Linux Traffic Control
Linux Linux Traffic Control
 
The Next Generation Firewall for Red Hat Enterprise Linux 7 RC
The Next Generation Firewall for Red Hat Enterprise Linux 7 RCThe Next Generation Firewall for Red Hat Enterprise Linux 7 RC
The Next Generation Firewall for Red Hat Enterprise Linux 7 RC
 
Tcp congestion control (1)
Tcp congestion control (1)Tcp congestion control (1)
Tcp congestion control (1)
 
Bar-BoF session about Simplemux at IETF93, Prague
Bar-BoF session about Simplemux at IETF93, PragueBar-BoF session about Simplemux at IETF93, Prague
Bar-BoF session about Simplemux at IETF93, Prague
 
Protocol implementation on NS2
Protocol implementation on NS2Protocol implementation on NS2
Protocol implementation on NS2
 
Influence of Online Games Traffic Multiplexing and Router Buffer on Subjectiv...
Influence of Online Games Traffic Multiplexing and Router Buffer on Subjectiv...Influence of Online Games Traffic Multiplexing and Router Buffer on Subjectiv...
Influence of Online Games Traffic Multiplexing and Router Buffer on Subjectiv...
 
Introduction to tcp ip linux networking
Introduction to tcp ip   linux networkingIntroduction to tcp ip   linux networking
Introduction to tcp ip linux networking
 
lec9_ref.pdf
lec9_ref.pdflec9_ref.pdf
lec9_ref.pdf
 
LinuxCon 2015 Linux Kernel Networking Walkthrough
LinuxCon 2015 Linux Kernel Networking WalkthroughLinuxCon 2015 Linux Kernel Networking Walkthrough
LinuxCon 2015 Linux Kernel Networking Walkthrough
 
Understanding iptables
Understanding iptablesUnderstanding iptables
Understanding iptables
 
Assignment cn tl
Assignment cn tlAssignment cn tl
Assignment cn tl
 

Ähnlich wie Tcpdump

Tcp Ip Overview
Tcp Ip OverviewTcp Ip Overview
Tcp Ip OverviewAmir Malik
 
Wireshark, Tcpdump and Network Performance tools
Wireshark, Tcpdump and Network Performance toolsWireshark, Tcpdump and Network Performance tools
Wireshark, Tcpdump and Network Performance toolsSachidananda Sahu
 
Win pcap filtering expression syntax
Win pcap  filtering expression syntaxWin pcap  filtering expression syntax
Win pcap filtering expression syntaxVota Ppt
 
Arp Dan Ipconfig Syntax
Arp Dan Ipconfig  SyntaxArp Dan Ipconfig  Syntax
Arp Dan Ipconfig Syntaxguestcc37e8c
 
Tc pdump mod
Tc pdump modTc pdump mod
Tc pdump modSini
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commandsAniket Thakur
 
Course on TCP Dynamic Performance
Course on TCP Dynamic PerformanceCourse on TCP Dynamic Performance
Course on TCP Dynamic PerformanceJavier Arauz
 
DEF CON 27 - workshop - HUGO TROVAO and RUSHIKESH NADEDKAR - scapy dojo v1
DEF CON 27 - workshop - HUGO TROVAO and RUSHIKESH NADEDKAR - scapy dojo v1DEF CON 27 - workshop - HUGO TROVAO and RUSHIKESH NADEDKAR - scapy dojo v1
DEF CON 27 - workshop - HUGO TROVAO and RUSHIKESH NADEDKAR - scapy dojo v1Felipe Prado
 
Tutorial of SF-TAP Flow Abstractor
Tutorial of SF-TAP Flow AbstractorTutorial of SF-TAP Flow Abstractor
Tutorial of SF-TAP Flow AbstractorYuuki Takano
 
Abandon Decades-Old TCPdump for Modern Troubleshooting
Abandon Decades-Old TCPdump for Modern TroubleshootingAbandon Decades-Old TCPdump for Modern Troubleshooting
Abandon Decades-Old TCPdump for Modern TroubleshootingAvi Networks
 
Tomasz P from Poland
Tomasz P from PolandTomasz P from Poland
Tomasz P from Polandirenazd
 
Computer network (12)
Computer network (12)Computer network (12)
Computer network (12)NYversity
 
PLNOG 13: P. Kupisiewicz, O. Pelerin: Make IOS-XE Troubleshooting Easy – Pack...
PLNOG 13: P. Kupisiewicz, O. Pelerin: Make IOS-XE Troubleshooting Easy – Pack...PLNOG 13: P. Kupisiewicz, O. Pelerin: Make IOS-XE Troubleshooting Easy – Pack...
PLNOG 13: P. Kupisiewicz, O. Pelerin: Make IOS-XE Troubleshooting Easy – Pack...PROIDEA
 

Ähnlich wie Tcpdump (20)

TCPDUMP
TCPDUMPTCPDUMP
TCPDUMP
 
Tcpdump
TcpdumpTcpdump
Tcpdump
 
CN 1.docx
CN 1.docxCN 1.docx
CN 1.docx
 
Tcpdump
TcpdumpTcpdump
Tcpdump
 
nwlab-ex1.pdf
nwlab-ex1.pdfnwlab-ex1.pdf
nwlab-ex1.pdf
 
Tcp Ip Overview
Tcp Ip OverviewTcp Ip Overview
Tcp Ip Overview
 
Wireshark, Tcpdump and Network Performance tools
Wireshark, Tcpdump and Network Performance toolsWireshark, Tcpdump and Network Performance tools
Wireshark, Tcpdump and Network Performance tools
 
Win pcap filtering expression syntax
Win pcap  filtering expression syntaxWin pcap  filtering expression syntax
Win pcap filtering expression syntax
 
Arp Dan Ipconfig Syntax
Arp Dan Ipconfig  SyntaxArp Dan Ipconfig  Syntax
Arp Dan Ipconfig Syntax
 
Tc pdump mod
Tc pdump modTc pdump mod
Tc pdump mod
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Course on TCP Dynamic Performance
Course on TCP Dynamic PerformanceCourse on TCP Dynamic Performance
Course on TCP Dynamic Performance
 
DEF CON 27 - workshop - HUGO TROVAO and RUSHIKESH NADEDKAR - scapy dojo v1
DEF CON 27 - workshop - HUGO TROVAO and RUSHIKESH NADEDKAR - scapy dojo v1DEF CON 27 - workshop - HUGO TROVAO and RUSHIKESH NADEDKAR - scapy dojo v1
DEF CON 27 - workshop - HUGO TROVAO and RUSHIKESH NADEDKAR - scapy dojo v1
 
Tutorial of SF-TAP Flow Abstractor
Tutorial of SF-TAP Flow AbstractorTutorial of SF-TAP Flow Abstractor
Tutorial of SF-TAP Flow Abstractor
 
Abandon Decades-Old TCPdump for Modern Troubleshooting
Abandon Decades-Old TCPdump for Modern TroubleshootingAbandon Decades-Old TCPdump for Modern Troubleshooting
Abandon Decades-Old TCPdump for Modern Troubleshooting
 
Tomasz P from Poland
Tomasz P from PolandTomasz P from Poland
Tomasz P from Poland
 
Services
ServicesServices
Services
 
Computer network (12)
Computer network (12)Computer network (12)
Computer network (12)
 
PLNOG 13: P. Kupisiewicz, O. Pelerin: Make IOS-XE Troubleshooting Easy – Pack...
PLNOG 13: P. Kupisiewicz, O. Pelerin: Make IOS-XE Troubleshooting Easy – Pack...PLNOG 13: P. Kupisiewicz, O. Pelerin: Make IOS-XE Troubleshooting Easy – Pack...
PLNOG 13: P. Kupisiewicz, O. Pelerin: Make IOS-XE Troubleshooting Easy – Pack...
 
Netkitmig
NetkitmigNetkitmig
Netkitmig
 

Mehr von Mohamed Gamel (20)

Vyatta subnet range_cheat_sheet
Vyatta subnet range_cheat_sheetVyatta subnet range_cheat_sheet
Vyatta subnet range_cheat_sheet
 
Voip basics
Voip basicsVoip basics
Voip basics
 
Vla ns
Vla nsVla ns
Vla ns
 
Spanning tree
Spanning treeSpanning tree
Spanning tree
 
Rip
RipRip
Rip
 
Qo s
Qo sQo s
Qo s
 
Ppp
PppPpp
Ppp
 
Physical terminations
Physical terminationsPhysical terminations
Physical terminations
 
Ospf
OspfOspf
Ospf
 
Nat
NatNat
Nat
 
Media wiki
Media wikiMedia wiki
Media wiki
 
Markdown
MarkdownMarkdown
Markdown
 
Is is
Is isIs is
Is is
 
I pv6
I pv6I pv6
I pv6
 
I pv4 subnetting
I pv4 subnettingI pv4 subnetting
I pv4 subnetting
 
I pv4 multicast
I pv4 multicastI pv4 multicast
I pv4 multicast
 
I psec
I psecI psec
I psec
 
Ios zone based-firewall
Ios zone based-firewallIos zone based-firewall
Ios zone based-firewall
 
Ios i pv4_access_lists
Ios i pv4_access_listsIos i pv4_access_lists
Ios i pv4_access_lists
 
Ios interior routing_protocols
Ios interior routing_protocolsIos interior routing_protocols
Ios interior routing_protocols
 

Tcpdump

  • 1. TCPDUMP packetlife.net Command Line Options -A Print frame payload in ASCII -q Quick output -c <count> Exit after capturing count packets -r <file> Read packets from file -D List available interfaces -s <len> Capture up to len bytes per packet -e Print link-level headers -S Print absolute TCP sequence numbers -F <file> Use file as the filter expression -t Don't print timestamps -G <n> Rotate the dump file every n seconds -v[v[v]] Print more verbose output -i <iface> Specifies the capture interface -w <file> Write captured packets to file -K Don't verify TCP checksums -x Print frame payload in hex -L List data link types for the interface -X Print frame payload in hex and ASCII -n Don't convert addresses to names -y <type> Specify the data link type -p Don't capture in promiscuous mode -Z <user> Drop privileges from root to user Capture Filter Primitives [src|dst] host <host> Matches a host as the IP source, destination, or either ether [src|dst] host <ehost> Matches a host as the Ethernet source, destination, or either gateway host <host> Matches packets which used host as a gateway [src|dst] net <network>/<len> Matches packets to or from an endpoint residing in network [tcp|udp] [src|dst] port <port> Matches TCP or UDP packets sent to/from port [tcp|udp] [src|dst] portrange <p1>-<p2> Matches TCP or UDP packets to/from a port in the given range less <length> Matches packets less than or equal to length greater <length> Matches packets greater than or equal to length (ether|ip|ip6) proto <protocol> Matches an Ethernet, IPv4, or IPv6 protocol (ether|ip) broadcast Matches Ethernet or IPv4 broadcasts (ether|ip|ip6) multicast Matches Ethernet, IPv4, or IPv6 multicasts type (mgt|ctl|data) [subtype <subtype>] Matches 802.11 frames based on type and optional subtype vlan [<vlan>] Matches 802.1Q frames, optionally with a VLAN ID of vlan mpls [<label>] Matches MPLS packets, optionally with a label of label <expr> <relop> <expr> Matches packets by an arbitrary expression Protocols Modifiers Examples arp ip6 slip ! or not udp dst port not 53 UDP not bound for port 53 ether link tcp && or and host 10.0.0.1 && host 10.0.0.2 Traffic between these hosts fddi ppp tr || or or tcp dst port 80 or 8080 Packets to either TCP port icmp radio udp ICMP Types ip rarp wlan icmp-echoreply icmp-routeradvert icmp-tstampreply TCP Flags 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 by Jeremy Stretch v2.0