Multi-Hop VPN Setup Script for AWS.
Private Internet Access
sudo su
apt-get install openvpn git
cd /etc/openvpn
git clone ... VPNChain
crontab -l > newCronTab
echo "@reboot /etc/openvpn/VPNChain/build_chain.sh >/etc/openvpn/VPNChain/logs/chain.log 2>&1" >> newCronTab
crontab newCronTab
rm newCronTab
echo "PIA_USERNAME" > base/pia/auth.txt
echo "PIA_PASSWORD" >> base/pia/auth.txt
shutdown -r now
- Create new
providers/PROVIDER
file .1. The first line should be the relitive location of your .ovpn file (base/PROVIDER/PROVIDER.ovpn) .1. The rest of the file should containSERVER,PORT
infromation for that providers servers (at least the ones you want to use) - Copy
PROVIDER.ovpn
tobase/PROVIDER/PROVIDER.ovpn
- Copy any needed files to
base/PROVIDER
- I.E. (ca.crt, clr.pem, auth.txt) - Edit
PROVIDER.ovpn
to put any file paths tobase/PROVIDER/FILE