LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Question on LVS-NAT with multiple subnets

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Question on LVS-NAT with multiple subnets
From: Neil Prockter <prockter@xxxxxxxxx>
Date: Wed, 31 Mar 2004 00:15:55 +0100
> are you running these commands on the realserver or the director?
realserver

> Are my comments right.

>>>> echo 80 lvs >> /etc/iproute2/rt_tables
> table lvs has numerical value 80 (or maybe priority, forget which)
just a name for a numerical value in a table afaik

>>>> ip route add default <lvs gw address> table lvs
> I assume this is the gateway for the director?
an address on the director from the realserver's side, if that is any
clearer?

>>>> ip rule add from <RIP address as known by lvs> table lvs
> Any packet from the VIP will go what way?

well any packet from the RIP will go through the director, but the real
servers can have have other ips and interfaces. the director is not the
real servers default gateway.

presumably with firewall marks (again on the realserver) it would be
possible to be a bit more exact, rather than everything from that
IP it would be possible to route just traffic that came from the
director, I have no need of that at present but I might test it

perhaps referring to a diagram would help ensure we are
both talking about the same thing?

using http://www.linuxvirtualserver.org/VS-NAT.html

I change nothing on the director

but on the real server I do (assuming the name lvs is in the table)
ip route add default 172.16.0.1 table lvs
ip rule add from 172.16.0.2 table lvs
<Prev in Thread] Current Thread [Next in Thread>