Adding Security Attributes to a VCN
Use Zero Trust Packet Routing with an existing Virtual Cloud Network (VCN).
You can use Zero Trust Packet Routing (ZPR) along with or in place of network security groups to manage network access to OCI resources . To do this, define ZPR policies that govern how resources communicate with each other, and then add security attributes to those resources. For more information, see Zero Trust Packet Routing.
Caution
If an endpoint has a Zero Trust Packet Routing (ZPR) security attribute, traffic to the endpoint must satisfy ZPR policies and also all NSG and security list rules. For example, if you're already using NSGs and you add a security attribute to an endpoint, all traffic to the endpoint is blocked. From then onward, a ZPR policy must explicitly allow traffic to the endpoint.
If an endpoint has a Zero Trust Packet Routing (ZPR) security attribute, traffic to the endpoint must satisfy ZPR policies and also all NSG and security list rules. For example, if you're already using NSGs and you add a security attribute to an endpoint, all traffic to the endpoint is blocked. From then onward, a ZPR policy must explicitly allow traffic to the endpoint.
Use the network vcn create command and parameters shown to add security attributes when you create a VCN:
oci network vcn create --compartment-id compartment_id [. . .] --security-attributes securityattributes [OPTIONS]Use the network vcn update command and parameters shown to add security attributes to an existing VCN:
oci network vcn update --vcn-id ocid [. . .] --security-attributes securityattributes [OPTIONS]For a complete list of parameters and values for CLI commands, see the CLI Command Reference.