OCI User VPN

Deploy OpenVPN into OCI in minutes

Summary

This solution deploys an Aviatrix OpenVPN enabled gateway into an existing VCN with a public subnet, and onboards 5 users to it.

oci user vpn

Details of the Aviatrix OpenVPN features can be found here.

Scenario

Executives, SecOPs, Cloud Operations, and DBAs want simple, secure, centralized visibility, and control accessing Oracle database resources created in private subnets.

Bastion hosts and proliferation of ssh keys are security risks.

DBAs who need to manage databases, want an easy way to access the databases they are responsible for managing.

Benefits

OpenVPN deployment to the target VCN is automated, in addition to onboarding the users that need access. This solution can be deployed in about 5 minutes.

Prerequisites

  • Aviatrix Controller up and running, details here showing how to launch one from OCI Marketplace.
  • OCI Access Account defined in controller, details here.
  • VMStandard2.2 compute available in your region, check your limits
  • Terraform .12 on your workstation

Getting Started

The code is located here.

  • Modify terraform.tfvars to reflect your Controller details and the name of the OCI Access Account defined there.
  • Identify the target vcn, capture it’s name and the public subnet CIDR. You can do this through the OCI Console.
  • Modify terraform.tfvars to reflect your oci vcn name and public subnet cidr.
  • Modify terraform.tfvars to reflect the users you would like to onboard.
  • terraform init
  • terraform plan
  • terraform apply
  • To destroy terraform destroy

What to expect

The Aviatrix VPN gateway will take ~3 minutes to provision, users will be onboarded quickly thereafter.

Users will recieve an email with the *.opvn file with instructions they can use with Tunnelblick or download the Aviatrix VPN Client.

VPN Users in Controller

VPN Users