LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

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

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Using LVS to forward HTTP from port 80 to servers running onport 81
From: "Deon van der Merwe" <deonvandermerwe@xxxxxxxxx>
Date: Thu, 13 Jul 2006 22:59:28 +0200
Hi Travis,

More or less something like this:
/sbin/iptables -F
/sbin/iptables -t nat -F
/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp -s 0/0 --dport 80
-j DNAT --to 192.168.100.11:81


On 7/13/06, Travis Melhiser <tmelhiser@xxxxxxxxxxx> wrote:
I am willing to give it a try.  I'll try to work it out here, but it would
be extremely helpful if you had  an example of the iptables command?


>From: "Deon van der Merwe" <deonvandermerwe@xxxxxxxxx>
>Reply-To: "LinuxVirtualServer.org users mailing list."
><lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
>To: "LinuxVirtualServer.org users mailing list."
><lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
>Subject: Re: Using LVS to forward HTTP from port 80 to servers running
>onport 81
>Date: Thu, 13 Jul 2006 22:47:02 +0200
>
>Hi Travis,
>
>On 7/13/06, Travis Melhiser <tmelhiser@xxxxxxxxxxx> 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?
>>
>
>I do no know if/how to do this with LVS, but I would solve it by
>running a simply iptables PREROUTING DNAT rule on each of the real
>servers...
>_______________________________________________
>LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
>Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
>or go to http://www.in-addr.de/mailman/listinfo/lvs-users

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee(r)
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users


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