LAB 40 ‐ Connect OCI Cloud Shell with Private Network - gautam-amitesh/OCI GitHub Wiki

Earlier, our Cloud Shell was running on a public network (Network: Public), which enabled internet access. To enhance security, Cloud Shell can be configured to run within a private VCN that uses a NAT Gateway for internet access.

To create a new private network definition and use it as the active network, follow the step-by-step guide below.:

  1. Click Private network definition list

  2. Click Create private network definition

  3. Provide Name, select network-compartment for VCN selection, select SPOKE-VCN, select network-compartment for Subnet selection, and select private-subnet

  4. Enable Use as active network and finally click Create

Switching Networks

  1. To switch from private network to public network click Public network from the dropdown

  2. To switch from public network to private network click Private network definition list from the dropdown

  3. CLick Actions/... button and click Use as active network