A tool to capture packets.

Packet Capture

dumpcap -i 1 -w ./mydir -b filesize:500000