LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Ldirectord in Fedora Core 6 problem with squid

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] Ldirectord in Fedora Core 6 problem with squid
From: Graeme Fowler <graeme@xxxxxxxxxxx>
Date: Mon, 02 Jul 2007 12:56:52 +0100
Hi

Change your iptables rule; at the moment you can get packets
"reflecting" from one host to the other - you seem to be running two
directors which also host the squids, aren't you?

If the directors have MAC addresses MAC1 and MAC2, then you need to do
the following:

director1:
/sbin/iptables -t mangle -A PREROUTING -p tcp --dport 80 \
  -m mac ! --mac-source $MAC2 -j MARK --set-mark 1

director2:
/sbin/iptables -t mangle -A PREROUTING -p tcp --dport 80 \
  -m mac ! --mac-source $MAC1 -j MARK --set-mark 1

That prevents packets looping, causing the problem you see.

Graeme



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