nat and dr at the same time

Hendrik Thiel thiel at falkag.de
Fri May 17 12:34:50 BST 2002


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.graemef.net/pipermail/lvs-users/attachments/20020517/61063ff6/attachment-0001.html 


More information about the lvs-users mailing list