Re: [lvs-users] Persistence related question

To: " users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] Persistence related question
From: Graeme Fowler <graeme@xxxxxxxxxxx>
Date: Mon, 10 Nov 2008 18:05:54 +0000
On Mon, 2008-11-10 at 19:42 +0200, Cristi wrote:
> I have a LVS NAT setup running for some time now. I want, for management 
> issues, that connections to the VIP from a certain host (i don't even 
> need granularity) to always be redirected to RS01, for example.
> If this cannot be done via ipvs, could you please sugest another course 
> of action?

Combine netfilter marks (fwmarks) and a virtual service based on mark
values instead of VIP.

Catch packets from destined for the VIP service port and set a

iptables -t mangle -I INPUT -s -d $VIP \
        -p tcp --dport $VIP_PORT -j MARK --set-mark 0x1234

ipvsadm -A -f 0x1234
ipvsadm -a -f 0x1234 -r -m

This way, hopefully, all packets from will end up being handled
by only. Give it a try.


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