Setting up VPN in AWS & Test Your VPN
Table of contents
📍 VPN: What is it?
Virtual Private Network, or VPN for short, is a technology that gives users access to the internet as though they were on a private network while also offering a private and secure connection. VPNs are frequently utilized for a number of reasons, such as:
1) Security: By encrypting the data that is sent between your device and a distant server, virtual private networks (VPNs) make it more difficult for outside parties—like hackers or government agencies—to intercept and monitor your online activity. This is especially crucial because public Wi-Fi networks are frequently less secure.
2) Privacy and Torrenting: By passing your internet traffic via a server located in a foreign country, VPNs conceal your true IP address and location. By making it more difficult for websites and online services to trace your online activity, this helps preserve your online privacy and anonymity.
Some users use virtual private networks (VPNs) to access torrent websites that may be restricted in their area and to participate in peer-to-peer file sharing or torrenting while remaining anonymous.
3)Avoiding Geographical Restrictions: In some places, certain websites and content are geoblocked or limited. You can access information and services that would not normally be available in your location by setting up a VPN server in a different location.
📍 VPN Configuration with AWS
In order to deploy a VPN server on Amazon, first create an EC2 instance and then choose "Browse more AMIs," as seen below.
Search for OpenVPN on the AWS Marketplace AMIs, then choose OpenVPN Access Server.
Proceed with additional configuration, choosing a key pair or creating a new key based on your needs and the launch instance.
After the server is up and running, select Connect. Then, navigate to the SSH section and use the provided command in AWS to establish a connection.
As you can see from the screenshot above, I was unable to login using root and instead connected as the user "openvpn."
Type "yes" and press Enter to accept the agreement after a successful connection.
Leave everything as it is, or adjust as necessary. Create a password for your OpenVPN profile (you can also modify the user name during setting).
Note : I used here system generated password : for Admin login page of Open VPN
As soon as the configuration is successfully finished, the URLs for the admin and client user interfaces are displayed.
When you copy the admin UI address and open it in a browser, the page shown below will load. Enter your password and the username you gave during configuration in the previous stage to log in as openvpn (if your username has changed, use the one you provided).
In the next window click and “Agree” to continue with the process.
After successful login the below pages appears.
Save the changes under VPN settings, Change Routing and DNS Settings, as indicated below.
Save it . After that you Configure as user (as i configure Vyankatesh)
After copying the Client UI address, visit it. The page below will load; use your login credentials to access it.
Select a type and install the OpenVPN application to proceed after logging in below.
Once the application is downloaded, install the application.
After successful installation of the application open the application, a below screen will be displayed.
When you install and connect to the VPN profile that comes installed with it or create a new VPN Profile, a password will be needed. input the password that has been configured.
Note here your current IP
📍 Test Your VPN
Creating A New VPN profile, where i copy my public ip in and pasted in openVPN .
Follow Steps
Configure ID and Password and save password you have to put as to connect VPN.
After a successful connection, the screen below will appear.
So its connected .
Now check your IP
Which means server is getting all the traffic that required .
Many congratulations 🏉! You learn about Setting up OpenVPN in #AWS Cloud
I hope you enjoy the blog post!
If you do, please show your support by giving it a like ❤, leaving a comment 💬, and spreading the word 📢 to your friends and colleagues 😊