A easy to use VPN inside amazon EC2 instance.
You will require an amazon AWS account, which can me created for free from: here
After createing your account signin as a root user and start amazon cloudshell.
Go to your account tab, and find "My Security Credentials" in the menu; Click on Access Keys Option then click on create new access keys.
Download these keys as a file, this file will be named rootkey.csv
, Extract the keys from this file and paste them in a .txt
file.
-
Create a virtual environment:
pip3 install virtualenv virtualenv -p python3 env/ source env/bin/activate
When finished working the virtualenv can be closed by
exit
-
install the depedencies from the
requirements.txt
file.pip install -r requirements.txt
-
Run the following snippet (use the filename of the security key file that has been created):
bash init.sh <filename>.txt
-
Finally, run the VPN:
./awsvpn -G -r ap-south-1