Skip to content

tcpdump

capture all traffic

filter for all traffic on an individual interface:

tcpdump -i eth23 -n

filter for protocol

filter for gre (protocol 47) traffic on all interfaces:

tcpdump -i any -n proto 47

filter specific port

filter for specific port:

tcpdump -i eth23 -n port 22