LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: LVS and dynamic routing

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: LVS and dynamic routing
From: Horms <horms@xxxxxxxxxxxx>
Date: Wed, 26 May 2004 10:59:32 +0900
On Tue, May 25, 2004 at 10:37:49AM -0400, Joseph Mack wrote:
> Horms wrote:
> > 
> 
> > Actually you can get around needing a local interface 
> > if you play some games with routing rules to deliver traffic locally.
> 
> can you give an example (with iptables?)

I was thinking of something like what Matt wrote:

http://marc.theaimsgroup.com/?l=linux-virtual-server&m=104265930914084&w=2

ip rule add prio 100 fwmark 1 table 100
ip route add local 0/0 dev lo table 100

or perhaps

VIP=10.0.0.1/32
ip rule add prio 100 to $VIP table 100
ip route add local 0/0 dev lo table 100

But I haven't tested either much.


There is an oblique reference to this on
http://www.linuxvirtualserver.org/docs/arp.html

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