October 28, 2020 · cheatsheet linux

Ubuntu Firewall CheatSheet

Enable

sudo ufw enable
sudo ufw logging on

See Logs

sudo tail /var/log/ufw.log

Show Available Firewall Profiles

sudo ufw app list

Enable Profile

sudo ufw allow 'Nginx HTTPS'

See current configuration

sudo ufw status

Profiles Available for Nginx