LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: LVA-NAT

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: LVA-NAT
From: Horms <horms@xxxxxxxxxxxx>
Date: Sun, 9 Nov 2003 12:25:30 +0900
On Sun, Nov 09, 2003 at 11:09:28AM +0800, Salah Abdulla wrote:
> Good day,
> 
> I have installed LVS-NAT with 1 directory having 2 interfaces for VIP and
> DIP. Configured 2 real servers. Seccsucfully confgured HTTP load balanceing.
> The director has configured properally for both networks. I'm having a
> dificulty in setting up a route from the real servers network to the other
> network. iptables is allowing the ports. Any advise please.

If you want the real servers to be able to open connections
to the outside world then you will need the director to masquerade
these connexctions. Something like this should work

/sbin/iptables -t nat -A POSTROUTING -s 172.16.0.0/12 -j MASQUERADE

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