Nginx 80 is blocked in Oracle Cloud Server?

The Oracle Always Free plan is an excellent option, but I found myself struggling with their firewall settings while attempting to run an Nginx web server. Despite enabling port 80 in both the network security groups and security lists, it was still being blocked for unknown reasons.

Firstly I checked the ufw settings and it was disabled definitely. However, when I looked at the iptable rules by executing sudo iptables -L, I was surprised by lots of existing rules there.

Well, I know that must be a security measure to protect your cloud services, but let’s say that we have correct settings in network security groups and security lists, then it may be reasonable to shutdown operating system’s firewall. Thus, I decided to disable ufw and these iptable rules permanently.

To disable the ufw, execute the following command.

To remove above iptable rules in Ubuntu, replace the content of /etc/iptables/rules.v4 with the following text.

then replace the content of /etc/iptables/rules.v6 with the following text.

1 Comment Nginx 80 is blocked in Oracle Cloud Server?

Leave a Reply

Your email address will not be published. Required fields are marked *