Difference between revisions of "Ipvanish VPN"
m |
|||
Line 34: | Line 34: | ||
<br> | <br> | ||
<br>You are now connected. The shell window will show a bunch of code. you will not be able to enter any code to it. Just close the Shell window. | <br>You are now connected. The shell window will show a bunch of code. you will not be able to enter any code to it. Just close the Shell window. | ||
+ | |||
+ | == Confirming your Ipvanish VPN connection == | ||
+ | There are a couple ways to check wether your connection to Ipvanish's servers has really happened. I will show you a couple ways below | ||
+ | <br><br> | ||
+ | - using freegeoip.net | ||
+ | <br> firstly lets get our wan IP address | ||
+ | <br> Issue the following command whilst logged into shell. |
Revision as of 14:06, 15 June 2016
Below you will find a guide on how to connect your Amahi server HDA as a client to Ipvanish VPN.
We are going to connect your HDA through a VPN tunnel to Ipvanish's servers. We will ssh into your HDA, show your current IP addresses Geo location and then connect to Ipvanish's servers and show the geolocation again. I will also introduce you to ways on how to check that your HDA is definitely connected by using a shell based text browser called lynx. Connecting is not a problem as such. I have yet to find a clean way to disconnect the VPN tunnel. in the last part of this tutorial we will disconnect from the VPN tunnel manually ( the hard way).
Contents
what is Ipvanish
Ipvanish is a service that allows you to connect through a secure VPN tunnel and change your locations IP address. this is in particular useful if you need to browse something that is not accessible for your country location. read more about IPvanish here [1]
Prerequisites
- This tutorial assumes that you are running your Amahi HDA headless on version 9 based on fedora 23. Installation instructions can be found here [2]
- You have Openvpn server installed. ( for this tutorial we purchased the amahi app for openvpn). can be purchased here [3]
- Please understand that this tutorial is not perfect as closing the VPN tunnel still requires some manual work.
- I am currently working on a shell script that will allow you to connect , show the status of your geolocation and disconnect.
Getting your config files
You will need to browse on another computer to the location of Ipvanish's config files and decide which location config file you would like to use. please see here http://www.ipvanish.com/software/configs/
For this example I have used ipvanish-NL-Amsterdam-ams-a17.ovpn. You will also need the certificate file ca.ipvanish.com.crt
lets ssh into our HDA server and get these files.
open a terminal window using putty or for linux or mac just use terminal.
ssh username@your_hda_ip_adress
replace ssh username
with your HDA login credentials and your_hda_ip_address
with the ip address of your HDA
After inputting your password you should be in your username folder. In this folder we are going to create a new folder and then change directory to this folder. We will store the config files here
mkdir ipvanish
cd ipvanish
now lets download the files
wget http://www.ipvanish.com/software/configs/ca.ipvanish.com.crt
wget http://www.ipvanish.com/software/configs/ipvanish-NL-Amsterdam-ams-a17.ovpn
Connecting to your VPN
If you have followed the above steps you should have successfully downloaded the config files and we are ready to connect.
issue the following command
sudo openvpn --config ipvanish-NL-Amsterdam-ams-a17.ovpn
.
of course replace your server config name with the one you have chosen.You will be firstly asked to input your HDA's super user password and then the script will run. At some point during the script you will be prompted for your Ipvanish username and password.
You are now connected. The shell window will show a bunch of code. you will not be able to enter any code to it. Just close the Shell window.
Confirming your Ipvanish VPN connection
There are a couple ways to check wether your connection to Ipvanish's servers has really happened. I will show you a couple ways below
- using freegeoip.net
firstly lets get our wan IP address
Issue the following command whilst logged into shell.