Jon DeLee wrote:
> *This message was scanned for all current viruses and is certified clean*
>
>
> Hi All,
>
> I'm using Squid 3.0. STABLE 8 as my main cache, and I have two other
> 2.7 caches set up, one on each WAN connection. The only reason we
> have multiple proxy servers is to load balance; in reality I only need
> the one 3.0 server, which has access to both WAN links.
> I don't want any ACLs that force one group of users to one outgoing
> IP; I just want Squid to see that it has two paths to the internet and
> use them in a weighted round-robin fashion.
> I have tried setting up one direct and one parent, but no weighting
> occurs because Squid prefers direct routes if possible.
>
> I have tried to force squid to use an IP address on the machine and
> set up multiple weighted routes from that IP, but strange things
> happen with web sites that check source IP address, so it needs to be
> something that Squid can control.
>
>
> Any suggestions?
For two links, I would think that an external_acl_type that makes a hash
of the domain (or perhaps just the top level domain) and returns true
for half (or whatever distribution you want) and false for the rest,
associated with tcp_outgoing_address would work.
external_acl_type domainhash %DST /my/helper/scripts/domainhash
acl domainhash external domainhash
tcp_outgoing_address 192.168.18.45 domainhash
tcp_outgoing_address 10.32.97.43 !domainhash
I can't make any promises regarding the fail-over capability of this setup.
>
> Thanks,
>
> Jon DeLee
Chris
Received on Wed Dec 30 2009 - 20:57:40 MST
This archive was generated by hypermail 2.2.0 : Thu Dec 31 2009 - 12:00:02 MST