uwf is the default firewall configuration tool to ease the firewall configuration of
iptables. To limit the firewall for
http/https/ssh, just a few commands will do:
sudo ufw default deny
sudo ufw allow http
sudo ufw allow https
sudo ufw allow ssh
sudo ufw enable
Done.