Linux networking · Packet capture and firewall
Show the firewall rules (ufw)
Show the status and numbered rules of Ubuntu's firewall front end.
sudo ufw status numbered
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
- Allow a port (ufw)
- Turn the firewall on (ufw)
- List nftables rules
All packet capture and firewall commands · Linux networking cheatsheet