LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: Other strange LB balancing issue

To: "'lvs-users@xxxxxxxxxxxxxxxxxxxxxx'" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>, "'cyrille@xxxxxxxxxxxxx'" <cyrille@xxxxxxxxxxxxx>
Subject: RE: Other strange LB balancing issue
From: Peter Mueller <pmueller@xxxxxxxxxxxx>
Date: Mon, 2 Dec 2002 15:47:39 -0800
> So it's look like to the arp problem ?

Maybe.  Here are firewall rules for ipchains and iptables that work for me.
You'll have to change port 80 to what you want.

# allow ip forwarding (required), turn off on private (eth0) for security.
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 0 > /proc/sys/net/ipv4/conf/eth0/forwarding
# rules for LVS to fix arp issues -- transparent proxy method (HORMS)
$IPCHAINS -A input -j REDIRECT 80 -d $VIP 80 -p tcp
or iptables
$IPTABLES -t nat -A PREROUTING -p tcp -d $VIP --dport 80 -j REDIRECT
--to-port 80

What are you using right now to redirect traffic from the VIP to the
application?  I think as long as you place these rules before any accept
statements you should be able to test it out without changing that around.

P


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