[lvs-users] Loadbalacing (DR) without assigning the VIP to loadbalancer

Ruben Laban r.laban at ism.nl
Thu Dec 23 08:57:36 GMT 2010

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

More information about the lvs-users mailing list