> 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
|