LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: port translation in lvs

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: port translation in lvs
From: "Francois JEANMOUGIN" <Francois.JEANMOUGIN@xxxxxxxxxxxxxxxxx>
Date: Thu, 4 Mar 2004 16:14:48 +0100

Joseph Mack :
> Ryan Leathers wrote:
> > I need requests to port 80 at the VIP to be forwarded to port 9999 at
> the
> > real servers.
> 
> /sbin/ipvsadm -a -t VIP:http -r RIP:9999 -m -w 1

Well, if you need to keep DR or Tun LVS, just use :

/sbin/iptables -t nat -A PREROUTING -d VIP -p tcp -m tcp --dport 80 -j DNAT 
--to-destination VIP:9999

on the realserver. It works for me for tomcat standalone servers.

François.

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