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)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay