How to deny all incoming ports except SSH port 22 on Ubuntu 18.04 Bionic Beaver Linux - LinuxConfig.org

The objective is to enable UFW firewall, deny all incoming ports however only allow SSH port 22 on Ubuntu 18.04 Bionic Beaver Linux.


This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-deny-all-incoming-ports-except-ssh-port-22-on-ubuntu-18-04-bionic-beaver-linux