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)

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay