Re: [squid-users] ip aliased multi-instanced squid

From: errno <errno_at_cox.net>
Date: Thu, 2 Jun 2011 01:17:38 -0700

On Thursday, June 02, 2011 01:03:06 AM Amos Jeffries wrote:
> On 02/06/11 19:41, errno wrote:
> > Just to confirm:
> >
> > If I have multiple ip aliases assigned to the same physical nic, will
> > there still be port conflicts on an ip (aliased) based multi-instanced
> > squid server?
>
> There is rarely a need for the combo of IP aliasing + Squid.
>

Sure, but assuming in this case it is indeed necessary for us to have,
say, a few separate squid instances running on separate IPs - we're
using IP aliasing because we only have a single NIC on the box:

> The example script there uses TPROXY
>

... and we don't need any load balancing... so, iptables/TPROXY
does not apply.

There won't be any issues having multiple instances via aliased IPs,
all on port 3128, as per the following example, correct?

> For example:
>
> eth0 -> 192.196.0.2
> eth0:1 -> 192.196.0.3
> eth0:2 -> 192.196.0.4
>
>
> squid_192.196.0.2.conf
> # ...
> http_port 192.196.0.2:3128
> # ...
>
>
> squid_192.196.0.3.conf
> # ...
> http_port 192.196.0.3:3128
> # ...
>
>
> squid_192.196.0.4.conf
> # ...
> http_port 192.196.0.4:3128
> # ...
>

Thanks again, very much appreciated.
Received on Thu Jun 02 2011 - 08:18:53 MDT

This archive was generated by hypermail 2.2.0 : Thu Jun 02 2011 - 12:00:02 MDT