# tcpdump -i eth1 <- eth0 is default interface. # tcpdump -i any # tcpdump -n udp port 53 -i any <- Check DNS # tcpdump -n port 53 -i any <- Check DNS # tcpdump -n port 2049 -i any <- Check NFS # tcpdump -n not port 22 # tcpdump -n not arp and not port 22 # tcpdump -n not arp and not port 123 and not port 22 # tcpdump -n not host 192.168.100.10
# tcpdump -D # 利用できるNICの一覧
-A ASCII文字で表示を行う。
# tcpdump -s0 -A dst port 80
# tcpdump -s0 -A host 192.168.0.10 and \(port 20 or port 21\)
# tcpdump -s0 -A host 192.168.0.10 and port 23
# tcpdump -s0 -A -n host 192.168.0.10 -w test.pcap # tcpdump -s0 -A -n host 192.168.0.10 and \(port 80 or port 443 \) -w test.pcap