Linux Networking Admin Cheat Sheet/Capture traffic on interface

Capture packets on a specific interface.

Section: Traffic Capture and Firewall Inspection

Capture traffic on interface

bash
bash
sudo tcpdump -i eth0
Explanation

Start broad, then add host, port, or protocol filters.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Traffic Capture and Firewall Inspection
Capture traffic by host and port
Limit packet capture to a host and service port.
OpenIn sheetbashsame section
List iptables rules
Inspect IPv4 firewall rules.
OpenIn sheetbashsame section
List nftables ruleset
Inspect modern nftables configuration.
OpenIn sheetbashsame section
Show UFW status
Inspect uncomplicated firewall state.
OpenIn sheetbashsame section
Show firewalld settings
Inspect zones and allowed services.
OpenIn sheetbashsame section
Show brief interface summary
List interfaces with addresses concisely.
OpenIn sheetbash1 tag match