Re: [squid-users] Put all port 80, 443 http https rtmp connections from openvpn through squid?

From: Eliezer Croitoru <>
Date: Sat, 11 Aug 2012 16:27:25 +0300

On 8/11/2012 2:57 PM, J Webster wrote:
> But once the tunnel reaches the OpenVPN server, you can direct port 80
> and 443 traffic from it via the proxy server can't you?
> Once it gets to the OpenVPN server (where you would also have the proxy
> server), isn't it decrypted?
> Lots of companies have VPN tunnels and then route web traffic through a
> proxy so it must be possible somehow.
> On 11/08/12 13:54, Alex Crow wrote:
>> On 11/08/12 08:20, J Webster wrote:
>>> Is there a way to push all openvpn connections using http ports
>>> through a transparent squid and how?
>>> Also, can I log which openvpn certificate/client is accessing which
>>> pages in this way?
>>> I assume I would have to use an alternative port or use firewall
>>> rules to only allow squid connections from the network 10.8.x.x
>> Squid is an HTTP proxy, so no.
>> You can't really proxy OpenVPN as it's end-to-end encrypted with SSL.
>> If you issued the certs from your CA it might be possible to MITM it
>> but that may be illegal in many jurisdictions.
>> Alex
of course you can.
it's a basic IPTABLES rules and since openvpn uses a tunX interface you
can intercept all traffic from the tunX interface to the proxy.
but you cant force the clients to use the vpn as gateway to the whole
word but only to the VPN connection.


Eliezer Croitoru
IT consulting for Nonprofit organizations
eliezer <at>
Received on Sat Aug 11 2012 - 13:41:25 MDT

This archive was generated by hypermail 2.2.0 : Sat Aug 11 2012 - 12:00:03 MDT