Linux Networking Admin Cheat Sheet/Capture traffic by host and port

Limit packet capture to a host and service port.

Section: Traffic Capture and Firewall Inspection

Capture traffic by host and port

bash
bash
sudo tcpdump -i any host 10.0.0.10 and port 443
Explanation

Useful for focusing on one problematic connection.

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 on interface
Capture packets on a specific interface.
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