LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

lvs + nat

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: lvs + nat
From: "Viktors Rotanovs" <viktors.lists@xxxxxxxxx>
Date: Fri, 1 Sep 2006 14:41:31 +0000
Hi,

I'm using LVS-DR box to balance incoming traffic to several servers.
These servers redirect incoming connections from certain networks to
another port instead of default one using iptables (-t nat -A
PREROUTING -i eth0 -p tcp -s 10.1.1.0/24 -d 10.0.1.10 --dport 1234 -j
REDIRECT --to-ports 2345).

Here's the problem: if I try to move LVS to one of these servers, port
redirection happens before LVS. Is it possible to do LVS first and
port redirection afterwards on kernel 2.6?

Here's my ipvsadm output:

Prot LocalAddress:Port Scheduler Flags
 -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  10.0.0.10:1234 wlc
 -> 10.0.0.11:1234              Route   10     0          0
 -> 10.0.0.12:1234              Local   10     0          0

Thanks,
viktors

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