Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux Virtual Server: Users

[lvs-users] more realserver ports question

 

 

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded


kun.richard at kirzen

Nov 26, 2009, 1:13 AM

Post #1 of 11 (1559 views)
Permalink
[lvs-users] more realserver ports question

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 [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


jmack at wm7d

Nov 26, 2009, 5:00 AM

Post #2 of 11 (1495 views)
Permalink
Re: [lvs-users] more realserver ports question [In reply to]

On Thu, 26 Nov 2009, Kun Richárd wrote:

> 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:

you need NAT to rewrite ports

Joe
>

--
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!


kun.richard at kirzen

Nov 26, 2009, 5:38 AM

Post #3 of 11 (1496 views)
Permalink
Re: [lvs-users] more realserver ports question [In reply to]

> -----Original Message-----
> From: lvs-users-bounces [at] linuxvirtualserver [mailto:lvs-users-
> bounces [at] linuxvirtualserver] On Behalf Of Joseph Mack NA3T
> Sent: Thursday, November 26, 2009 2:01 PM
> To: LinuxVirtualServer.org users mailing list.
> Subject: Re: [lvs-users] more realserver ports question
>
> On Thu, 26 Nov 2009, Kun Richárd wrote:
>
> > 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:
>
> you need NAT to rewrite ports
>
Ok, I changed the configuration like this:
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
TCP 10.0.2.6:8080 rr
-> 10.0.2.10:8080 Local 10 0 0
-> 10.0.2.11:8080 Route 10 0 0

With the port 10.0.2.5:80 everything OK, the problem the 10.0.2.6:8080

I forwarding every tcp packet comes to port 10.0.2.6:8080 to 10.0.2.6:80
with the following iptables rule:
"-A PREROUTING -d 10.0.2.6/32 -p tcp -m tcp --dport 80 -j DNAT
--to-destination 10.0.2.6:8080"

I try http://10.2.0.6:80 with lynx, the Local side works fine, but the
another "Route" side doesn't answer.

Any other suggestion/RTFM source?

Thanks:


--
Üdv,
Ricsi


_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

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


sp4wn.root at gmail

Nov 26, 2009, 8:05 AM

Post #4 of 11 (1506 views)
Permalink
Re: [lvs-users] more realserver ports question [In reply to]

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 [at] kirzen>

> 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 [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>



--
Att,


--==========================--
Raul da Silva Leite
sp4wn.root [at] gmail
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 [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


jeh1965 at gmail

Nov 26, 2009, 10:29 AM

Post #5 of 11 (1494 views)
Permalink
Re: [lvs-users] more realserver ports question [In reply to]

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 [at] gmail> 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 [at] kirzen>
>
>> 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 [at] LinuxVirtualServer
>> Send requests to lvs-users-request [at] LinuxVirtualServer
>> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
>>
>
>
>
> --
> Att,
>
>
> --==========================--
> Raul da Silva Leite
> sp4wn.root [at] gmail
> 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 [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> 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 [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


jeh1965 at gmail

Nov 26, 2009, 10:30 AM

Post #6 of 11 (1496 views)
Permalink
Re: [lvs-users] more realserver ports question [In reply to]

ok, sorry about the footer in that last message.

On Thu, Nov 26, 2009 at 10:29 AM, James H <jeh1965 [at] gmail> 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

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

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


sp4wn.root at gmail

Nov 27, 2009, 3:50 AM

Post #7 of 11 (1484 views)
Permalink
Re: [lvs-users] more realserver ports question [In reply to]

James,

Is this avaliable for RHEL in rpm?



Att,

On Thu, Nov 26, 2009 at 4:29 PM, James H <jeh1965 [at] gmail> 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 [at] gmail> 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 [at] kirzen>
> >
> >> 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 [at] LinuxVirtualServer
> >> Send requests to lvs-users-request [at] LinuxVirtualServer
> >> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
> >>
> >
> >
> >
> > --
> > Att,
> >
> >
> > --==========================--
> > Raul da Silva Leite
> > sp4wn.root [at] gmail
> > 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 [at] LinuxVirtualServer
> > Send requests to lvs-users-request [at] LinuxVirtualServer
> > 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 [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> 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 [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


horms at verge

Nov 27, 2009, 4:15 AM

Post #8 of 11 (1488 views)
Permalink
Re: [lvs-users] more realserver ports question [In reply to]

On Thu, Nov 26, 2009 at 10:29:26AM -0800, James H 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
> }
> ...
> }
> ...

What does ipvsadm -Ln look like with this in effect?
I'm curious to know where the port translation is taking place.


_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

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


kun.richard at kirzen

Dec 1, 2009, 8:25 AM

Post #9 of 11 (1398 views)
Permalink
Re: [lvs-users] more realserver ports question - long mail [In reply to]

Hi,

Let me specifying the problem, in details.

I want to serving a website with two machines (A,B), in
loadbalancing-failover enviroment. I have two IP-s, assuming 10.0.2.40 and
10.0.2.39.
The dynamic part of the site will be served by apache+php, listening on
10.0.2.40:80, and the static part of the site (css,images) will be served by
a lighttpd, listening on 10.0.2.39:80
If apache runs on the box A, and lighttpd runs on the box B, both of the
machines are SPOF, so I have to think up something.

I plan to use IPs as VIP addresses, and I want to use 4 more IPs as
realservers. Like this, one box can serve the whole page, and the other box
is not idle.

haresources:
deb1 \
ldirectord::ldirectord.cf \
LVSSyncDaemonSwap::master \
IPaddr::10.0.2.40/24/eth0/10.0.2.255 \
IPaddr::10.0.2.39/24/eth0/10.0.2.255 \

My ldirectord.cf look like:
virtual = 10.0.2.40:80
real = 10.0.2.10:80 gate 10
real = 10.0.2.11:80 gate 10
service = http
scheduler = rr
protocol = tcp
request = "test.html"
receive = "OK"
checktype = negotiate

virtual = 10.0.2.39:80
real = 10.0.2.20:80 gate 10
real = 10.0.2.21:80 gate 10
service = http
scheduler = rr
protocol = tcp
request = "test.html"
receive = "OK"
checktype = negotiate



The IPs 10.0.2.10 and 10.0.2.20 are on the box A, and the IPs 10.0.2.11 and
10.0.2.21 are on the box B.

I need setting up dummy0 and dummy0:0 interfaces on both of the machines
with 10.0.2.39 and 10.0.2.40, thus apache and lighttpd can bind on this IPs.

Now comes the problem: If the heartbeat starts, it drops the dummy0:0
interface with IP 10.0.2.39, but the 10.0.2.40 on the dummy0 remains
untouched.

This reason the lighttpd can't serve request on this IP.

If I call ifdown dummy0:0 and ifup dummy0:0, the system works perfectly. How
can I make it reboot-safe, and failover safe?


This is relevant line of the log:

ResourceManager[2614]: 2009/12/01_19:50:21 info: Running
/etc/ha.d/resource.d/IPaddr 10.0.2.40/24/eth0/10.0.2.255 start
ResourceManager[2614]: 2009/12/01_19:50:21 debug: Starting
/etc/ha.d/resource.d/IPaddr 10.0.2.40/24/eth0/10.0.2.255 start
IPaddr[2890]: 2009/12/01_19:50:22 INFO: Using calculated netmask for
10.0.2.40: 255.255.255.0
IPaddr[2890]: 2009/12/01_19:50:22 INFO: eval ifconfig eth0:1 10.0.2.40
netmask 255.255.255.0 broadcast 10.0.2.255
IPaddr[2890]: 2009/12/01_19:50:22 DEBUG: Sending Gratuitous Arp for
10.0.2.40 on eth0:1 [eth0]
IPaddr[2861]: 2009/12/01_19:50:22 INFO: Success
INFO: Success
ResourceManager[2614]: 2009/12/01_19:50:22 debug:
/etc/ha.d/resource.d/IPaddr 10.0.2.40/24/eth0/10.0.2.255 start done. RC=0
IPaddr[3025]: 2009/12/01_19:50:23 ERROR: 10.0.2.39 is running an interface
(dummy0) instead of the configured one (eth0)
IPaddr[2996]: 2009/12/01_19:50:23 ERROR: Generic error
ResourceManager[2614]: 2009/12/01_19:50:23 info: Running
/etc/ha.d/resource.d/IPaddr 10.0.2.39/24/eth0/10.0.2.255 start
ResourceManager[2614]: 2009/12/01_19:50:23 debug: Starting
/etc/ha.d/resource.d/IPaddr 10.0.2.39/24/eth0/10.0.2.255 start
IPaddr[3105]: 2009/12/01_19:50:24 INFO: Using calculated netmask for
10.0.2.39: 255.255.255.0
IPaddr[3105]: 2009/12/01_19:50:24 ERROR: 10.0.2.39 is running an interface
(dummy0) instead of the configured one (eth0)
IPaddr[3105]: 2009/12/01_19:50:25 INFO: eval ifconfig eth0:2 10.0.2.39
netmask 255.255.255.0 broadcast 10.0.2.255
IPaddr[3105]: 2009/12/01_19:50:25 DEBUG: Sending Gratuitous Arp for
10.0.2.39 on eth0:2 [eth0]
IPaddr[3105]: 2009/12/01_19:50:25 ERROR: 10.0.2.39 is running an interface
(dummy0) instead of the configured one (eth0)
IPaddr[3076]: 2009/12/01_19:50:25 ERROR: Generic error
ERROR: Generic error



--
Üdv,
Ricsi


> -----Original Message-----
> From: lvs-users-bounces [at] linuxvirtualserver [mailto:lvs-users-
> bounces [at] linuxvirtualserver] On Behalf Of Simon Horman
> Sent: Friday, November 27, 2009 1:16 PM
> To: LinuxVirtualServer.org users mailing list.
> Subject: Re: [lvs-users] more realserver ports question
>
> On Thu, Nov 26, 2009 at 10:29:26AM -0800, James H 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
> > }
> > ...
> > }
> > ...
>
> What does ipvsadm -Ln look like with this in effect?
> I'm curious to know where the port translation is taking place.
>
>
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
>
> LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
> Send requests to lvs-users-request [at] LinuxVirtualServer
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users


_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

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


jeh1965 at gmail

Jan 27, 2010, 11:43 PM

Post #10 of 11 (971 views)
Permalink
Re: [lvs-users] more realserver ports question [In reply to]

On Fri, Nov 27, 2009 at 3:50 AM, Raul da Silva {Sp4wn}
<sp4wn.root [at] gmail> wrote:
> James,
>
> Is this avaliable for RHEL in rpm?

Yup! Funny thing - I went to port this to RHEL5.4 this morning, and I
ran into all sorts of weird patch merge errors. After a little
investigation, I found my patch was already integrated into the
mainline version from RH. :) So if you have RHEL5.4 or CentOS5.4 -
this works now.

Looks like it was fixed quietly here:
* Mon Jun 15 2009 Marek Grac <mgrac [at] redhat> 0.8.4-13
- Resolves: #500909 - problem when attempting to load balance using
port in lvs.cf

I posted my code June 8, didn't realize the folks at RedHat would be
so quick to adopt it!

http://mobiuscircle.com/2009/06/08/piranhapulse-patch-allow-port-rewriting-in-nat-mode/

How about an attribution Marek? :)

best,
James

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

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


mgrac at redhat

Jan 29, 2010, 12:40 AM

Post #11 of 11 (967 views)
Permalink
Re: [lvs-users] more realserver ports question [In reply to]

Hi,

James H wrote:
> On Fri, Nov 27, 2009 at 3:50 AM, Raul da Silva {Sp4wn}
> <sp4wn.root [at] gmail> wrote:
>
>> James,
>>
>> Is this avaliable for RHEL in rpm?
>>
>
> Yup! Funny thing - I went to port this to RHEL5.4 this morning, and I
> ran into all sorts of weird patch merge errors. After a little
> investigation, I found my patch was already integrated into the
> mainline version from RH. :) So if you have RHEL5.4 or CentOS5.4 -
> this works now.
>
> Looks like it was fixed quietly here:
> * Mon Jun 15 2009 Marek Grac <mgrac [at] redhat> 0.8.4-13
> - Resolves: #500909 - problem when attempting to load balance using
> port in lvs.cf
>
> I posted my code June 8, didn't realize the folks at RedHat would be
> so quick to adopt it!
>
> http://mobiuscircle.com/2009/06/08/piranhapulse-patch-allow-port-rewriting-in-nat-mode/
>
> How about an attribution Marek? :)
>
I did not know about your code :) [and I'm subscribed to this list from
this morning]. As you can see from bugzilla patch was based on code from
rhbz#210618 (released in update in June 2008).

Question is where to put such contributions. I usually just add it to
commit in git, in spec file there is just name of who builds the
package. In fact, my name is in code only on two places (one in obsolete
ChangeLog and other one when license was changed according to
communication with author of send_arp.c).
Do you think it will be worth effort?

marx,

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

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

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.