Oracle Cloud Ubuntu VM Unreachable on Port 80/443 Despite Open Security List

OCI Ubuntu images ship a default `iptables` `REJECT` rule before UFW.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: Oracle Cloud Ubuntu VM Unreachable on Port 80/443 Despite Open Security List Platform: Cloud
Common Root Causes:
  • OCI Ubuntu images ship a default `iptables` `REJECT` rule before UFW.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Insert `ACCEPT` rules for TCP 80/443 above the `REJECT` rule and persist with `netfilter-persistent save`.
Safe Diagnostic Command:
sudo iptables -L INPUT -n --line-numbers
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

OCI Ubuntu images ship a default `iptables` `REJECT` rule before UFW. Recommended diagnostic: `sudo iptables -L INPUT -n --line-numbers`. Remediation: Insert `ACCEPT` rules for TCP 80/443 above the `REJECT` rule and persist with `netfilter-persistent save`.

Worked Examples

  • Run `sudo iptables -L INPUT -n --line-numbers` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-oci-iptables-blocks-port-80-443 · Independently verified: 2026-11-25

Related Resources