LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

LVS-DR with Gateway+Director combo

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: LVS-DR with Gateway+Director combo
From: "Oliver Weichhold" <oliver@xxxxxxxxxxxxx>
Date: Mon, 6 Mar 2006 23:19:50 +0100 (CET)
Hello

This is my config:

Machine A (Gateway + Director):
-------------------------------------------
- OS: Debian Sarge Kernel 2.6.14-6
- No active IPTables rules
- External IP on eth0: 192.168.230.33
- Internal IP on eth1: 192.168.231.1

Machine B (Real Server 1):
-------------------------------------------
- OS : Windows Server 2003
- Internal IP on eth0: 192.168.231.2
- VIP on Loopback Adapter: 192.168.231.10 (verified to be correctly
configured when I temporarily tried LVS DR with dedicated director)

Everything is working fine in a LVS-NAT setup using:

ipvsadm -A -t 192.168.230.33:http -s rr
ipvsadm -a -t 192.168.230.33:http -r 192.168.231.2:http -m -w 1

I would like to run this in Direct Mode with the Director also being the
gateway and firewall for the real servers. I?ve applied
ipvs-nfct-2.6.14-1.diff to the kernel and ran ?echo 1 >
/proc/sys/net/ipv4/vs/conntrack?. But I can?t get it to work. Because I
don?t know how to map requests to 192.168.230.33:80 to VIP:80. Any hints
would be appreciated.

- Oliver



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