Connecting to the Client VPN EndPoint

  1. 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>
  2. 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.

  3. Save the file.

    Below is an example of the modified aws.ovpn file:

  4. 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
  5. 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.

  6. Continue with Mounting the Amazon EFS.