Managing Your Oracle Cloud Infrastructure Networking Classic – VPN for Dedicated Compute Classic Connections

Not Oracle Cloud at Customer This topic does not apply to Oracle Cloud at Customer.

After you’ve configured your VPN gateway device, you can manage your VPN connections using the REST API or the Compute Classic web console.

Starting a VPN Connection

Not Oracle Cloud at Customer This topic does not apply to Oracle Cloud at Customer.

After you’ve configured your VPN gateway to connect to the Oracle Cloud VPN gateway, you can start a VPN connection. You can create up to 20 VPN tunnels between your data center and your Oracle Cloud Infrastructure Dedicated Compute Classic site.
To start a VPN connection using the web console, do the following:
  1. Sign in to the Compute Classic console. If your domain spans multiple sites, select the appropriate site. To change the site, click the Site menu near the top of the page.
  2. Click the Network tab, and then in the Network drop-down list, click VPN Endpoints.
    The VPN Endpoints page is displayed.
  3. To create a VPN tunnel, click Create VPN Endpoint.
  4. Enter the following:
    • Name: Specify a name for the VPN tunnel.
    • VPN Gateway IP: Enter the IP address of the VPN gateway in your data center through which you want to connect to the Oracle Cloud VPN gateway. Your gateway device must support route-based VPN and IKE (Internet Key Exchange) configuration using pre-shared keys.
    • Pre-shared Key: Enter the 128-bit/SHA1 pre-shared key. This must be the same key that you provided when you requested the service.
    • Reachable Routes: Enter a list of routes (network prefixes in CIDR notation) that are reachable through this VPN tunnel.
  5. To start the VPN connection as soon as the tunnel is created, click Enabled.

To start a VPN connection using the CLI, use the opc compute vpn-endpoint add command. For help with that command, run the command with the -h option. For the instructions to install the CLI client, see Preparing to Use the Compute Classic CLI in CLI Reference for Oracle Cloud Infrastructure Compute Classic.

To start a VPN connection using the API, use the POST /vpnendpoint/ method with the enabled parameter. For more information, see REST API for Oracle Cloud Infrastructure Compute Classic.

After you’ve established a VPN connection to your Oracle Cloud Infrastructure Dedicated Compute Classic site, if you want to end the VPN connection, see Disabling a VPN Connection.

Listing Your VPN Connections

Not Oracle Cloud at Customer This topic does not apply to Oracle Cloud at Customer.

To list your VPN connections using the web console, do the following:
  1. Sign in to the Compute Classic console. If your domain spans multiple sites, select the appropriate site. To change the site, click the Site menu near the top of the page.
  2. Click the Network tab, and then in the Network drop-down list, click VPN Endpoints.
    The VPN Endpoints page is displayed.
On this page, you can see all the VPN endpoints that you’ve created, and you can start, stop, view, update, or delete your VPN endpoints.

To list your VPN connections using the CLI, use the opc compute vpn-endpoint list command. For help with that command, run the command with the -h option. For the instructions to install the CLI client, see Preparing to Use the Compute Classic CLI in CLI Reference for Oracle Cloud Infrastructure Compute Classic.

To list your VPN connections using the API, use the GET /vpnendpoint/container method. For more information, see REST API for Oracle Cloud Infrastructure Compute Classic.

Viewing Details of a VPN Connection

Not Oracle Cloud at Customer This topic does not apply to Oracle Cloud at Customer.

To view details of a VPN connection using the web console, do the following:
  1. Sign in to the Compute Classic console. If your domain spans multiple sites, select the appropriate site. To change the site, click the Site menu near the top of the page.
  2. Click the Network tab, and then in the Network drop-down list, click VPN Endpoints.
    The VPN Endpoints page is displayed.
  3. Go to the VPN endpoint that you want to view. From the menu icon menu, select Update. The Edit VPN Endpoint page shows the details of the VPN endpoint.

To view details of a VPN connection using the CLI, use the opc compute vpn-endpoint get command. For help with that command, run the command with the -h option. For the instructions to install the CLI client, see Preparing to Use the Compute Classic CLI in CLI Reference for Oracle Cloud Infrastructure Compute Classic.

To view details of a VPN connection using the API, use the GET /vpnendpoint/name method. For more information, see REST API for Oracle Cloud Infrastructure Compute Classic.

Updating a VPN Connection

Not Oracle Cloud at Customer This topic does not apply to Oracle Cloud at Customer.

After you’ve configured your VPN connection, you can update the connection to enable or disable the VPN tunnel or to change other connection details.
To update a VPN connection using the web console, do the following:
  1. Sign in to the Compute Classic console. If your domain spans multiple sites, select the appropriate site. To change the site, click the Site menu near the top of the page.
  2. Click the Network tab, and then in the Network drop-down list, click VPN Endpoints.
    The VPN Endpoints page is displayed.
  3. Go to the VPN endpoint that you want to update. From the menu icon menu, select Update. Enter the details that you want to change and then click Update. You can update any of the details, except name.

To update a VPN connection using the CLI, use the opc compute vpn-endpoint update command. For help with that command, run the command with the -h option. For the instructions to install the CLI client, see Preparing to Use the Compute Classic CLI in CLI Reference for Oracle Cloud Infrastructure Compute Classic.

To update a VPN connection using the API, use the PUT /vpnendpoint/name method. You can update any of the parameters, except name. For more information, see REST API for Oracle Cloud Infrastructure Compute Classic.

Disabling a VPN Connection

Not Oracle Cloud at Customer This topic does not apply to Oracle Cloud at Customer.

To disable or end a VPN connection using the web console, do the following:
  1. Sign in to the Compute Classic console. If your domain spans multiple sites, select the appropriate site. To change the site, click the Site menu near the top of the page.
  2. Click the Network tab, and then in the Network drop-down list, click VPN Endpoints.
    The VPN Endpoints page is displayed.
  3. Go to the VPN endpoint that you want to disable. From the menu icon menu, select Update.
  4. In the Edit VPN Endpoint page, deselect the Enabled check box, and then click Update.

To disable or end a VPN connection using the CLI, use the opc compute vpn-endpoint update command without the ––enabled option. For help with that command, run the command with the -h option. For the instructions to install the CLI client, see Preparing to Use the Compute Classic CLI in CLI Reference for Oracle Cloud Infrastructure Compute Classic.

To disable or end a VPN connection using the API, use the PUT /vpnendpoint/name method without the enabled parameter. For more information, see REST API for Oracle Cloud Infrastructure Compute Classic.

After disabling a VPN connection, you can start it again later on. See Starting a VPN Connection.

Deleting a VPN Connection

Not Oracle Cloud at Customer This topic does not apply to Oracle Cloud at Customer.

To delete a VPN connection using the web console, do the following:
  1. Sign in to the Compute Classic console. If your domain spans multiple sites, select the appropriate site. To change the site, click the Site menu near the top of the page.
  2. Click the Network tab, and then in the Network drop-down list, click VPN Endpoints.
    The VPN Endpoints page is displayed.
  3. Go to the VPN endpoint that you want to delete. From the menu icon menu, select Delete.

To delete a VPN connection using the CLI, use the opc compute vpn-endpoint delete command. For help with that command, run the command with the -h option. For the instructions to install the CLI client, see Preparing to Use the Compute Classic CLI in CLI Reference for Oracle Cloud Infrastructure Compute Classic.

To delete a VPN connection using the API, use the DELETE /vpnendpoint/name method. For more information, see REST API for Oracle Cloud Infrastructure Compute Classic.

After deleting a VPN connection, you can create it again later on. See Starting a VPN Connection.