Linux networking · Packet capture and firewall
List iptables rules
Show the filter table rules with counters and numeric addresses.
sudo iptables -L -n -v
Official Linux networking documentation
More packet capture and firewall commands
- Capture traffic on an interface
- Capture traffic for a port
- Save a capture for Wireshark
- Show the firewall rules (ufw)
- Allow a port (ufw)
- Turn the firewall on (ufw)
All packet capture and firewall commands · Linux networking cheatsheet