Setup Firewall for Ubuntu 18.04

July 19, 2019

Enable firewall

sudo ufw enable

List of application which have a ufw profile (e.g. OpenSSH, Nginx Full, etc.), usually installed application which require listening on certain port.

sudo ufw app list

Enable SSH access.

sudo ufw allow OpenSSH

Check status

sudo ufw status
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.