Creating an IPSec Connection
The Site-to-Site VPN service lets you create an IPSec connection containing IPSec tunnels that securely connect Oracle Cloud Infrastructure to an on-premises network.
Before you create an IPSec connection for Site-to-Site VPN, review Setting Up Site-to-Site VPN and plan the Site-to-Site VPN. Also, review Working with Site-to-Site VPN.
Enter IPSec Connection Information
This section discusses basic information for the IPSec connection. The following sections cover specifics that depend on which of the three routing types you select for that tunnel.
You can think of an "IPSec connection object" as something that contains its own metadata, and the configuration information for IPSec tunnels it contains.
Next, configure the two IPSec tunnels. If the actual CPE device only supports a single IPSec tunnel per connection, configuring tunnel 2 is optional. How you configure the tunnels depends on the routing method you planned to use, so select the matching section.
Configure a Tunnel for BGP RoutingConfigure a Tunnel for BGP Routing
Enter the following information in the appropriate section for tunnel 1 and tunnel 2.
The IPSec connection is created and displayed on the page. It stays in the Provisioning state for a short period.
The displayed tunnel information includes:
- The Oracle VPN IPv4 or IPv6 address (for the Oracle VPN headend).
- The tunnel's IPSec status (possible values are Up, Down, and Down for Maintenance). At this point, the status is Down. The network engineer must configure the CPE device before the tunnel or tunnels can be established.
- The tunnel's BGP status. At this point, the status is Down. The network engineer must configure the CPE device.
To view the tunnel's shared secret, select the tunnel to view its details, and then select Show next to Shared Secret.
You can also select the Phase Details tab to see the Phase One (ISAKMP) and Phase Two (IPSec) details for the tunnel.
By now you have created all the components required for Site-to-Site VPN. Next, the on-premises network engineer must configure the CPE device before network traffic can flow between the on-premises network and a VCN.
For more information, see CPE Configuration.
Configure a Tunnel for Static RoutingConfigure a Tunnel for Static Routing
Note
We recommend that you use BGP route-based IPSec connections for IPSec over FastConnect.Enter the following information in the appropriate section for tunnel 1 and tunnel 2.
The IPSec connection is created and displayed on the page. It stays in the Provisioning state for a short period.
The displayed tunnel information includes:
- The Oracle VPN IP address (for the Oracle VPN headend).
- The tunnel's IPSec status (possible values are Up, Down, and Down for Maintenance). At this point, the status is Down. A network engineer still must configure the CPE device.
To view the tunnel's shared secret, select the tunnel to view its details, and then select Show next to Shared Secret.
By now you have created all the components required for Site-to-Site VPN. Next, the on-premises network engineer must configure the CPE device before network traffic can flow between the on-premises network and a VCN.
For more information, see CPE Configuration.
Configure a Tunnel for Policy-based RoutingConfigure a Tunnel for Policy-based Routing
Note
We recommend that you use BGP route-based IPSec connections for IPSec over FastConnect.Note
The policy-based routing option isn't available in all ADs, and might require creating a new IPSec tunnel.Enter the following information in the appropriate section for tunnel 1 and tunnel 2.
The IPSec connection is created and displayed on the page. It stays in the Provisioning state for a short period.
The displayed tunnel information includes:
- The Oracle VPN IP address (for the Oracle VPN headend).
- The tunnel's IPSec status (possible values are Up, Down, and Down for Maintenance). At this point, the status is Down. The network engineer must configure the CPE device before the status can change.
To view the tunnel's shared secret, select the tunnel to view its details, and then select Show next to Shared Secret.
By now you have created all the components required for Site-to-Site VPN. Next, the on-premises network engineer must configure the CPE device before network traffic can flow between the on-premises network and a VCN.
For more information, see CPE Configuration.
Use the network ip-sec-connection create command and required parameters to create an IPSec connection:
oci network ip-sec-connection create --compartment-id compartment-ocid --cpe-id cpe-ocid --drg-id drg-ocid --static-routes complex type ... [OPTIONS]
The
--static-routes
option is only required when using static routing.For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the CreateIPSecConnection operation to create an IPSec connection.