This a simple guide for using VPN on campus. Technically making your own VPN access server.
-
Github Student Developer Pack https://education.github.com/pack
-
Azure Account {with student pack you will get free 100$ credits}
-
Go to Microsoft Azure and click on create a virtual machine & select azure virtual machine.
-
Fill in the required details with carefully selecting image,size,region.Here's a sample choice.
-
Select SSH public key as authentication method and add inbound port 80 or 443.
- Click create machine and make sure to download private key.
- Now head over to the connect section and ssh into your VM using native ssh.
- Skip to Step 8 if you are able to successfully ssh into your VM.
- If you encounter problem unprotected private key watch this video : https://www.youtube.com/watch?v=mrUqITjUhL8
- After successfully ssh into your VM run this script as root user.
curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh
chmod +x openvpn-install.sh
Then run it:
./openvpn-install.sh
- Open VPN setup
1. Ip address : Public Ip of your VM
2. Ipv6: no
3. port: custom (80/443,port which is open for your VM)
4. DNS: Your choice (Google one is good)
5. Now leave rest settings to default & keep pressing enter until script starts.
6. After script is finished create a passwordless client and download its ovpn files.
7. To download - scp -i <private key destination> <user>@<host>:<destination file>
- Now download OPEN VPN client and upload the .ovpn file downloaded in previous step and Boom!.