In this tutorial you will set up clients to join an existing VPN. Simply add the "VPN Cubed Client Connect" RightScript to any servers or ServerTemplate that you want to join the VPN.
The following are prerequisites for completing this tutorial:
Step 1: Import the "VPN Toolbox" ServerTemplate
Step 2: Add the "VPN Cubed Client Connect" RightScripts
Step 3: Configure the Inputs and Run the Script
Step 4: Verify that Clients joined the VPN
The first step is to import the "VPN Toolbox" ServerTemplate into your 'Local' view so that you'll have access to the RightScript that you'll need to add to your client server. Go to Design -> MultiCloud Marketplace -> ServerTemplates. Import the "VPN Toolbox" ServerTemplate.
Any server can easily be configured to join the VPN as a client by adding the "VPN Cubed Client Connect" RightScript to the ServerTemplate as an operational script. Select a ServerTemplate and add the "VPN Cubed Client Connect" script. ("RightScale Services" will be listed as the script's publisher.)
Go to the Inputs tab of the ServerTemplate, click Edit, and provide values for the following new inputs:
You can view the client packs on the VPN Cubed Manager admin pages under "Client Packs." This will be the virtual IP of the client. Be sure to keep track of which IP's you are distributing to which servers so you don't accidentally allocate out the same IP address to two different servers.
Be sure to put the password generated by YOUR vpn manager. You can view the client password on the VPN Cubed Manager admin pages under "Runtime Status" under "Client download username/password." Note that this is displayed as "username/password." Be sure to only include the password portion, after the forward slash.
This will almost always be "clientpack" and is found along with the VPN3_CLIENT_PASSWORD above.
You can set this to an ENV variable or to the text of the VPN3_MGR_IP. You can also use the public hostname (the easiest).
For example you can set it to ENV -> EC2_PUBLIC_HOSTNAME -> of -> VPN Cubed Manager (the nickname of your vpn cubed manager).
Next, run the script on the client server.
You can SSH into the client server and then ping the following address: 172.31.0.1
You will also be able to view the clients in the Runtime window.
© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.