How to enable/disable firewall on Ubuntu 18.04 Bionic Beaver Linux - LinuxConfig.org

By default the UFW is disabled. You can check the status of your firewall by executing the following linux command:
$ sudo ufw status
[sudo] password for linuxconfig: 
Status: inactive

This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-enable-disable-firewall-on-ubuntu-18-04-bionic-beaver-linux