LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Load balancing outgoing traffic

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [lvs-users] Load balancing outgoing traffic
From: Ruben Laban <r.laban@xxxxxx>
Date: Wed, 6 Feb 2008 09:56:16 +0100
On Wednesday 06 February 2008, Greg wrote:
> > How? If I set a default SNAT rule, this default is always used ...
>
> iptables -t nat -A POSTROUTING -m state --state NEW -m statistic --mode
> nth --every 2 --packet 0 -j SNAT --to-source $SIP1
> iptables -t nat -A POSTROUTING -m state --state NEW -m statistic --mode
> nth --every 2 --packet 1 -j SNAT --to-source $SIP2
> iptables -t nat -A POSTROUTING -m state --state NEW -j SNAT --to-source
> $SIP3
>
> running a ping I have :
> $SIP1
> $SIP2
> $SIP1
> $SIP3
> $SIP1
> $SIP2
> $SIP1
> $SIP3
> ...

Don't change the "--every 3" to "--every 2".

-- 
Ruben


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