LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

nat and dr at the same time

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: nat and dr at the same time
From: "Hendrik Thiel" <thiel@xxxxxxxxx>
Date: Fri, 17 May 2002 13:34:50 +0200
Hi all,
 
I wonder if it is possible to do nat and dr at the same time on one director. We have realserver with external IPs (dr) and some servers
with internal IPs (nat). Incoming requests to "Nat-vip" should be routed to "nat-realserver" and requests to "dr-vip" should be
routed to "dr-realserver".
 
lvs:
eth0: some external IP
eth1: some internal IP (default gw for nat-realserver)
vip: 62.27.221.2 
 
For NAT
 
realserver1 = eth0: 192.168.2.50
realserver2 =  eth0: 192.168.2.51
 
For DR
 
realserver3 = eth0: 62.27.221.51
realserver4 = eth0: 62.27.221.52
 
like this ...

Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port          Forward Weight ActiveConn InActConn
TCP  62.27.221.2:80 rr
  -> 192.168.2.50:80                 Masq    1      0       0      
  -> 192.168.2.51:80                 Masq    1      0        0      
TCP  62.27.221.3:80 rr
  -> 62.27.221.50:80                 Route   1      0        0      
  -> 62.27.221.51:80                   Route   1      0       0      
 
the realserver 1+2  will get the default gw of LVS-eth1.
the realserver 3+4 will be dr patched. the lvs-server will get the ipchains masq entry.
Is the configuration possible? do i miss something?
Thanks in advance...
 
Hendrik Thiel
 
<Prev in Thread] Current Thread [Next in Thread>