Storytime: When I was visiting Istanbul, there was an alleged terrorist attack and the Turkish government responded by restricting social media platforms. I was cut off from communication with my family back home in New York City. My solution was to launch a Virtual Private Network (VPN) on cloud infrastructure. VPNs are cybersecurity tools that encrypt your internet connection. It helps to protect your privacy and security when you’re online. I was able to call my mother on Whatsapp and let her know I was alright. Applying cybersecurity theory to real life saved me.

Follow the steps below to learn how to launch your own VPN on AWS.

  1. Log into AWS. Launch and name an EC2 instance. Screenshot 2024-02-11 at 1 41 39 PM

  2. Select OpenVPN from AWS Marketplace AMI. Screenshot 2024-02-11 at 1 42 18 PM

  3. Select t2.micro, which has the Free tier eligible plan. Screenshot 2024-02-11 at 1 45 02 PM

  4. Create a new key pair (optional). Screenshot 2024-02-11 at 1 45 59 PM

  5. Create a username and password by connecting to the server. Screenshot 2024-02-11 at 1 46 34 PM

  6. After the terminal window opens, press ‘yes’ for the agreement. Continue pressing ‘enter’ to confirm all default settings. Enter password. No need to specify activation key, just hit ‘enter’. Screenshot 2024-02-11 at 1 47 19 PM

  7. You have successfully created a username and password! Screenshot 2024-02-11 at 1 47 54 PM

  8. Configure VPN settings in the admin panel by copying the Admin URL and entering it in a new tab in your internet browser. Press advanced and proceed to the site. Screenshot 2024-02-11 at 1 48 39 PM

  9. Enter the username and password you just created. Accept the license agreement once logged in. Screenshot 2024-02-11 at 1 49 13 PM

  10. Go to the VPN settings. Screenshot 2024-02-11 at 1 50 07 PM

  11. Scroll down to routing section and toggle ‘yes’ for ‘Should client Internet traffic be routed through the VPN?’. Screenshot 2024-02-11 at 1 50 48 PM

  12. Enable ‘yes’ for ‘Have clients use specific DNS servers’. Screenshot 2024-02-11 at 1 51 27 PM

  13. Enter Google for fast response and save settings. Screenshot 2024-02-11 at 1 52 07 PM

  14. Click ‘Update Running Server’. You will have successfully configured VPN settings! Screenshot 2024-02-11 at 1 52 32 PM

  15. Download and install the [OpenVPN app] (https://openvpn.net/client/) on your device. Screenshot 2024-02-11 at 1 53 04 PM

  16. To import profile, go back to terminal and paste the Client address. Screenshot 2024-02-11 at 1 53 36 PM

  17. Click ‘accept’. Screenshot 2024-02-11 at 1 53 59 PM

  18. Enter the username and password you set. You can also change the profile name if you prefer. Screenshot 2024-02-11 at 1 54 53 PM

  19. Click toggle and enter the password.

Screenshot 2024-02-11 at 1 55 21 PM

You should have a working VPN!

Screenshot 2024-02-11 at 1 55 54 PM

Note: To check and see if it is working, you can Google “What is my IP?”. It should match with your Public IP.

Screenshot 2024-02-11 at 1 56 20 PM