Connecting to the Client VPN EndPoint
-
In the
aws.ovpn
file you downloaded after setting up the client VPN, add the following to the file after/ca
:<cert>
Contents of client certificate (.crt) file
</cert>
<key>
Contents of client private key (.key) file
</key>
-
Locate the line that specifies the remote DNS name, and prepend a random string to it, e.g. foobar.cvpn-endpoint-EXAMPLE.prod.clientvpn.us-west-2.amazonaws.com.
-
Save the file.
Below is an example of the modified aws.ovpn file:
-
On the on-premise Linux box, install openvpn. The command you use depends on the version of Linux you are using. Here is an example command for CentOs:
sudo yum -y install openvpn
-
Run the following command (for centos) to connect to the client VPN endpoint:
sudo openvpn --config aws.ovpn --daemon
Use
ps-ef | grep openvpn
to verify the openvpn daemon is running. -
Continue with Mounting the Amazon EFS.