setup-ipsec-vpn/aws
S. X. Liang 736877330b
Add AWS deployment template (#838)
Add AWS deployment template

Authored-by: Scottpedia (https://github.com/Scottpedia)
2020-08-26 22:20:04 -05:00
..
cloudformation-template-ipsec Add AWS deployment template (#838) 2020-08-26 22:20:04 -05:00
confirm-iam.png Add AWS deployment template (#838) 2020-08-26 22:20:04 -05:00
README.md Add AWS deployment template (#838) 2020-08-26 22:20:04 -05:00
show-key.png Add AWS deployment template (#838) 2020-08-26 22:20:04 -05:00
specify-parameters.png Add AWS deployment template (#838) 2020-08-26 22:20:04 -05:00
upload-the-template.png Add AWS deployment template (#838) 2020-08-26 22:20:04 -05:00

Deploy to AWS (Beta)

Note: The AWS deployment template is still in BETA phase. You may encounter failures during the deployment. In that case, please let us know the issue.

This template will create a fully-working IPSec/L2TP VPN server on AWS (Amazon Web Service). Please make sure to check the pricing details of Virtual Machine on EC2 before starting the launch sequence.

You can also use t2.micro instance as your server for your deployment, which is free of charge within the first year since your AWS account is registered. For more information on AWS free usage tier, go to this page.

Available Customization Parameters:

  • AWS EC2 Instance Type
  • OS for your VPN Server (Ubuntu16.04, Ubuntu18.04, Debian9-Stretch or Debian10-Buster)

Note: To use Debian9 or Debian10 images on EC2, to need to subscribe them first at AWS marketplace. Debian9 Debian10

  • Your VPN username
  • Your VPN password
  • IPSec PSK (pre-shared key)

When choosing your username and password, do not enter special characters like " ' \.

Make sure to do this with an AWS ROOT ACCOUNT or an IAM ACCOUNT with ANDMINISTRATOR ACCESS.

Right-click the template link and save it as a file on your computer. Then upload it as the template source in the stack creation wizard.

Upload the file

At step 4, make sure to confirm that this template may create IAM resources.

Confirm IAM

Click the icon below to initiate the launching sequence.

Deploy to AWS

Make sure the deployment is successful before going to Next Step: Configure VPN Clients.

Note: You need to wait for around 5 minutes after the stack is shown as "CREATE_COMPLETE", before you can connect to the server with a VPN client. That's for the installation script to finish.

FAQs

How to connect to the server via ssh after deployment?

AWS does not allow users to access the instances with an SSH password. Instead, users are instructed to create "key pairs", which are used as credentials to access the instances via SSH.

The template here generates a key pair for you during the deployment, and that will be available as plain texts in the "Output" section after the stack is successfully created.

You need to note down that key file if you want to later access the VPN server via SSH.

Author

Copyright (C) 2020 S. X. Liang

Screenshots

Step 2