i’m currently running openvpn and a squid proxy on a small vps.
In the config file of the vpn i’m using openvpn proxy options to connect to the proxy before the vpn.
The interesting part of the configuration is like this:
*Note: the redacted ip in the config file is the same as both squid and openvpn server are on the same vps.
[...] remote xxx.xxx.xxx.xxx 15855 tcp-client http-proxy xxx.xxx.xxx.xxx 3128 [...] http-proxy-option CUSTOM-HEADER Host [redacted] [...]
I understand that the proxy is located before the vpn connection, but squid being a http proxy how can it handle the TCP connection to the vpn?
When the custom header is passed? It’s passed when the client connects to the proxy or when from the proxy the packets go to the vpn?
Can anybody explain it or point me to some reference to better understand what’s happening?