How to Route HTTP/HTTPS through 3rd Party Proxy?
-
I have a weird use case whereby I want a whole bunch of devices connected to my network that need to use a web proxy provided by a third party.
I can find plenty of guides on how to set up traffic to head through the likes of Squid hosted upon the pfSense device itself, though nothing around how to have traffic use a third party hosted proxy.
Does anyone have any idea how I could accomplish this if it's even possible?
Thanks
-
@paraxial
That depends on your setup and on the proxy type.
The proxy is inside your LAN behind pfSense as well as the destination devices?
Is it a reverse proxy?
Is it a standard proxy or is it in transparent mode? -
When you run Squid in transparent mode on pfSense it adds port forwards to the listening interfaces to redirect traffic on ports 80 and 443 to localhost.
You can just as easily add those manually and point them at some other IP where the proxy is.
If it's on the same subnet things get complex to avoid asymmetric routes.But, yeah, it depends what the clients are and why they 'need' to use the proxy. The cleanest way to do it is configure the clients to use the proxy. pfSense doesn't have to do anything then beyond routing the traffic.
Steve