LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: client source IP based redirection

To: S Ashok Kumar <gsaki@xxxxxxxxxxxxx>
Subject: Re: client source IP based redirection
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
From: Horms <horms@xxxxxxxxxxxx>
Date: Wed, 10 May 2000 11:22:10 -0700
On Wed, May 10, 2000 at 12:45:42PM +0000, S Ashok Kumar wrote:
> 
> Is it possible to direct requests for one service (say HTTP)
> to a set of servers based on source IP address of the client?
> 
> For example, client A (IP: 10.1.1.1) should be directed to
> one of: 192.168.10.1, 192.168.10.2 or 192.168.10.3. Similarly
> client B (IP: 10.2.2.1) should be directed to one of:
> 192.168.20.1, 192.168.20.2 or 192.168.20.3.
> 
> I do not find any information about this in the documentation
> of Linux VS.

Wow, policy load balabcing.

This would be posible if  you matched the packets with the disired
source addresses and tagged them with apropriate marks, using the
-m option to ipchains. Then set up ipvs virtual services
matching on the firwall marks, using ipvsadm -A -f ... .

See the man page for the ipvsadm (>=v1.9) for details on
using the -f option.

I am thinking that I should write a mini-howoto on the many and varied
problems people are coming up with that the frewall mark code can
be used for.

-- 
Horms


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