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.:
-
Click
Private network definition list -
Click
Create private network definition -
Provide
Name, selectnetwork-compartmentfor VCN selection, selectSPOKE-VCN, selectnetwork-compartmentfor Subnet selection, and selectprivate-subnet -
Enable
Use as active networkand finally clickCreate
Switching Networks
-
To switch from private network to public network click
Public networkfrom the dropdown -
To switch from public network to private network click
Private network definition listfrom the dropdown -
CLick
Actions/...button and clickUse as active network