Re: Can Squid try two different routes?

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 09 Mar 2000 21:11:17 +0100

John Ridley wrote:

> The machine running Squid has two IP addresses, one in the class C that gets
> routed through the main connection, and one in the class C that gets routed
> to the other provider. As a bonus, the other provider is also running Squid
> and we are peered with them.

You can make an approximation if you configure the the other ISP as a
non-ICP peer, and configure Squid with "prefer_direct on".

cache_peer squid.other.isp parent 3128 0 no-query
prefer_direct on

You probably also want a reasonably low connect timeout

connect_timeout 5 seconds

This way Squid will first try to contact the source directly, and if the
connection cannot be established within connect_timeout fall back on
using the Squid parent at the other ISP.

--
Henrik Nordstrom
Squid Hacker
Received on Fri Mar 10 2000 - 05:17:20 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:52:02 MST