LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Using LVS to forward HTTP from port 80 to servers running on port 81

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Using LVS to forward HTTP from port 80 to servers running on port 81
From: Spencer Tuttle <rodeojones@xxxxxxxxxxx>
Date: Thu, 13 Jul 2006 15:36:51 -0600
Travis Melhiser wrote:
I'm pretty new to LVS and can't seem to find the right configuration or the right documentation to get my environment set up.

I would like to have requests come to the LVS server on port 80 an then have the LVS server forward these requests to the machines in the cluster running the web servers on port 81.

Does anyone have an example of how to set this up?

Thanks in advance,

-T

Simply allow port 80 through firewall, enable connection tracking in iptables, then create VIP using:

ipvsadm -A -t ipaddress:80 ..... etc.
then add real server
ipvsadm -a -t ipaddress:80 -r realserver:81 -m ... etc.

Spencer


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