Opening HTTP/HTTPS Connection in Firewall (iptables)
The following commands allow connection via firewall (iptables) on 80 (HTTP) and 443 (HTTPS) ports:
sudo iptables -I INPUT 1 -p tcp --dport 80 -j ACCEPT
sudo iptables -I INPUT 1 -p tcp --dport 443 -j ACCEPT