This article is a follow-up to one IBM published two years ago titled “Access Virtual Servers in a Virtual Private Cloud with OpenVPN,” in which they described how to install and set up OpenVPN to access your VPC resources. Since then, Client-to-Site VPN for VPC has become a new, fully managed alternative, removing the need for you to set up and operate your own OpenVPN server.
With client-to-site connectivity provided by the client VPN for VPC, remote devices can securely connect to the VPC network using an OpenVPN software client. This solution is helpful for telecommuters who want to establish a secure connection to the IBM Cloud from a distant location, such as a home office.
In this article, IBM describes how to deploy, provision, and configure a client VPN for a VPC using Terraform. You can find the source code and directions for deploying a fully operational example of this architecture on GitHub. They’ll give a high-level summary of the procedures, all of which make use of Terraform to simplify provisioning and configuration:
These features are a part of the architecture shown above:
Making the server and client certificates that Client-to-Site VPN for VPC will use is the first step. The product documentation includes all the instructions. Included are the following:
These two files—generate.tf and secrets.tf—do this in Terraform:
IBM may provision the Client-to-Site VPN for VPC once the certificates have been created. It needs a VPC and a subnet, at the very least. A standalone mode (great for testing) and a high availability deployment are supported by Client VPN for VPC. They’ll test the capability using the standalone deployment:
You can then test the minimum needed connectivity to cloud service endpoints. To complete our connectivity testing, IBM can provision one virtual server instance in VPC and one in Classic, both connected via Transit Gateway:
The following can be seen in the picture above:
Want to know more about IBM Cloud? Visit our course now.
Here at CourseMonster, we know how hard it may be to find the right time and funds for training. We provide effective training programs that enable you to select the training option that best meets the demands of your company.
For more information, please get in touch with one of our course advisers today or contact us at training@coursemonster.com