This article explains how to work with UFW, a Linux Firewall, and how to list active and inactive rules.