Software apps and online services
A VPN is a point-to-point connection that lets you move data securely between two sites across a public network. Effectively, a tunnel can be designed to combine two geographically separated private sites into one single private network.
Here we will run OpenVPN software to create our virtual private network in a EC2 instance on AWS Services.Steps
- Create Ubuntu EC2 instance
When the machine boots, run the following commands:
apt-get update apt-get upgrade wget https://raw.githubusercontent.com/leoribg/openvpn-install/master/openvpn-install.sh chmod 777 openvpn-install.sh bash openvpn-install.sh
When you run the openvpn script, you will need to provide some information:
- Server IP address - I recommend you get the public ip of your instance, you can check it on aws ec2 portal.
- Protocol - Select UDP.
- Port - Select default
- DNS - Select Google
- Finally, create a key for a client. Type client for the name.
Now openVPN is installed in your machine.Connect Client
On windows, download OpenVPN GUI https://openvpn.net/community-downloads/
After install it, lets download the configuration file you have created in previous steps. Connect to your instance using filezilla or WinSCP and download client.ovpn file.
Open openVPN GUI Software and import client.ovpn file.
Now click on client and connect!
When connected an IP address will be attached to your computer and you can ping your instance.
So you can install it on your raspberry too and control it remotelly.