VPN Connection to Azure
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 OCI resources to other cloud service providers.
This topic provides a best practices configuration for an IPSec VPN tunnel between OCI and Microsoft Azure using the OCI Site-to-Site VPN service and the Azure IPSec 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 Azure.
IKE Version: An IPSec VPN connection between OCI and Microsoft Azure must use IKE version 2 for interoperability.
Routing Type: This scenario uses Border Gateway Protocol (BGP) to exchange routes between Azure and OCI. BGP is preferred for Site-to-Site VPN whenever possible. Optionally, static routing can also be used between Azure and OCI.
Perfect Forward Secrecy: With perfect forward secrecy (PFS) new Diffie-Hellman keys are generated in phase 2, and phase 2 rekeys instead of using the same key generated during phase 1. Both VPN peers must match the chosen PFS group setting for phase 2. By default, Azure (groups 1, 2, 14, and 24 for IKEv2 only) and OCI (group 5) have a PFS mismatch. The OCI side PFS group can be changed to match the CPE.
You can verify the Site-to-Site VPN version used by the IPSec connection under the IPSec Connection Information tab on the IPSec connection page.
For a vendor-neutral list of supported IPSec parameters for all OCI regions, see Supported IPSec Parameters.
By default, OCI Site-to-Site VPN uses PFS group 5 for all IPSec VPN tunnels. For IKEv2, Azure sends proposals with PFS groups 1, 2, 14, and 24.
You can use the OCI Console to set a tunnel's Phase 2 IPSec policy to use a custom PFS group value of 2, 14, or 24. OCI doesn't support PFS group 1.
Browse to an IPSec connection in OCI and the Virtual Network Gateway connection in Azure to verify status of the tunnel.
The OCI tunnel under IPSec connection displays Up for IPSec status to confirm an operational tunnel.
The IPv4 BGP Status also displays Up indicating an established BGP session.
The connection status under the Virtual Network Gateway for this tunnel displays
Connected to confirm an operational tunnel.
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.