How to Add or Update an Ingress Rule in Oracle Cloud

Oracle Cloud Infrastructure (OCI) provides a robust networking environment where security is managed using security lists. Ingress rules define the traffic allowed into an instance or a subnet. In this post, I will provide the steps for adding or updating an ingress rule in Oracle Cloud.

Steps to Add or Update an Ingress Rule in Oracle Cloud

  • Log in to Oracle Cloud.
  • In the Oracle Cloud Console, go to Compute > Instances. Click on your instance to open its details page.
  • Under the “Instance Details” section, find the “Virtual cloud network”. Click on the link next to “Virtual Cloud Network (VCN)” to open the VCN details.
  • In the left-hand menu under “Resources” (as shown below in the figure), click on “Security Lists” to view the security configurations for the subnet.
Security Lists
  • Click on the Default Security List (or the one associated with your subnet). This will display the Ingress Rules currently applied (as shown in the following figure).
Ingress Rules
  • Add or Edit an Ingress Rule:
    • To edit an existing rule, select it and click the Edit button.
      • Update any value and click “Save Changes” to apply the modifications.
    • To add a new rule, click “Add Ingress Rules” and fill in the details (as shown in the figure below. Here I have shown an example for the HestiaCP control panel)
      • Source Type: Choose CIDR block.
      • Source CIDR: Enter the IP range (e.g., 0.0.0.0/0 for public access).
      • IP Protocol: Select TCP, UDP, or ICMP.
      • Port Range: Specify the allowed ports (e.g., 22 for SSH, 80 for HTTP).
    • Click “Add Ingress Rules” to apply the new ingress rule.
Add Ingress Rules

Please let me know in the comments if these steps work for you.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.