I would like to set up a vps where I've got squid and openvpn.
I have already installed squid and openvpn but I need to configure them in order to achieve the following:
My pc acting as client gets the ovpn config file to connect to the vps, the traffic is then modified with squid by modifying l the http headers of certain websites.
The job consists in routing the internal vps traffic and configuring the ovpn file I get for the client.
I don't know if the proxy needs to be in front or after the vpn in order to modify the http headers
Do you want it to work as a transparent proxy or you configure it in a browser/os?
In first scenario you will have to redirect traffic via proxy with iptables (I'm assuming it's linux box)
In second one you just set proxy ip:port accessible within the vpn and it should work (so I assume first option is the one you want)
If proxy will be on that box with vpn server traffic flows as this: Internet <-> Proxy <-> VPN <-> User