VPN Connection to AWS
The Oracle Cloud Infrastructure (OCI) Site-to-Site VPN service offers a secure IPSec connection between an on-premises network and a Virtual Cloud Network (VCN). You can also use Site-to-Site VPN to connect Oracle Cloud Infrastructure resources to other cloud service providers.
This topic provides a best practices configuration for an IPSec VPN tunnel between OCI and AWS using the OCI Site-to-Site VPN service and the AWS Site-to-Site VPN service.
This document assumes you have already provisioned a Virtual Cloud Network (VCN) and Dynamic Routing Gateway (DRG) and also configured all VCN Route Tables and Security Lists required for this scenario and all equivalents in AWS.
Pre-Shared Key: If you rely on AWS to auto generate a pre-shared key for a tunnel, the generated key might contain period or underscore (. or _ ) characters. OCI doesn't support these characters in a pre-shared key. If the AWS auto generated password contains these characters, change the pre-shared key for the relevant tunnel before completing the VPN configuration.
Routing Type: This scenario uses Border Gateway Protocol (BGP) to exchange routes between AWS and OCI. Use BGP for IPSec tunnels whenever possible. Optionally, static routing can also be used between AWS and OCI.
You can verify the Site-to-Site VPN version used by the IPSec connection under the IPSec Connection Information tab on an IPSec connection page.
For a vendor-neutral list of supported IPSec parameters for all OCI regions, see Supported IPSec Parameters.
The first step in the configuration process is to create a temporary customer gateway. This temporary customer gateway is used to initially provision the AWS Site-to-Site VPN, exposing the AWS VPN endpoint for the tunnel. OCI requires the public IP of the remote VPN peer before creating an IPSec connection. After this process has been completed, a new customer gateway is configured representing the actual OCI VPN endpoint public IP.
While the VPN connection is provisioning, download the configuration of all tunnel information. This text file is required to complete configuring the tunnel in the OCI Console.
- Name: Give this customer gateway a name.
- Routing: Select Dynamic.
- BGP ASN: Enter the OCI BGP ASN. Oracle's BGP ASN for the commercial cloud is 31898, except the Serbia Central (Jovanovac) region which is 14544.
-
IP Address: Enter the Oracle VPN IP address for tunnel 1. Use the IP saved in the previous task.
Select Create Customer Gateway to complete provisioning.
This task replaces the temporary Customer Gateway with one that uses the OCI VPN IP address.
Browse to the IPSec connection in OCI and the Site-to-Site VPN connections in AWS to verify tunnel status.
- The OCI tunnel under IPSec connection displays
Upfor IPSec status to confirm an operational tunnel. - The IPv4 BGP Status also displays
Upindicating an established BGP session. - The tunnel status under the Tunnel Details tab for the Site-to-Site VPN connection in AWS displays
Up.
A Monitoring service is also available from OCI to actively and passively monitor cloud resources. For information about monitoring OCI Site-to-Site VPN, see Site-to-Site VPN Metrics .
If you have issues, see Site-to-Site VPN Troubleshooting.