configure squid with lvs------------------
We are a group of students working on Linux virtualserver (LVS) project.We want to implement Squid services through LVS.We had implemented already Mailservers through LVS.We are facing some problems on configuring LVS with squid.Kindly spare some time to solve our problem:
We are using LVS with two ethernet cards( eth0 ,eth1) and one Realserver (working as squid ) having one ethernet card . We are using two networks .One with LVS eth0 and clients side .And other with
LVS eth1 and realserver side.We are using LVS-NAT method. We are giving an example:-
LVS---------------10.11.151.24 eth0 ( Clients side interface )
LVS---------------10.11.150.98 eth1 (realserver side interface)
Realserver1-----10.11.150.82 eth0 (squid server)
Client side--------10.11.151.93 eth0
The default gateway of Realserver is 10.11.150.98 (i.e. LVS eth1).
Without LVS Squid is working fine.With LVS if we Schedule the clients
internet requests to be forwarded to Realserver(squid) as follows
:
ipvsadm -A -t 10.11.151.24 -s wlc
ipvsadm -a -t 10.11.151.24:80 -r 10.11.150.82:3128 -m
But the problem is the client internet request (as per above scheduling) should goto squid(10.11.150.82).But squid itself is not capable of serving internet requests.It has to contact with some webserver ( e.g. yahoo.com) .The default gateway of Squid is LVS eth1.So, Squid has to goto internet through LVS only.Then What exactly should we write in the LVS server and Realserver so that the client requests should be served properly.
Last edited by pal; 02-14-2005 at 08:59 AM.
|