Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-14-2005, 08:57 AM   #1
Registered: Dec 2004
Location: india
Posts: 60

Rep: Reputation: 15
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--------------- eth0 ( Clients side interface )
LVS--------------- eth1 (realserver side interface)
Realserver1----- eth0 (squid server)
Client side-------- eth0
The default gateway of Realserver is (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 -s wlc
ipvsadm -a -t -r -m
But the problem is the client internet request (as per above scheduling) should goto squid( squid itself is not capable of serving internet requests.It has to contact with some webserver ( e.g. .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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to configure squid lzakir Debian 1 07-06-2005 01:22 PM
still not able to configure the squid Faizan Linux - Networking 4 05-06-2005 11:04 PM
To configure squid neophyte_linux Linux - Newbie 1 04-05-2005 04:50 PM
high availability squid without LVS--------- pal Linux - Networking 0 02-17-2005 10:05 AM
squid with LVS-------------------- pal Linux - Networking 8 02-13-2005 04:32 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration