Verbose with packet content
Full verbose output with ASCII packet content for PostgreSQL
tcpdump -i eth0 -vvv -A -s 0 port 5432
- tool
- tcpdump18 commands
More tcpdump commands
-
tcpdump -i eth0 -c 100 -w capture.pcapStop after capturing 100 packets
-
tcpdump -nn 'tcp[tcpflags] & (tcp-syn|tcp-ack) == tcp-syn'Catch only connection-initiating SYNs (no SYN-ACK) to spot scans or backlog floods
-
tcpdump -nn 'tcp[tcpflags] & (tcp-syn|tcp-fin) != 0'Show only connection open/close packets to trace short-lived churning sessions
-
tcpdump -nn -i any host <ip> and not port 22Watch traffic to/from a host while dropping your own SSH session noise
-
tcpdump -nn -s 0 -X -i any port <port>Inspect full packet bodies in hex+ascii; -s 0 ensures no snaplen truncation