CharlieC3
9/26/2016 - 8:12 PM

Get packet dump of interaction between servers. Good for connection debugging

Get packet dump of interaction between servers. Good for connection debugging

#!/bin/bash

# -n does not convert IP to hostname
# -w write to output file, pcap is correct format. Can be read by wireshark
# -i interface
# dst destination
tcpdump -n -w tcpdump-hostname.pcap -i eth0 dst <hostname or IP>