Skip to content

Instantly share code, notes, and snippets.

@jjshoots
Last active March 21, 2024 11:36
Show Gist options
  • Save jjshoots/48886a03f8864bf0f70e50ccb89503a9 to your computer and use it in GitHub Desktop.
Save jjshoots/48886a03f8864bf0f70e50ccb89503a9 to your computer and use it in GitHub Desktop.
Allowing HTTP/S Traffic on Oracle Instance
  1. Add ingress rule from here:
  • Login to oracle cloud (if you're using Brave browser, disable shields)
  • Click hamburger on top left -> Networking -> Virtual Cloud Networks -> vcn** -> subnet** -> Default Security List
  • Add ingress rule
  • Source CIDR: 0.0.0.0/0
  • IP Protocol: TCP
  • Destination Port Range: PORT
  • Save
  1. Do this weird thing:
  • sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport <PORT> -j ACCEPT
  • sudo netfilter-persistent save

Troubleshooting

  • Website exists on localhost on oracle cloud instance, but can't access from the internet:
    • Ensure that GatewayPorts and AllowTcpForwarding is set to yes on both(?) client and host, then do sudo systemctl restart ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment