Generic Commands Tcpdump
Generic Commands Tcpdump
tcpdump -i <interface> -s 65535 -w <file> #to open the file with wireshark
#samples
tcpdump -nvvi any host 172.16.16.17 #to check traffic received by the
firewall from the .17 ip address
tcpdump -i eth1 host 192.168.1.25 and port 80 #to filter also by network
interface
tcpdump -nn port 80 -s0 -w /log/capture.pcap –btcpdump #to write the pcap
file –advanced shell command
nohup tcpdump -veni any -As0 -xX -bw /tmp/capture.pcap -W50 -C 10 &&
tcpdump -i any -w /persist/tmp/filename.tcpdump
# FINGERPRINTING - p0f
/usr/local/bin/p0f -S -l -s /persist/tmp/tcpdump.pcap