Packet Captures: Difference between revisions

Content added Content deleted
Line 259: Line 259:
== TCPDump Filters==
== TCPDump Filters==
Source: [[http://www.thegeekstuff.com/2010/08/tcpdump-command-examples/ thegeekstuff.com]]
Source: [[http://www.thegeekstuff.com/2010/08/tcpdump-command-examples/ thegeekstuff.com]]
{| class="wikitable"

|-
* General TCPDump command:
! Header text !! Header text
|-
General TCPDump command
tcpdump -s 0 -w packet_capture.cap
tcpdump -s 0 -w packet_capture.cap


Line 303: Line 306:
*Filter Packets – Capture all the packets other than arp and rarp
*Filter Packets – Capture all the packets other than arp and rarp
tcpdump -i eth0 not arp and not rarp
tcpdump -i eth0 not arp and not rarp

|}
“and”, “or” and “not” condition are used to filter the packets
“and”, “or” and “not” condition are used to filter the packets
<br />
<br />