OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: minime on February 08, 2017, 05:16:58 pm

Title: Using Proxy also through an OpenVPN connection
Post by: minime on February 08, 2017, 05:16:58 pm
Hi guys,

Might be a simple question for you, but I can't figure this quite out. I have a working squid for my LAN, but now I would also make use of it when connected through a OpenVPN connection. How can I achieve this?

Many thanks,
Minime
Title: Re: Using Proxy also through an OpenVPN connection
Post by: minime on February 12, 2017, 03:43:37 pm
Anyone? I tried it with Port Forwarding with no effect.
Title: Re: Using Proxy also through an OpenVPN connection
Post by: fabian on February 12, 2017, 06:54:05 pm
Does it work, when you configure it in your client and allow it in your firewall rules (for example pass openvpn_net to self port 3128)
Title: Re: Using Proxy also through an OpenVPN connection
Post by: minime on February 13, 2017, 08:30:25 am
No, and I start to think that it is not possible as it would break the secure connection...  :-/
Title: Re: Using Proxy also through an OpenVPN connection
Post by: fabian on February 13, 2017, 02:28:38 pm
So your real question is "How do I connect to an OpenVPN server through the proxy?"?

If yes: you need an ACL which will allow a HTTP CONNECT request to your server.
Title: Re: Using Proxy also through an OpenVPN connection
Post by: minime on February 13, 2017, 03:03:06 pm
Hmmm...not sure, but I think this is not what I mean.

I would like to establish a OpenVPN connection first and then use my squid/proxy to improve performance and also to filter unwanted sites. I am using the OpenVPN server on port 443. Squid is only listening on port 80 (no SSL certificate).

Can I provide further information? What would you need?
Title: Re: Using Proxy also through an OpenVPN connection
Post by: fabian on February 14, 2017, 12:48:46 pm
just add ip:80 as proxy to your browser configuration.