Barry Brimer wrote: > > Rodrigo Barbosa wrote: > > > On Thu, Jan 26, 2006 at 04:15:59PM -0500, Bowie Bailey wrote: > > > > I am trying to configure load balancing for a couple of CentOS4 > > > > servers. > > Have a look at the Piranha/LVS direct routing information here: > <http://www.redhat.com/magazine/014dec05/departments/tips_tricks/> > > You will have to scroll down the page to find it. Interesting. I'm not too familiar with iptables, but based on that tip and what I've read from the man page, I should be able to do this for a webserver: iptables -t nat -A PREROUTING -p tcp -d 192.168.1.20 \ --dport 80 -j REDIRECT This should allow my machine to accept packets destined for the virtual IP (on port 80) and redirect them to localhost. Did I mess anything up there? Just a couple of questions come up here: 1) Do I still need to enable ip_forward? 2) When the server replies to the client, will the reply be sent from the proper virtual IP address? -- Bowie