Note:

Set up OpenVPN for Remote Access Across Multiple Regions on Oracle Cloud Infrastructure

Introduction

With remote work and cloud adoption on the rise, secure access to company resources has never been more critical. A Remote Access VPN allows users to connect to their organization’s network from anywhere, encrypting all data to protect it from unauthorized access. Whether working from a remote office, home, or on the go, a VPN ensures that connections remain private and secure.

image

In this tutorial series, we will take you step-by-step through the process of building the architecture outlined in the following image.

image

Objectives

Final Architecture for the second part of the tutorial

You will continue from the last task in Tutorial 1: Set up OpenVPN for Remote Access in a Single Region on Oracle Cloud Infrastructure and complete building the following environment.

image

Prerequisites

Task 1: Create a Dynamic Routing Gateway (DRG)

Task 2: Establish Remote Peering Connection (RPC) between the Primary and DR Regions

Remote Peering Connection (RPC) enables Virtual Cloud Networks (VCNs) in different regions to communicate privately through their respective DRGs. In this task, we will create an RPC in each of the DRGs in order to establish the connection, allowing seamless private connectivity between VCNs in both regions.

Task 3: Set up Spoke Virtual Cloud Network (VCN)

Task 3.1: Create a VCN

Task 3.2: Attach the VCN to the DRG

Task 3.3: Create a Private Subnet

Task 3.4: Configure Routing and Security on the Subnet

Task 4: Provision a Test VM (Target-Instance-2)

Task 5: Configure Routing on Hub-VCN

Task 6: Configure Remote Access on OpenVPN to Spoke-VCN-2 VCN

Task 7: Test and Validate

Conclusion

In this tutorial series, you have learned how to deploy and configure OpenVPN for remote access to your OCI resources, whether you need access from a remote office, home, or while on the go. We covered how to set up OpenVPN to connect to resources within the same region as the OpenVPN or in a different region. Detailed explanations were provided for the necessary OCI configurations, including enabling communication from your PC to the OpenVPN public server, and from there to virtual machines in the primary or DR region, we also explored key OCI components while doing that such as the DRG and how to leverage it for RPC between regions.

Acknowledgments

More Learning Resources

Explore other labs on docs.oracle.com/learn or access more free learning content on the Oracle Learning YouTube channel. Additionally, visit education.oracle.com/learning-explorer to become an Oracle Learning Explorer.

For product documentation, visit Oracle Help Center.