Re: [lvs-users] Loadbalacing (DR) without assigning the VIP to loadbalan

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [lvs-users] Loadbalacing (DR) without assigning the VIP to loadbalancer
From: Ruben Laban <r.laban@xxxxxx>
Date: Thu, 23 Dec 2010 09:57:36 +0100
On Wednesday 22 December 2010 at 16:44 (CET), Graeme Fowler wrote:
> On Wed, 2010-12-22 at 15:44 +0100, Ruben Laban wrote:
> > I'm trying to do direct-routing loadbalancing of a complete /23
> Use fwmarks.
> Have an iptables rule (in the 'mangle' table, IIRC) to match on the /23:
> iptables -t mangle -A PREROUTING -d -p tcp \
>    -m tcp --dport 80 -j MARK --set-mark 0x1
> Then in the IPVS config (however you configure it) match on the mark
> value rather than a network prefix.

Forgot to mention that part, I already had a fwmark configured for it, but for 
some reason IPVS couldn't "grab" the actual packets.

On Wednesday 22 December 2010 at 16:57 (CET), Joseph Mack NA3T wrote:
> there's a section in the HOWTO on VIPless directors and
> realservers

The term "VIPless" nudged my google searches in the right direction. I applied 
the routing tricks to route traffic for the fwmark to lo, et voila: it works!

Thank you both for the pointers.

Ruben Laban

Please read the documentation before posting - it's available at: mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to

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