sudo ufw status
sudo ufw status numbered
sudo ufw app list
Test
x
to an app listed in above commandsudo ufw app info x
sudo ufw app info 'CUPS'
sudo ufw limit ssh
22
is the port number and tcp
is the protocoludp
can be a protocolsudo ufw allow 22/tcp
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'