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

Deon van der Merwe deonvandermerwe at gmail.com
Thu Jul 13 21:59:28 BST 2006


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 at hotmail.com> 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 at gmail.com>
> >Reply-To: "LinuxVirtualServer.org users mailing list."
> ><lvs-users at LinuxVirtualServer.org>
> >To: "LinuxVirtualServer.org users mailing list."
> ><lvs-users at linuxvirtualserver.org>
> >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 at hotmail.com> 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 at LinuxVirtualServer.org
> >Send requests to lvs-users-request at LinuxVirtualServer.org
> >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 at LinuxVirtualServer.org
> Send requests to lvs-users-request at LinuxVirtualServer.org
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users
>

Search lvs-users Archives
Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort

More information about the lvs-users mailing list