Oracle Cloud Ubuntu: Port 80/443 Open in VCN but Still Unreachable (iptables REJECT)

Default Oracle Ubuntu images include an iptables INPUT REJECT rule blocking ports 80/443.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.0.0
Identifier: Oracle Cloud Ubuntu: Port 80/443 Open in VCN but Still Unreachable (iptables REJECT) Platform: Linux / Oracle Cloud

Interactive Diagnostic Checklist

Safe Diagnostic Command:
sudo iptables -L INPUT -n --line-numbers

Technical Explanation

Default Oracle Ubuntu images include an iptables INPUT REJECT rule blocking ports 80/443. Verified technical resolution: Insert ACCEPT rules for TCP 80 and 443 BEFORE the REJECT rule and persist with netfilter-persistent.

Worked Examples

  • Diagnostic check: sudo iptables -L INPUT -n --line-numbers

Limitations & Assumptions

  • Confirm exact software version and execution layer before applying configuration changes in production.

Source References & Verification

Resource ID: err-linux-iptables-port-blocked · Independently verified: 2026-11-25

Related Resources