How can I see UFW rules in Ubuntu? Hence, on Ubuntu 16.04 you can use this: sudo grep ‘^### tuple’ /etc/ufw/user*. rules for the formatted list of user added rules.
How do you list the rules for UFW? UFW has no dedicated command to list rules but uses its primary command ufw status to give you an overview of the firewall along with the list of rules. Moreover, you can’t list the rules when the firewall is inactive. The status shows the rules being enforced as of that moment.
How do I check my UFW firewall rules? At any time, you can check the status of UFW with this command: sudo ufw status verbose.
Where are UFW rules stored? The rules that ufw follows are stored in the /etc/ufw directory. Note that you need root access to view these files and that each contains a large number of rules. All in all, ufw is both easy to configure and easy to understand.