LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: Newbie on ipvs

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: Newbie on ipvs
From: guioc@xxxxxxxxxxxxxxxx
Date: Wed, 30 Jul 2003 17:05:44 -0300
> > # and to test it all I used iptables internal load balancing utility
> > # with the command
> > iptables -t nat -A PREROUTING -d 192.168.1.77 -j DNAT 
> > 192.168.1.15-192.168.1.16
> 

> > iptables -t nat -A POSTROUTING -j SNAT 192.168.1.77
> 
> Maybe I'm going (am) crazy, but what does this do?  SNAT to what target?
> 

I understood your question now, sorry it was a small typo in both examples. I
forgot the --to the actual commands I issued are

iptables -t nat -A PREROUTING -d 192.168.1.77 -j DNAT --to\
192.168.1.15-192.168.1.16

and

iptables -t nat -A POSTROUTING -j SNAT --to 192.168.1.77

Sorry for it ;-)


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