[Question] Specific URL Redirect to Privoxy Instance

Started by meelokun, November 16, 2022, 05:45:03 PM

Previous topic - Next topic
November 16, 2022, 05:45:03 PM Last Edit: November 17, 2022, 02:14:06 AM by meelokun
Is it possible to utilize OPNsense to filter specific websites and redirect them to an existing proxy service (privoxy) that is active on another device on the same subnet? (As opposed to configuring each client's proxy settings with the privoxy server, and pushing through all web traffic through the proxy that is using a VPN).

Or should i think about filtering specific URLs through a VPN? Is that even possible?

[the idea being, that any device on the LAN, can go to said URL, and it would be tunneled through the proxy, without any additional configuration on the client side]

Why?: My ISP decided this URL should be blocked (ip aware blocking, dns changes made no difference), and thus a proxy/vpn was necessary to overcome that.

Just a thought i had, and am curious if either scenario is feasible or not. And if so, how would one get that configured?

Update: This looks like what im looking for https://docs.opnsense.org/manual/how-tos/proxytransparent.html

Update 2: I think im looking at this the wrong way, maybe i can utilize HAProxy... i might have to post this on the HAProxy forum though...

Kind of late but for future references, you can achieve what you want in several ways:

  • QuoteOr should i think about filtering specific URLs through a VPN? Is that even possible?
    Sure you can, you need to configure a parent proxy and send these specific links to it and then route the parent through the VPN tunnel (read more on cache_peer)
  • You can also route all proxy traffic through the VPN.
For a how to you can read the tutorial I wrote: https://forum.opnsense.org/index.php?topic=32642.0
Disclaimer: All advice presented is "AS IS", no warranties.
I'm not part of the opnsense team, just trying to help.