Your own VPN Access Server in 10 easy steps

Your own VPN Access Server in 10 easy steps

VPN for everyone

There are multiple reasons to use a VPN. You can simply buy a subscription from one of many service providers or… run your own VPN server. Nowadays it is simpler than ever, without even struggling with Linux commands. In addition, with Amazon Web Services (AWS) Free Tier you can have it one year for free.

1. Go to AWS console, EC2. Select the region which is geographically close to you. I’ve chosen “Frankfurt”.

001

2. Click “Launch Instance” button.

3. On the left side, choose “Community AMIs”.

4. Type “Open VPN” in search bar. Choose OpenVPN Access Server 2.1.0 or newer.

5. Select instance type t2.micro to be eligible for free tier.

6. Follow the defaults, name the instance as you like (for example my-vpn). Consider limiting access to SSH and port 943 (admin UI) to your IP/subnet.

006

7. On the last screen make sure that hourly fee is $0.00 and click “Launch” button.

7. Create new key pair or use the existing one.

8. Wait a couple of minutes till your instance is ready. Go to your ssh client/shell and connect to your instance.

ssh -i "KEY.pem" openvpnas@INSTANCE_DNS_NAME.amazonaws.com

9. Follow the setup wizard. Accept the license, choose the server as primary node, select network interface (0.0.0.0 to have Admin UI publicly accessible). Choose default ports and route all your traffic through VPN. Provide new admin login and password.

005

10. Go to https://INSTANCE_DNS_NAME.amazonaws.com/admin. Ignore security warning. Provide admin credentials and go to “User Permissions”. Add your user and remember to set the password! After these steps you should be able to connect your VPN at https://INSTANCE_DNS_NAME.amazonaws.com.

References

https://aws.amazon.com/free/

https://docs.openvpn.net/how-to-tutorialsguides/virtual-platforms/amazon-ec2-appliance-ami-quick-start-guide/

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.