apt update && apt install ufw
Verify
ufw version
Allow http, ssh and https
ufw allow 80 && ufw allow 22 && ufw allow 443
Enable ufw
ufw enable
Start ufw
ufw start
Check status
ufw status