Introduction
- Overview of OCI NSGs for network security policies.
Step-by-Step Guide
- Creating NSGs
oci network nsg create --compartment-id <compartment_OCID> --display-name "MyNSG" --wai
Defining Ingress and Egress Rules
Adding Ingress Rule:
oci network nsg rules add --nsg-id <NSG_OCID> --direction INGRESS --protocol tcp --source <CIDR_block> --source-type CIDR_BLOCK --destination-port-range 22
Adding Egress Rule:
oci network nsg rules add --nsg-id <NSG_OCID> --direction EGRESS --protocol tcp --destination <CIDR_block> --destination-type CIDR_BLOCK --destination-port-range 80
Applying NSGs to Resources
Applying NSG to VCN:
oci network vcn update --vcn-id <VCN_OCID> --nsg-ids <NSG_OCID>
Securing a web application deployment on OCI by configuring NSGs to allow specific inbound and outbound traffic flows between instances and the internet, enhancing network security posture.
Thank you
Osama