Monday, April 13, 2020

Setup RPI as VPN Server (openvpn) with Web Proxy (Privoxy)

Setup as VPN Server


Install openvpn
sudo apt-get openvpn

Follow fastestvpn RPI openvpn tutorial - https://support.fastestvpn.com/tutorials/linux/raspberry-pi/openvpn

cd ~
cd downloads

#Download open vpn configuration files
wget https://support.fastestvpn.com/download/openvpn-tcp-udp-config-files/ -O fastestvpn-config.zip
unzip fastestvpn-config.zip -d fastestvpn-config

#Start open vpn in background
sudo openvpn ./fastestvpn-config/TCP_Files/India-Jaipur-TCP.ovpn&

# Privoxy
## config
sudo nano /etc/privoxy/config
## start/stop
sudo service privoxy start/stop

Setup openvpn client for Privoxy


  1. Create config /var/openvpn/fastestvpn-india.conf
    1. Add auth-user-pass /var/openvpn/fastestvpn.login
    2. create file /var/openvpn/fastestvpn.login
      1. first line should be username
      2. second line should be password in plain text
    3. Add log=/var/log/openvpn/fastestvpn-india/log.log
    4. Add status=/var/log/openvpn/fastestvpn-india/status.log
  2. Update /var/default/openvpn and add AUTOSTART="fastestvpn-india"


Testing

  1. Install a browser and use it specifically to access indian websites and configure proxy.
  2. Open www.ip-adress.com and verify IP address and region.

No comments: