DEV Community

Partha Biswas
Partha Biswas

Posted on

Oracle cloud EC2- Website not opening issue

Check Following things

  1. Do curl request to understand webpage is accessible from local or not
curl localhost:80
Enter fullscreen mode Exit fullscreen mode
  1. Configure ingress route for port 80. Enable destination port 80 and source port all CIDRS 0.0.0.0/0
  2. Install Apache/nginx
  3. Disable ufw firewall - this may cause issues with the Oracle firewall
  4. use below command to enable via iptables
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPT
sudo netfilter-persistent save
Enter fullscreen mode Exit fullscreen mode

OR

sudo iptables -A INPUT -p tcp --dport 3306 -j ACCEPT
sudo iptables-save > /etc/iptables/rules.v4
sudo iptables -L -n
Enter fullscreen mode Exit fullscreen mode
  1. test your web page over internet

Top comments (0)