The Ubuntu firewall is disabled by default. However, you still need to update your iptables configuration to allow HTTP/HTTPS traffic. Update iptables with the following commands.Copy
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPT
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 443 -j ACCEPT
sudo netfilter-persistent save