# 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 ipvanish_on_raspberry_pi.sh | |
# sudo ./ipvanish_on_raspberry_pi.sh | |
# 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 | |
IPVANISHUSER= | |
IPVANISHPASSWD= | |
apt-get install openvpn -y | |
mkdir /home/IPV && cd IPV | |
wget https://www.ipvanish.com/software/configs/ca.ipvanish.com.crt | |
cp ca.ipvanish.com.crt privacy.crt | |
wget https://www.ipvanish.com/software/configs/ipvanish-US-atlanta-atl-a01.ovpn privacy.oVPN | |
cp ipvanish-US-atlanta-atl-a01.ovpn privacy.oVPN | |
echo "$IPVANISHUSER | |
$IPVANISHPASSWD" >> pass.txt | |
echo "nameserver 8.8.8.8" | sudo tee -a /etc/resolv.conf | |
echo "nameserver 8.8.4.4" | 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 | |
reboot | |
This comment has been minimized.
This comment has been minimized.
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 |
This comment has been minimized.
This comment has been minimized.
Hello Willsams, |
This comment has been minimized.
This comment has been minimized.
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. |
This comment has been minimized.
This comment has been minimized.
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. |
This comment has been minimized.
This comment has been minimized.
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! |
This comment has been minimized.
This comment has been minimized.
Hi, Massimiliano. I only used it for a month, I unfortunately don't know enough to answer those questions. Sorry :( |
This comment has been minimized.
This comment has been minimized.
thanks anyway @WillSams ! |
This comment has been minimized.
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
islesailor@gmail.com