LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Problems with LVS+heartbeat+ldirectord+iptables w/ SNAT/DNAT

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Problems with LVS+heartbeat+ldirectord+iptables w/ SNAT/DNAT
From: Siim Põder <windo@xxxxxxxxxxxxxxx>
Date: Wed, 31 Jan 2007 14:36:41 +0200
Yo!

Ordway, Ryan wrote:
>> But then, of course when I get a connection on 192.168.1.100, the
>> director sends the packets to the real server, the real server shoots
>> back its response, but the POSTROUTING rule rewrites the source to the
>> "direct" IP, 192.168.1.3 instead of the load balanced IP. I just
> haven't
>> figured out a simple way to change the SNAT address depending on the
>> source of the initial communication, the virtual IP.

Should be a fairly standard module:

iptables -m conntrack --ctorigdst ...

Helps?

Siim Põder

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