LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: lvs + squid + squidguard

To: "'LinuxVirtualServer.org users mailing list.'" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: lvs + squid + squidguard
From: "Tony Spencer" <tony@xxxxxxxxxxxxxxxxxx>
Date: Thu, 13 Oct 2005 14:18:15 +0100
Hi Graeme

I've now fixed this by adding an iptables rule to the RIP for any request to
the VIP:80 to be rewritten to the RIP:80 and it works fine.
I couldn't have used a redirector since I'm already using squidguard as a
redirector, which is my next problem to solve.

Thanks
Tony

-----Original Message-----
From: lvs-users-bounces+tony=games-master.co.uk@xxxxxxxxxxxxxxxxxxxxxx
[mailto:lvs-users-bounces+tony=games-master.co.uk@xxxxxxxxxxxxxxxxxxxxxx] On
Behalf Of Graeme Fowler
Sent: 13 October 2005 14:09
To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: lvs + squid + squidguard

On Thu 13 Oct 2005 13:36:18 BST , Joseph Mack NA3T <jmack@xxxxxxxx> wrote:
> On Thu, 13 Oct 2005, Tony Spencer wrote:
>> It fails if squid is trying to serve a page that is local, that is if the
>> page is on a web site that resolves back to the VIP.
>
> you need to do special things to get the realservers to be a client 
> in an LVS.

In this case, using Squid, you can do other clever things - as long as 
you know where your virtual hosts are inside your platform (or can 
determine this programatically) then Squid can run a "redirector" 
script to send the requests directly to the virtual hosts.

That way if the squids need to request a page on a VIP which is on the 
director you can "redirect" the request to a realserver without going 
via the director at all.

http://squid.visolve.com/squid/squid24s1/externals.htm#redirect_program
http://squid.visolve.com/squid/squid24s1/glossary.htm#external_programs

Graeme


-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.14/131 - Release Date: 12/10/2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.14/131 - Release Date: 12/10/2005
 


<Prev in Thread] Current Thread [Next in Thread>