Skip to content

Instantly share code, notes, and snippets.

@WillSams
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 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
@mbariola
Copy link

thanks anyway @WillSams !

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