34: OCI: NW ‐ Manual Creation of Hub VCN. Hub Public Subnet, Hub subnet‐Security list - pavankumarchittajallu/OCI_DOC GitHub Wiki
Step-by-Step Process: OCI Hub Networking Components.
1. Create the Hub VCN
- Go to the OCI Console and navigate to the main menu (≡) > Networking > Virtual Cloud Networks.
- Click Create VCN.
- Enter a name for your Hub VCN (e.g., "Hub-VCN").
- Specify the IPv4 CIDR block for the VCN (e.g., 10.0.0.0/16).
- Choose the compartment where the VCN resides.
- Click Create VCN. Wait until status shows as “Available”
2. Create the Hub Public Subnet
- Select the newly created Hub VCN from the Virtual Cloud Networks list.
- Go to the Subnets tab and click Create Subnet.
- Enter a name for your public subnet (e.g., “Hub-Public-Subnet”).
- Confirm the compartment.
- Choose Subnet Type: “Regional” (recommended) ensures the subnet spans all availability domains.
- Specify the CIDR Block for the subnet (e.g., 10.0.1.0/24).
- Set Subnet Access to “Public Subnet”.
- In Route Table, select the appropriate route table (or leave default for now).
- In Security Lists, select the security list you plan to use (you can update later, see step 3).
- Click Create Subnet
3. Manually Create and Assign a Security List
A. Creating the Security List
- With your Hub VCN still selected, find the Security Lists section.
- Click Create Security List.
- Enter a friendly name (e.g., “Hub-Public-SL”).
- Choose the correct compartment.
- Add Ingress Rule(s), e.g.:
- Source CIDR:
0.0.0.0/0
- IP Protocol:
TCP
- Source Port Range: (leave blank for all)
- Destination Port Range:
22
(for SSH) or others as required
- Source CIDR:
- Add Egress Rule(s), e.g.:
- Destination CIDR:
0.0.0.0/0
- IP Protocol:
All Protocols
- Destination CIDR:
- Click Create Security List
B. Assign Security List to Subnet
- Go back to the Subnets tab in the VCN.
- Click the desired subnet (“Hub-Public-Subnet”).
- Click Edit to modify the Security Lists.
- Add your new custom security list (“Hub-Public-SL”) and remove the default one if you prefer.
- Save changes.