How to setup firewall ubuntu#

sudo ufw app list

sudo ufw allow OpenSSH

sudo ufw allow http

sudo ufw allow https

sudo ufw enable