Table of Contents

Resources

Show Current Rules

List

sudo ufw status

Numbered

sudo ufw status numbered

Show Supported Apps

sudo ufw app list
Test

Get App Info

sudo ufw app info x
sudo ufw app info 'CUPS'

Limit Connections

sudo ufw limit ssh

Allow Specific Port/Protocol

sudo ufw allow 22/tcp

Ubuntu Deny All and Allow SSH

sudo ufw reset && sudo ufw default deny && sudo ufw logging off && sudo ufw allow 'ssh' && sudo ufw limit 'ssh' && sudo ufw enable && sudo systemctl enable 'ufw'