Redirect web traffic to a proxy server
-
Hai all,
I have a pfsense standing between my LAN and the internet, just
Internet <-> pfsense <-> LAN switch
pfsense acts as a transparent proxy for the LAN clients; Lately I have enabled the load balancer service to make a fail over to another WAN connection, the fail over works great except with the web traffic; I am aware about this issue that pfsense doesn't do fail over for web traffic in case it's working as a transparent proxy, so I configured another squid server inside the LAN to be used as the proxy server, and let pfsense do the fail over and disabled the proxy in pfsense as well. And everything works great.
My question, could I use pfsense to redirect the outbound web traffic to this squid server instead of defining the proxy server on each machine inside the LAN? I tried to play with the outbound traffic under NAT, but I had no luck.
Please advice
-
Yes - you should find a few threads about this since it's been covered before.
Effectively you're setting up a remote transparent proxy. Just ensure that you exclude the proxy itself from this, otherwise traffic will go around in circles ;)