Re: [squid-users] 3 ISPs: Routing problem

From: Chris Robertson <crobertson_at_gci.net>
Date: Tue, 19 May 2009 13:36:18 -0800

RSCL Mumbai wrote:
> On Sun, May 17, 2009 at 11:37 AM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
>
>> RSCL Mumbai wrote:
>>> I tried " tcp_outgoing_address " by adding the following to squid.conf
>>>
>>> acl ip1 myip 10.0.0.120
>>> acl ip2 myip 10.0.0.121
>>> acl ip3 myip 10.0.0.122
>>> tcp_outgoing_address 10.0.0.120 ip1
>>> tcp_outgoing_address 10.0.0.121 ip2
>>> tcp_outgoing_address 10.0.0.122 ip3
>>>
>>> Restarted squid, but no help.
>>>
>>> Pls help how I can get the route rules to work.
>>>
>>> Simple requirement:
>>> If packets comes from src=10.0.0.120, forward it via ISP-1
>>> If packets comes from src=10.0.0.121, forward it via ISP-2
>>> If packets comes from src=10.0.0.122, forward it via ISP-3
>>> And so forth.
>>>
>>> Thx in advance.
>>> Vai
>>>
>> To prevent the first (default) one being used you may need to do:
>>
>> tcp_outgoing_address 10.0.0.120 ip1 !ip2 !ip3
>> tcp_outgoing_address 10.0.0.121 ip2 !ip1 !ip3
>> tcp_outgoing_address 10.0.0.122 ip3 !ip1 !ip2
>>
>
>
> I do not have 5 real interfaces for 5 ISPs.
> And I believe virtual interfaces will not work in this scenario.
>

Works for me (Squid 2.7, Linux kernel 2.6.9+, one physical interface,
two IPs) Be sure to set "server_persistent_connections off" in your
squid.conf.

> Any other option pls ??
>
> Thx & regards,
> Vai
>

Chris
Received on Tue May 19 2009 - 21:36:22 MDT

This archive was generated by hypermail 2.2.0 : Wed May 20 2009 - 12:00:02 MDT