

Tcpdump comes on OSX (or if it doesn’t, something installed it without me knowing!). So I’m having trouble with connection times spiking to an Amazon Web Services ELB, so it’s time to break out the tcpdump to take packet traces and the wireshark (was ethereal long ago) to analyze it. Wireshark has also been able to read them for several releases.I’m going to start sharing little techie tidbits that require me to go scour the Internet for exactly how to do them, in hopes of making you able to do it in a lot less time than it took me!

Note that versions of OS X dating back to Lion, newer versions of FreeBSD/NetBSD/DragonFly BSD, and newer versions of many Linux distributions include libpcap 1.1.1 or later, which means that programs using libpcap to read capture files can read many pcap-ng files. So you need to specify an interface on which to capture. To the input and output routines of the IPv4 and IPv6 protocol Note that captures on a ptkap pseudo interface willĪn interface argument of "iptap" can be used to capture packetsįrom at the IP layer. Use the legacy pcap-savefile(5) file format with a ptkap pseudo The RAW data link type must be used to force to Optional list of comma separated interface names to include.įor example, to capture on the loopback and en0 interface:Īn interface argument of "all" or "pktap,all" can be used toĬapture packets from all interfaces, including loopback and tun-Ī pktap pseudo interface provides for packet metadata using theĭefault PKTAP data link type and files are written in the Pcap. One may use "pktap" as the interface parameter followed by an (excludes by default loopback and tunnel interfaces).Īlternatively, to capture on more than one interface at a time, Packets on a set of interfaces determined by the kernel Unspecified, tcpdump will use a pseudo interface to capture On Darwin systems version 13 or later, when the interface is That flag can be used as the interface argument. If the -D flag is supported, an interface number as printed by

The tcpdump man page on Mavericks says: -i Listen on interface.
