LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] more realserver ports question

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] more realserver ports question
From: "Raul da Silva {Sp4wn}" <sp4wn.root@xxxxxxxxx>
Date: Fri, 27 Nov 2009 09:50:12 -0200
James,

Is this avaliable for RHEL in rpm?



Att,

On Thu, Nov 26, 2009 at 4:29 PM, James H <jeh1965@xxxxxxxxx> wrote:

> Here is a patch to the RedHat Pulse/Piranha system that let's you use
> NAT port rewriting:
>
>
> http://mobiuscircle.com/2009/06/08/piranhapulse-patch-allow-port-rewriting-in-nat-mode/
>
> This patch adds the ability for you to set a port in the real server
> config section in /etc/sysconfig/ha/lvs.conf
>
> eg:
> ...
> virtual http-shared {
>     port = 80
>     ...
>     server rack104 {
>         address = 192.168.2.104
>         port = 8080 <==== Isn't normally supported by pulse/piranha
>         active = 1
>         weight = 1
>     }
> ...
> }
> ...
>
> Best,
> James
>
> On Thu, Nov 26, 2009 at 8:05 AM, Raul da Silva {Sp4wn}
> <sp4wn.root@xxxxxxxxx> wrote:
> > I think the (lvs+piranha) all ports that you set up in lvs.cf on virtual
> > server needs to be the same port on real server.
> > This is the way that piranha+lvs works at RHEL 5, I don't know if new
> > releases solve this but until RHEL 5.2 this is the only way when you use
> > "direct routing",
> >
> >
> >
> > ....
> >
> >
> >
> >
> > 2009/11/26 Kun Richárd <kun.richard@xxxxxxxxx>
> >
> >> Hi,
> >>
> >> I tried to set up two virtualservers, with two realservers each, all
> >> service
> >> runs locally:
> >> virtual = 10.0.2.5:80
> >>        real = 10.0.2.10:80 gate 10
> >>        real = 10.0.2.11:80 gate 10
> >> and
> >> virtual = 10.0.2.6:80
> >>        real = 10.0.2.10:8080 gate 10
> >>        real = 10.0.2.11:8080 gate 10
> >>
> >> If I started the heartbeat, the ipvsadm list seem's like this:
> >> TCP  10.0.2.6:80 rr
> >>  -> 10.0.2.10:80                 Local   0      0          0
> >>  -> 10.0.2.11:80                 Route   0      0          0
> >> TCP  10.0.2.5:80 rr
> >>  -> 10.0.2.10:80                 Local   10     0          0
> >>  -> 10.0.2.11:80                 Route   10     0          0
> >>
> >> The ldirectord.log shows only this:
> >> [Thu Nov 26 12:03:47 2009|ldirectord.cf|9006] system(/sbin/ipvsadm -a
> -t
> >> 10.0.2.6:80 -r 10.0.2.10:8080 -g -w 10) failed:
> >>
> >> I think ldirectord can't setting up the realserver with the port 8080,
> but
> >> why? I tried different ports instead of 8080, but the result is the
> same.
> >> I need to use iptables to fowarding  packets, or other any idea?
> >>
> >>
> >> Thanks:
> >>
> >> --
> >> Üdv,
> >>  Ricsi
> >>
> >>
> >> _______________________________________________
> >> Please read the documentation before posting - it's available at:
> >> http://www.linuxvirtualserver.org/
> >>
> >> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> >> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> >> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >>
> >
> >
> >
> > --
> > Att,
> >
> >
> > --==========================--
> > Raul da Silva Leite
> > sp4wn.root@xxxxxxxxx
> > Linux Consultant / Red hat Brasil
> > RHCE / LPI-II / ITIL / RHCI / RHCA / RHCSS / RHCDS
> > +55 11 8504-3200
> > --==========================--
> > _______________________________________________
> > Please read the documentation before posting - it's available at:
> > http://www.linuxvirtualserver.org/
> >
> > LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> > Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> > or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >
>
>
>
> --
> CONFIDENTIALITY NOTICE:
> INFORMATION IN THIS MESSAGE, INCLUDING ANY ATTACHMENTS, IS INTENDED
> ONLY FOR THE PERSONAL AND CONFIDENTIAL USE OF THE RECIPIENT(S) NAMED
> ABOVE. If you are not an intended recipient of this message, or an
> agent responsible for delivering it to an intended recipient, you are
> hereby notified that you have received this message in error, and that
> any review, dissemination, distribution, or copying of this message is
> strictly prohibited. If you received this message in error, please
> notify the sender immediately, delete the message, and return any hard
> copy print-outs. Thank You.
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>



-- 
Att,


Raul da Silva Leite
RHCE / LPI-II / ITIL / RHCI / RHCA / RHCSS / RHCDS
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

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