LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Multiple ports on real servers

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Multiple ports on real servers
From: "Mindaugas" <mind@xxxxx>
Date: Fri, 24 Nov 2006 17:35:17 +0200

Problem is that :80 does not work on LVS-NAT. IPVS does not
change destination port.

the prime functionality of LVS-NAT is that it rewrites the ports and the IP. People rarely rewrite the ports so it's possible that it doesn't work anymore. However if my setup wasn't working, I wouldn't use failure to rewrite ports as my first hypothesis for an explanation. Can you try this rewriting first

VIP:80   --> RS1:8080,RS2:8080

 I already tried it and it did not work for me. ipvsadm
output showed that rule is being used but nothing was incoming
at RS1:3000 port. But traffic arrives into 80 port.

# ipvsadm -L -n
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
 -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
FWM  1 wlc persistent 15
 -> RS1:3000          Masq    1      0          96
 -> RS2:0             Masq    5      1050       8812
# uname -a
Linux rs1 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:28:26 CDT 2006 x86_64 x86_64 x86_64 GNU/Linux

 OS is CentOS 4.4. ipvsadm is from Redhat Cluster Suite.

 Mindaugas



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