The point is we start proxy that works through openvpn tunnel:
Local area | Internet |
---|---|
Browser -> squid -> openvpn client => | => openvpn server |
-
You need
docker
anddocker-compose
installed on your machine -
Enable ip forwarding on your local host machine(it will affect docker containers also):
- Temporary(without rebooting the system):
sysctl -w net.ipv4.ip_forward=1
- Permanent:
echo "sysctl net.ipv4.ip_forward = 1" >> /etc/sysctl.conf
-
Put in
vpn/client.ovpn
your vpn client config(there is examplevpn/client.ovpn.dist
) -
Start docker-compose by running
docker-compose up -d
-
Set proxy setting in your browser to:
Protocol Host Port http localhost 3128