Inspect uncomplicated firewall state.

Section: Traffic Capture and Firewall Inspection

Show UFW status

bash
bash
sudo ufw status verbose
Explanation

Common on Ubuntu servers and personal Linux systems.

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
List iptables rules
Inspect IPv4 firewall rules.
OpenIn sheetbashsame section
List nftables ruleset
Inspect modern nftables configuration.
OpenIn sheetbashsame section
Show firewalld settings
Inspect zones and allowed services.
OpenIn sheetbashsame section
Capture traffic on interface
Capture packets on a specific interface.
OpenIn sheetbashsame section
Capture traffic by host and port
Limit packet capture to a host and service port.
OpenIn sheetbashsame section
Show brief interface summary
List interfaces with addresses concisely.
OpenIn sheetbash1 tag match