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: Kun Richárd <kun.richard@xxxxxxxxx>
Date: Thu, 26 Nov 2009 14:38:55 +0100
> -----Original Message-----
> From: lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:lvs-users-
> bounces@xxxxxxxxxxxxxxxxxxxxxx] 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@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>