nat and dr at the same time

Hendrik Thiel thiel at
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".

eth0: some external IP
eth1: some internal IP (default gw for nat-realserver)


realserver1 = eth0:
realserver2 =  eth0:

For DR

realserver3 = eth0:
realserver4 = eth0:

like this ...

Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port          Forward Weight ActiveConn InActConn
TCP rr
  ->                 Masq    1      0       0      
  ->                 Masq    1      0        0      
TCP rr
  ->                 Route   1      0        0      
  ->                   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...

More information about the lvs-users mailing list