[lvs-users] Risposta: Re: LVS balancing real server with 2 ip address

Roberto Galluzzi Roberto.Galluzzi at zucchetti.it
Tue Sep 27 09:49:15 BST 2011

My Squid version uses only 1 core so I distribute the load on more instances on the same machine.

About NAT I read that real server need to set director as default gateway. But my real server has a firewall as default gateway that let the exit on the internet.

Do I need to add a route?


>>> David Coulson <david at davidcoulson.net> 27/09/2011 9.04 >>>

On 9/27/11 2:47 AM, Roberto Galluzzi wrote:
> ipvsadm -A -t -s lblc
> ipvsadm -a -t -r -g
> ipvsadm -a -t -r -g
Your problem is a packet routed through the load balancer hitting either 
of these real server rules is going to look the same to the real server 
- It will have no way of distinguishing between them and handling the 
packet with the correct squid instance.

I'm not sure the reasoning behind trying to route to two squid instances 
on the same box, but doing NAT rather than direct routing will probably 
make it work.


Please read the documentation before posting - it's available at:

LinuxVirtualServer.org mailing list - lvs-users at LinuxVirtualServer.org 
Send requests to lvs-users-request at LinuxVirtualServer.org 
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

More information about the lvs-users mailing list