Re: [squid-users] DNS-based reverse proxy peer selection, 2.5 vs 2.6

From: Adrian Chadd <adrian@dont-contact.us>
Date: Tue, 19 Feb 2008 10:28:45 +0900

On Tue, Feb 19, 2008, Amos Jeffries wrote:

> > Is there a way to do this in 2.6?
>
> Yes, with a little trickery in DNS. You need to use DNS-views so that the
> public see squid as being an A/AAAA for the domain and squid does not. If
> squid ever find itself as a source server for any of the domains its
> accelerating you get a forwarding-loop.

You can use /etc/hosts too; Squid will load that into memory on startup.

> Other than that catch; configure squid as a normal 2.6 accelerator with
> vhost and defaultsite on the http_port line, omit any cache_peer_*
> settings, and set as an open-proxy for the domains you are providing.
> An external acl helper may be needed to accurately limit the open-proxy
> behaviour to just the hosted domains.

Which is what I've done in the past; works quite well.e

Adrian
Received on Mon Feb 18 2008 - 18:16:04 MST

This archive was generated by hypermail pre-2.1.9 : Sat Mar 01 2008 - 12:00:05 MST