Skip to content

Instantly share code, notes, and snippets.

Last active November 10, 2020 10:42
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save WillSams/c59f6de32b394208b28b090edbb76ae8 to your computer and use it in GitHub Desktop.
Save WillSams/c59f6de32b394208b28b090edbb76ae8 to your computer and use it in GitHub Desktop.
Set up IPVanish on Raspberry PI 3
# This script is designed to execute via the shell. Download this script on
# your Pi, edit the user and passwd above, execute the following commands:
# chmod +x
# sudo ./
# Of course, you can use this script just as a reference and type everything out.
# Place your ip vanish username here. For example, IPVANISHUSER=picrazy
apt-get install openvpn -y
mkdir /home/IPV && cd IPV
cp privacy.crt
wget privacy.oVPN
cp ipvanish-US-atlanta-atl-a01.ovpn privacy.oVPN
$IPVANISHPASSWD" >> pass.txt
echo "nameserver" | sudo tee -a /etc/resolv.conf
echo "nameserver" | sudo tee -a /etc/resolv.conf
sudo chattr +i /etc/resolv.conf
# comment out current call for exit. We'll replace it later.
sed -i -e 's/exit 0/#exit 0/g' /etc/rc.local
echo "sleep 5
cd /home/IPV
sudo openvpn --config /home/IPV/privacy.ovpn --ca /home/IPV/privacy.crt --auth-user-pass /home/IPV/pass.txt
exit 0" >> /etc/rc.local
Copy link

islesailor commented Jul 5, 2017

Trying to get IPVanish installed on my Pi 3 , os is raspberian jesse. Went through all steps down to 19 with no errors. Executing step 20 I get the following
root@raspberrypi:/home/IPV# sudo openvpn --config /home/IPV/privacy.ovpn --ca /home/IPV/privacy.crt --auth-user-pass /home/IPV/pass.txt
Options error: In [CMD-LINE]:1: Error opening configuration file: /home/IPV/privacy.ovpn
Use --help for more information.
What happened?
Also don't understand line 15. vim is not a command.
Kelton Joyner

Copy link

nakedjohn commented Jul 22, 2017


Typo line 7, should read:

cp ipvanish-US-atlanta-atl-a01.ovpn privacy.oVPN

In line 15, substitute nano for vim, copy those three lines into /etc/rc.local

NANO /etc/rc.local

Copy link

Gitingo commented Aug 23, 2017

Hello Willsams,
How I can check if it's works?

Copy link

Sorry, didn't notice any of these comments until now. I've made a modification to just use 'echo' instead of relying on Vi or Nano.

Copy link

WillSams commented Apr 15, 2019

Also, I originally worked on this in 2016. I'm not sure how I actually checked to see if this was working correctly. I guess you can check a "what is my IP" site using the lynx command line browser.

Copy link

I seem to understand it uses openvpn as a client with the ipvanish servers.

How can I configure it so to have the other ipvanish client features, that is all traffic will be routed via vpn, no dns leak and make sure vpn stays up..... if at all possible with openvpn? I am happy to do the required googling but just to know if those are features at all possible. thanks!

Copy link

Hi, Massimiliano. I only used it for a month, I unfortunately don't know enough to answer those questions. Sorry :(

Copy link

thanks anyway @WillSams !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment