LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] LVS/Nat and source natting

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] LVS/Nat and source natting
From: "luca boncompagni" <lbonco@xxxxxxxxx>
Date: Thu, 27 Nov 2008 19:46:54 +0100
Hi all,

I need to balance a cluster of servers inside the same subnet as below:

_______________________________________________________________
       |               |              |               |
C=10.3.136.23   VS=10.3.136.24  R1=10.3.136.25   R2=10.3.136.26
 _____________   _____________   _____________   _____________
|             | |             | |             | |             |
|   client    | |  director   | | realserver1 | | realserver2 |
|_____________| |_____________| |_____________| |_____________|

The director is a debian/testing with
   - kernel 2.6.26-1-686
   - ipvsadm v1.24 2005/12/10 (compiled with popt and IPVS v1.2.0)

I use:

ipvsadm -A -t 10.3.136.24:80 -s rr
ipvsadm -a -t 10.3.136.24:80 -r 10.3.136.25:80 -m
ipvsadm -a -t 10.3.136.24:80 -r 10.3.136.26:80 -m

and i try with:

iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 10.3.136.24

but SNAT is not working.

How can I do?

Thanks,
Luca


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